PNG is the format of screenshots, logos, digital art and AI-generated images, and it is also one of the easiest formats to hide data inside. Unlike JPEG, which stores metadata in a few well-known segments, PNG stores metadata in named chunks scattered through the file, and some of those chunks can hold entire paragraphs of text: the prompt used to generate an image, the software that made it, the settings, and even a signed provenance record. This guide explains the chunk anatomy of a PNG, what each chunk can reveal, and how to strip it all without touching a single pixel.
What Metadata Lives in a PNG
A PNG file is a sequence of chunks, each with a four-letter name, a length and a checksum. The image itself lives in IDAT chunks, and everything else is metadata of one kind or another. The chunks that carry the most information are the text chunks: tEXt for plain Latin-1 text, iTXt for international UTF-8 text, and zTXt for compressed text. AI image generators write their generation parameters into these chunks, so a PNG from Automatic1111, ComfyUI, Midjourney or Stable Diffusion can contain the full prompt, the negative prompt, the seed, the sampler, the steps and the model name, all readable by anyone who opens the file.
Beyond text, a PNG can carry an eXIf chunk holding a full EXIF block, including camera data and GPS coordinates copied from a source photo. A tIME chunk records the last modification time, an iCCP chunk holds the colour profile, and a caBX chunk can hold a C2PA Content Credentials manifest. There is also a pHYs chunk for pixel dimensions and a gAMA chunk for gamma, which are harmless technical values that most cleaners leave alone.
The practical point is that a PNG can look completely ordinary while carrying kilobytes of hidden text. A screenshot of a chat window, a logo exported from a design tool, or an AI-generated illustration can each carry data the sender never intended to share.
PNG Chunk Anatomy: tEXt, iTXt, eXIf and More
Understanding the chunk names helps you read a cleaning report and know what was actually removed. The tEXt chunk stores a keyword and a value, such as "Software" and "Adobe Photoshop", or "parameters" and the full Stable Diffusion prompt string. The iTXt chunk does the same thing in UTF-8, which is how newer tools store prompts containing non-English characters. The zTXt chunk is a compressed tEXt chunk, and it is easy to miss because its contents are not readable without decompression.
The eXIf chunk is an EXIF block transplanted into PNG form. It can hold camera make and model, exposure settings, orientation and GPS coordinates, exactly as it would in a JPEG. The caBX chunk is the newest addition: it holds a C2PA manifest in a JPEG Universal Metadata Box format, recording provenance and edit history with a cryptographic signature. The tIME chunk is small but surprisingly revealing, because it records when the file was last modified, which can betray the timing of a project.
Chunks a cleaner should keep include IHDR, PLTE, IDAT, IEND, and usually iCCP and pHYs, because those describe how the image should be displayed. A good cleaner removes tEXt, iTXt, zTXt, eXIf, caBX and tIME while preserving the image data and colour information, so the cleaned file looks pixel-identical to the original.
IHDR (header) — PLTE (palette) — IDAT (image data) — tEXt / iTXt / zTXt (text) — eXIf (EXIF) — caBX (C2PA) — tIME (timestamp) — IEND (end)Why PNG Metadata Matters
The most common surprise is the AI prompt. Artists who share a PNG of their work often do not realise the file contains the exact prompt, seed and model that produced it. For a hobbyist that is a minor embarrassment; for a professional selling prompts or a distinctive style, it is giving away the recipe. Our guide to stripping Automatic1111 & ComfyUI data goes into the specific chunk names each generator uses and what they reveal.
The second issue is provenance. A caBX chunk with a C2PA manifest tells anyone who inspects the file which tool created it, when, and what edits were made. That is useful when you want to prove authorship, and it is a liability when you want the file to speak for itself. Removing the manifest is a legitimate choice, but it should be a deliberate one, because it also removes the proof that the image is yours.
The third issue is plain privacy. EXIF data copied from a source photo can include GPS coordinates, and a tIME chunk can reveal when a file was made. Neither is dangerous on its own, but both are data you did not choose to publish. Cleaning a PNG is cheap, and doing it before every upload means you never have to wonder what is inside the file.
How to Remove PNG Metadata
The safest way to clean a PNG is with a client-side tool that rebuilds the file in your browser. The MetaRinse AI image cleaner does exactly this: you drop in a PNG, it parses the chunk list, drops the text, EXIF, C2PA and timestamp chunks, and gives you back a file with the same pixels and a much shorter chunk list. Nothing is uploaded, so there is no server copy of your image and no account to create.
The steps take under a minute:
- Drop your PNG into the MetaRinse AI image cleaner.
- Read the report to see which chunks were found and removed, including any prompt text or eXIf data.
- Download the cleaned PNG and use that version for sharing, selling or posting.
Because PNG is a lossless format, cleaning it is also lossless. The IDAT chunks that hold the image data are copied unchanged, and the CRC checksums are recalculated for the chunks that remain, so the file stays valid. The cleaned file is usually slightly smaller, because the removed text chunks no longer take up space.
If you work with PNGs regularly, make cleaning part of your export routine. Export the image, clean it, then upload the cleaned copy. That order matters: if you clean a file and then open it in another editor and re-save it, the editor may add its own metadata back.
Cleaning Methods Compared
There are several ways to strip PNG metadata, and they differ in safety and convenience. Command-line tools such as ExifTool and pngcrush can remove chunks precisely, and they are excellent for batch processing, but they require installation and a comfort with the terminal. Desktop editors such as Photoshop can strip metadata on export through a "Save for Web" style workflow, but the exact behaviour varies by version and it is easy to leave a chunk behind.
Online cleaners are the most convenient option, but most of them upload your file to a server, process it there, and return the result. That means a copy of your image exists on someone else's computer, at least temporarily, and you have to trust their retention policy. A client-side cleaner avoids that entirely by doing the work in your browser's memory.
Whatever method you choose, verify the result. Open the cleaned file in a chunk inspector or a metadata viewer and confirm that the tEXt, iTXt, zTXt, eXIf and caBX chunks are gone. A cleaner that reports what it removed is worth more than one that silently returns a file, because the report is your proof that the job was done.
What PNG Cleaning Cannot Do
Cleaning a PNG removes data stored alongside the pixels, not data baked into the pixels themselves. An invisible pixel watermark, such as Google SynthID, survives metadata removal completely, because it is encoded in the image data. Similarly, an AI detector that analyses the picture itself will reach the same conclusion after cleaning as before, because the pixels have not changed. Metadata cleaning is about the hidden text in the file, not about disguising what the image shows.
Cleaning also cannot remove a visible watermark, a burned-in caption or a logo that is part of the picture. Those are pixels, and only editing the image can change them. What cleaning guarantees is narrower and still valuable: no prompt, no EXIF, no C2PA manifest and no timestamp travels with the file. If you need to understand the difference between metadata and pixel watermarks, our guide to C2PA Content Credentials explains how provenance data works and why removing it does not change the image content. For JPEG files, which store metadata differently, see our guide to removing metadata from JPEG files.

