Can transparent pixels in a PNG still contain image data?
Yes. A PNG stores red, green, and blue color values separately from its alpha (transparency) channel, so pixels with zero alpha can still hold the original colors underneath. When redacting, flatten transparency (such as turning off Alpha in Preview › Export on iPhone) or replace the pixels with a solid cover.
By Paul Bădărău, maker of Milkglass. Instructions checked on 30 November 2026.
Steps to flatten transparency or replace sensitive pixels
- Do not use an eraser tool that leaves transparent pixels over an address, face, or signature as your final redaction step.
- If you want to replace sensitive regions directly, open the image in our browser photo redaction tool and draw a solid cover over the area; it paints a new flattened image.
- If you are exporting a PNG in the Preview app on iPhone, open the export options and turn off Alpha so transparency is flattened into an opaque image. Apple’s iPhone Preview export guide
- Reopen the exported file on both light and dark backgrounds to confirm no hidden color data or faint outline remains.
How PNG transparency works and what stays in the file
In the W3C PNG specification, an RGBA image stores color samples alongside an alpha sample for each pixel. When alpha is zero, standard viewers show the page background instead of the pixel’s RGB values, even though those RGB values can still exist in the file bytes. W3C’s PNG specification
An app or viewer that ignores the alpha channel, or a script that inspects raw RGB channels, can reveal what was erased into transparency. Flattening the image onto an opaque background or exporting as JPEG discards the alpha channel and replaces transparent regions with solid background pixels.
When transparent cutouts still leak details
- You exported a PNG with Alpha left on. Turning off Alpha or exporting as a JPEG forces an opaque render instead of keeping an alpha channel.
- Only the erased shape’s outline gives away the text. Cutting out around letters or numbers leaves a silhouette; cover a wider rectangle than the text itself.
- The original PNG is still attached or shared. Keep the unredacted PNG separate from the flattened export you send.
Common questions about PNG transparency and privacy
Does converting a transparent PNG to JPEG remove hidden color data?
Yes, JPEG does not support an alpha channel, so exporting to JPEG flattens the image against a solid background color. Still, check the exported JPEG visually to make sure the background fill covered everything you intended.
Can someone recover erased text from a flattened PNG?
If the pixels were genuinely replaced with a solid fill and no alpha channel or original layer remains, the underlying pixel values are gone. If the editor only set alpha to zero while keeping RGB values, the data can still be read.
Why does our browser redaction tool paint a new canvas?
Painting a new canvas with solid shapes replaces the covered pixels directly before exporting, rather than storing editable layers or transparent cutouts.
Related redaction and file format guides
Learn why to use a solid black box instead of a highlighter, check how to verify a redacted copy before sharing, or read how to save an iPhone screenshot as PNG.