png::meta tEXt · iTXt · zTXt

PNG Metadata FAQ

Everything about the prompts, workflows and hidden data stored inside PNG files — and how to get them out with the free PNG metadata extractor.

How do I extract AI prompts from a PNG?

Drop the PNG on pngmeta.app (or click "Upload PNG → Extract Metadata"). The tool reads the PNG's tEXt, iTXt and zTXt chunks directly in your browser and shows the positive/negative prompt, seed, sampler, model and, for ComfyUI images, the full workflow JSON. Nothing needs to be installed.

What metadata do AI-generated PNGs contain?

Most AI image tools embed the complete generation recipe as PNG text chunks. Automatic1111/Forge write a "parameters" chunk with prompt, negative prompt, steps, sampler, CFG scale, seed and model hash. ComfyUI writes two JSON chunks: "prompt" (the executed graph) and "workflow" (the editable canvas). InvokeAI, SwarmUI and Fooocus use similar keys. Standard fields like Software, Comment and creation time can also be present.

Can I reverse engineer the workflow from a PNG?

Yes, if the PNG still has its original metadata. For ComfyUI images the entire node graph is stored in the "workflow" chunk: extract it here, download the JSON and drag it onto the ComfyUI canvas (or drag the PNG itself into ComfyUI). For A1111/Forge images the "parameters" text contains every setting needed to reproduce the generation.

How to find hidden data in PNG files?

PNG files can hide data in text chunks (tEXt, iTXt, zTXt), EXIF/XMP blocks and non-standard ancillary chunks. Upload the file to pngmeta.app to list every text chunk with its key, size and decoded (and, for zTXt/iTXt, decompressed) content. If a PNG has no chunks at all it was probably screenshotted or re-encoded by a messaging app or social platform, which strips metadata.

Is there a free tool to get Stable Diffusion prompts from PNGs?

Yes. pngmeta.app is a free online PNG metadata extractor for Stable Diffusion, ComfyUI, Automatic1111, Forge, InvokeAI and SwarmUI images. Parsing happens client-side, there is no account or install, and it works on desktop and mobile.

Why does my PNG have no metadata?

Screenshots never contain generation metadata, and most messaging apps (WhatsApp, Telegram as photo, Discord mobile) re-encode images and strip text chunks. Always send AI images as files/documents to preserve the workflow.

Which tools are supported?

ComfyUI (prompt + workflow chunks), Automatic1111/Forge (parameters chunk), InvokeAI, SwarmUI, Fooocus, and any PNG with standard tEXt, iTXt or zTXt chunks.

Want the technical details? Read how PNG metadata extraction works or the developer API & chunk reference.