PNG metadata and AI generation tags
PNG files can hold text chunks (tEXt, zTXt, iTXt) in which many image generators write the prompt, seed, sampler, model name and workflow. These tags travel with the file until something removes them. Read them with exiftool or a PNG chunk viewer, delete them by re-encoding or by stripping chunks, and check the result, because converting to JPEG removes them but changes more.
Last updated: 2026-10-27
How a PNG is built
A PNG is a short signature followed by a sequence of chunks. Each chunk has a type, a length, data and a checksum. The mandatory ones describe the image header, the palette when there is one, the pixel data and the end marker. Everything else is optional and ancillary, which means a decoder can skip it without affecting the picture.
Among the optional chunks are three that hold text: tEXt, zTXt and iTXt. Each stores a keyword and a value. The keyword is a short label such as Title, Author or Description, and the specification lets software invent others. That freedom is why generators use them.
What generation tools put there
Many local and hosted generation interfaces record how an image was made so that you can reproduce it. Typical content includes:
- the positive and negative prompt
- the seed
- the sampler and number of steps
- the guidance value
- the model or checkpoint name
- in node-based tools, a full graph describing the workflow
The exact keys differ by software and version. Read your own files first and build a list from what you find.
Reading the tags
Use exiftool, which lists PNG text chunks alongside other metadata, and run it with the grouped output option so you can see where each tag lives. A hex viewer works too, since chunk names are readable. Many web viewers also display text chunks. Look for long strings; a workflow graph can run to thousands of characters.
Also check that nothing else is present. A file can have text chunks, an XMP block inside an iTXt chunk, an EXIF chunk, and a C2PA manifest stored in its own chunk type. Each is read by different software.
Why this matters
Text chunks are not subtle. Anyone who opens the file with a metadata tool can read your prompt. That has consequences.
- Disclosure. The file says in plain words that it is machine-made.
- Privacy. Prompts can contain names, client details or private ideas.
- Reproducibility. Anyone with the seed and the model can regenerate your image.
Some people want that. Others do not. It is better to decide than to find out after publishing.
Removing the tags
Several routes work.
- exiftool. Delete all writable tags on a copy of the file. Confirm that the text chunks have gone by reading the output again.
- Re-encode. Open the image in an editor and export again. Most editors write a clean PNG without the generator's chunks, but check.
- Convert to JPEG. The format has no PNG text chunks, so they disappear. You also change the compression and the file's character.
- Dedicated tools. PNG utilities can strip ancillary chunks while leaving the pixels byte-identical.
Always verify. A cleaned filename means nothing if one chunk survived.
What this does not cover
Deleting text chunks does not touch other signals. C2PA manifests, IPTC digital source type values and any embedded watermark are separate. Pixel statistics also remain.
PassReal removes PNG text chunks, XMP, IPTC and C2PA in one pass, then applies a sensor model with grain and radial chromatic aberration, smooths the frequency spectrum and writes a JPEG with EXIF from a real camera. It does not remove SynthID or any pixel-level watermark, and it does not promise any detector outcome.
A habit worth adopting
Before sharing any generated file, run one command that lists every tag and read the output as a stranger would. Look for prompts, file paths with your username, software names, creation dates and anything that looks like an identifier. Do this on the final export, not on the working copy, since saving again can reintroduce fields. It takes seconds, and it catches the case where a cleaned folder quietly contains one file that skipped the process.
Try it
Open one of your own PNGs in exiftool, note the text keys, then process three free images at PassReal and read the output. The difference is the point of the exercise.
| What is checked | Value |
|---|---|
| Accepted formats | PNG, JPEG, WebP |
| Maximum size | 20 MB |
| Maximum dimension | 8192 px on the longest side |
| Sensor grain intensity | 0.018 |
| Lateral chromatic aberration | 1.25 px at the corners, none at the centre |
| Frequency cutoff | 0.88 of Nyquist |
Questions
What is a PNG text chunk?
A block inside the file that stores a keyword and a string. There are three kinds: tEXt for plain text, zTXt for compressed text and iTXt for international text.
Which generators write tags into PNGs?
Several local interfaces store parameters or a whole workflow in text chunks. Which keys they use varies by tool and version, so read your own files rather than relying on a list.
Do social platforms keep these tags?
Most re-encode uploads and drop them, but a file you send directly, by email or as a download, arrives intact. Do not assume a platform has cleaned it.
Does deleting tags change the picture?
No. Chunks sit next to the pixel data. Removing them changes the file's size and what a metadata reader sees, not the pixels.
Does PassReal remove PNG tags?
Yes. It removes PNG text chunks, XMP, IPTC digital source type and C2PA, then outputs a JPEG. It does not remove SynthID.
Limits
Naturalization operates on the pixels and on the file, not on the content of the image. A subject that is implausible - six fingers, inconsistent reflections, text that does not read - stays implausible after processing, and a human reviewer will notice it. PassReal changes what a statistical classifier measures, not what a person sees.
Results vary by generator, by subject and by detector, and detectors are retrained. No pass rate is published on this page because none has been measured in a way that would still hold next month.
Clean an image in seconds
Three images free, no card. Then $2 an image, or Pro at $19 a month for 100.