PNG Viewer

Uploads a PNG and decodes it onto an off-screen canvas to display it against a checkerboard backdrop (so transparency is visible), while reporting its width, height, whether it has any transparency, and whether it's square, entirely in your browser. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

This tool gives you a quick, no-upload way to open and inspect a PNG right in your browser.

It renders the image against a checkerboard background so you can immediately see whether, and where, it's transparent.

What Is PNG Viewer?

A client-side PNG viewer that decodes an uploaded image via canvas and displays it alongside a short report of its basic facts: dimensions, whether it's square, and whether it contains any transparency.

It's the simplest tool in the category, aimed at quickly answering 'what does this PNG actually look like and what are its basics' without opening a full image editor.

How PNG Viewer Works

The uploaded file is decoded into a pixel buffer via the browser's canvas API, which the tool scans once to check whether any pixel's alpha value is below the fully-opaque value of 255.

The dimensions and square/non-square status are read directly off the decoded buffer.

When To Use PNG Viewer

Use it to quickly preview a PNG's contents and transparency before deciding which editing tool to apply next.

It's handy any time you want to check an image without downloading a full desktop viewer or editor.

Features

Advantages

  • Runs entirely client-side; the uploaded image is never sent to a server.
  • Shows transparency visually via a checkerboard backdrop, not just as a number.
  • Very fast, single-pass validation with no configuration needed.

Limitations

  • Only reports whether transparency exists, not how much; use the dedicated transparency checker for percentages and pixel counts.
  • Doesn't display embedded metadata like color profiles or text chunks.

Examples

Preview a logo with a transparent background

Input

A 512x512 PNG logo with transparent corners

Output

The logo rendered over a checkerboard pattern, report shows hasAlpha: true, isSquare: true

The checkerboard shows through the transparent regions, confirming the logo has no opaque background fill.

Preview a flattened photo

Input

A 1600x1200 PNG exported from a photo editor with no transparency

Output

The photo rendered normally, report shows hasAlpha: false, isSquare: false

Since every pixel's alpha is 255, no checkerboard shows through anywhere.

Best Practices & Notes

Best Practices

  • Use this as a first quick look before running a more specific tool like the dimensions finder or transparency checker.
  • If the checkerboard is fully hidden, the image has no transparency to worry about in downstream edits.

Developer Notes

The lib function is a single pass over the Uint8ClampedArray's alpha bytes with an early exit on the first non-opaque pixel found, keeping the check fast even on large images; the component reuses the same PngUploadPanel/PngPreviewPanel pattern as the rest of the category for the checkerboard rendering.

PNG Viewer Use Cases

  • Quickly checking what a downloaded PNG actually contains
  • Verifying a logo or icon export has the expected transparent background
  • Confirming an image's dimensions before using it elsewhere

Common Mistakes

  • Assuming 'has transparency: true' means the whole image is transparent — it only means at least one pixel isn't fully opaque.
  • Expecting file metadata like DPI or color profile info, which this simple viewer doesn't report.

Tips

  • Pair with the transparency checker if you need exact percentages rather than a yes/no answer.
  • Use the colorful background previewer next if you want to see the image against specific solid colors rather than a checkerboard.

References

Frequently Asked Questions