What to Check Before Exporting a Transparent PNG
A PNG can be completely opaque. The format can store transparency, but the filename extension says nothing about whether the exported pixels let a background show through. The first check is therefore in the artwork, before the export dialogue opens: do the areas that need to be transparent actually have something transparent for the exporter to preserve?

The distinction matters for anything that has to sit over another image or colour. A leaf on white can look identical to a transparent leaf when both are viewed against white. When both versions sit over dark blue, the difference is immediate: one brings its white rectangle along, while the other lets the blue show around the leaf. That comparison answers a question a file thumbnail on its own cannot settle.
Where does the transparency need to be?
The intended result has a shape. A leaf might need clear space outside its silhouette, openings between its lobes and a slightly translucent edge. A badge might need clear corners but a deliberately white interior. Those are different jobs even if the two images appear to have the same background in a preview. Before checking a setting, it helps to identify one area that must be fully clear, one that must stay solid and, if the artwork has one, a transition that must keep its softness.
The working document is the place to make that distinction. If there is a visible white background layer, temporarily hiding it separates the artwork from that layer. If a white patch remains outside the intended silhouette, the patch may be part of the artwork itself; switching format will not remove it. The same applies to holes in a shape. A white fill can look like a hole against white, so the useful check is to put a contrasting colour behind the artwork and see which areas change. That test colour belongs below the subject and stays out of the export.
An already flattened source needs particular care. If a shadow has been blended into a white rectangle, the grey pixels in that rectangle describe its appearance on white. They do not separately describe the shadow and the background. Giving the image an alpha channel later cannot recover that separation on its own. A layered original, if available, is the more useful starting point; otherwise the missing transparency has to be rebuilt rather than selected in the export menu.
- The outside: does a contrasting layer show all the way to the crop boundary?
- The interior: do intended openings reveal the same contrasting layer?
- The edge: does a shadow or soft transition still look gradual?
What does the PNG specification actually preserve?
The World Wide Web Consortium’s Portable Network Graphics (PNG) Specification, Third Edition, defines alpha as the degree of opacity of a pixel. At one end of the scale, a fully transparent pixel lets the background show through. At the other, a fully opaque one hides it. Values between the two allow both foreground and background to contribute to the result. That is the difference between a clear margin and a soft shadow: both use transparency, but only the margin is meant to disappear entirely.
The specification also distinguishes between different ways of recording that information. A truecolour PNG with alpha stores red, green, blue and alpha samples for each pixel. A greyscale PNG can have a separate alpha channel as well. An indexed-colour PNG can instead associate alpha values with entries in its palette. There is also a compact option for a non-indexed image in which a single colour or grey value is fully transparent and all the others are fully opaque. Consequently, the absence of a separate alpha channel is not, by itself, proof that a PNG has no transparency.
There is a converse trap. An image can have an alpha channel in which every pixel is opaque. A file inspector that reports alpha can confirm that the channel exists without establishing that it is doing anything visible. The relevant detail is which parts of the image have the intended opacity. The specification even allows an all-opaque alpha channel to be omitted without changing the appearance. That omission does not turn an originally clear corner white; it is only equivalent when nothing in the reference image was clear to begin with.
| Representation | What carries the opacity information |
|---|---|
| Truecolour or greyscale with alpha | A separate alpha sample for each pixel |
| Indexed colour with transparency | Alpha values associated with palette entries |
| Single transparent value in a non-indexed image | One specified colour or grey value is clear; others are opaque |
| Opaque image | No part of the background is meant to show through |
Which setting comes before compression or file size?
The export setting to settle first is the one that decides whether the output retains transparency or is composited against a background. The specification defines the file, not the names or layout of an editor’s controls, so the wording on a particular export panel is an application detail. A preview over a solid colour also leaves a question open: is the colour merely behind the preview, or will it be part of the output? Reopening the file is a better way to resolve that than interpreting the colour of the panel.
Lossless compression answers a different question. The W3C specification distinguishes the source presented to an encoder from the reference image that can be recovered from the PNG. A conversion from the former to the latter can discard information even though the subsequent PNG encoding is lossless. If an export hands the encoder an opaque composite, lossless encoding preserves that composite. It does not restore the alpha that was discarded while making it.
For artwork with a soft edge, a full-colour export that retains per-pixel alpha gives a useful baseline. A smaller or palette-based preset can be assessed against that baseline if file size becomes a concern. An indexed file is not necessarily opaque, but the available palette entries and their associated opacity values still need to describe the edge. A shortcut that produces a clean result on a white page might leave a hard or tinted outline over a dark panel. Comparing the same edge with both backgrounds makes it possible to tell whether the change is acceptable for the intended placement.
How can the saved file be checked without trusting the preview?
The useful specimen is the exported file, opened separately from the working document. A separate canvas with a light background and a dark background makes a simple comparison. The file can be placed so that the same sort of edge appears against both, or the background behind it can be switched. The outer corners and the gaps in the shape should reveal the colour underneath; a deliberately solid patch should keep its own colour. A gradual shadow should show the background by degrees, rather than switching abruptly between fully visible and fully hidden.
How the file fails points to where to look next. A solid rectangle around the entire object puts the focus back on the background layer or the export settings. When the corners clear but a white fringe hugs the outline, the first place to look is the source edge: those pale pixels may already be blended with white. If the artwork looks as intended after being reopened but looks different only when placed in the receiving document, the next useful comparison is with that document’s own preview. Re-exporting the source before locating the discrepancy makes it harder to tell which change mattered.
The check is easier to repeat if the first export and the revised one are kept as separate files. If a lighter fringe appears only after a preset is changed, putting the exports over the same dark background makes the difference visible without changing the source again. If both show the fringe in the same place, returning to the working edge is a better use of time than trying a succession of presets. The comparison is most informative at the intended display size as well as close up: an edge can be visibly different when magnified without affecting the layout in which the file will be used.
- The exported PNG is opened separately from the layered original.
- A light background provides the first view of the corners, holes and edge.
- The background switches to a dark colour while the PNG stays unchanged.
- The comparison shows which areas reveal the background and which keep their colour.
- If the file passes, the final check is its placement in the document that will use it.
Frequently Asked Questions
Does a checkerboard prove a PNG is transparent?
A checkerboard is useful only if it is the viewer’s background rather than part of the picture. If a contrasting layer placed underneath never shows through the checks, the checkerboard is not evidence of file transparency. The distinction becomes clear when the exported image is opened in a canvas whose background can be changed independently.
Is a PNG with white in it necessarily opaque?
White is a colour, while alpha controls opacity. An image can contain solid white artwork, transparent margins and partially transparent edges at the same time. White patches are a problem only where the artwork was supposed to reveal what lies beneath.
Can a greyscale image have transparent edges?
The PNG specification defines greyscale with alpha as an image type. A pixel can have a grey value and a separate opacity value, so a greyscale silhouette can keep a soft edge rather than a hard boundary.
Can an existing opaque PNG be made transparent?
An editor can use a mask or selection to define which parts of the image become clear. The difficulty is recovering a convincing boundary if the subject was already blended into the background. Access to the unflattened artwork changes that part of the job substantially.
Is one background enough for a final check?
One background can establish that a particular opening lets colour through, provided the contrast is clear. A second, contrasting background helps reveal a light or dark fringe that blends into the first. The intended destination is the most relevant final check if it uses a particular colour or photograph behind the PNG.
Sources
- World Wide Web Consortium — Portable Network Graphics (PNG) Specification (Third Edition)