How to remove the prompt and workflow from a Stable Diffusion or ComfyUI image
Updated
What AI tools write into the file
- Stable Diffusion web UIs (AUTOMATIC1111, Forge): a text block named parameters with the prompt, the negative prompt, steps, sampler, CFG scale, seed, size, and the model and LoRA names.
- ComfyUI: the prompt and the complete workflow as JSON. Dragging the PNG into ComfyUI rebuilds the whole node graph, including the names of your models and LoRAs.
- Hosted generators: some write the prompt or a job ID into a description field.
- Adobe Firefly, Photoshop, ChatGPT and others: a signed C2PA manifest and the IPTC AI source type instead of a prompt.
To see what one of your images carries, drop it on Karelia Prompt. It is free and shows the prompt, the settings and the ComfyUI workflow in your browser, without uploading the file.
Why remove it
The prompt is your work. Anyone who gets the original PNG can read it, copy the settings and reproduce your style, and a ComfyUI workflow shows exactly how an image was built. Sites that host AI images read the same data to show the generation details. If you sell prompts, do client work, or simply do not want your settings passed around, share a copy without it.
Stop the tools saving it
- AUTOMATIC1111 and Forge: the settings for saving images have an option that stops writing the generation parameters into PNG files.
- ComfyUI: start it with the
--disable-metadataoption. - Images you already made keep their data until you clean them.
Remove it from images you already made
- Get the PureImage Offline Edition ($14.99 once) and save the file PureImage-Offline.html anywhere on your computer.
- Double-click it. It opens in your browser and works with the internet unplugged.
- Drop the images on the page, or pick a whole folder of renders.
- Download the clean copies. Several files come as one ZIP.
For a single image, Karelia Image does the same for free in your browser, with nothing uploaded.
It cuts the text blocks, XMP, EXIF, IPTC and C2PA data out of the file itself. The picture is not re-compressed, so the pixels stay as they were. The receipt lists what was found, and the cleaned file is read again to confirm that no hidden fields are left. To look without changing anything, see how to check an image's metadata.
Keep your original files if you want to reopen a workflow in ComfyUI yourself, and share the cleaned copies.
What this does not remove
- Invisible watermarks that are part of the pixels, such as Google's SynthID.
- Visible watermarks, signatures or logos.
- A platform's own analysis of what the picture looks like.
- Your duty to say that an image is AI-made where a platform or a law requires it.
FAQ
Can someone read my prompt from a PNG?
Yes, if the file still carries it. The PNG Info tab in Stable Diffusion web UIs, ComfyUI itself and any metadata viewer show it.
Does removing the metadata change the image?
No. Only the hidden text and metadata blocks are cut out. The pixels are not touched and the file is not re-compressed.
Will the image still load its workflow in ComfyUI?
No. The workflow is the data that is removed. Keep your original file if you want to reopen the workflow yourself, and share the cleaned copy.
Can I clean a whole folder of renders?
Yes. Pick the folder in the Offline Edition and download the clean copies together as one ZIP.
Does it work on JPG and WebP too?
Yes. Some tools save the same data in EXIF or XMP when they write JPG or WebP files, and that is removed as well.
More guides
How to check an image's metadata: EXIF, GPS, C2PA and AI tags
The viewer built into Windows, macOS, iOS and Android shows the camera, the date and the place. It does not show C2PA manifests, AI source fields or prompts in PNG files. ExifTool lists those, and the Content Credentials Verify page reads a C2PA manifest. None of them changes the file.
Read the guide →How to remove C2PA Content Credentials and AI metadata from an image
C2PA manifests, XMP and generator text chunks are embedded in the image file. Open the PureImage Offline Edition on your own computer, drop the image on it and download the clean copy: the metadata is cut out of the file without touching the picture. Nothing is uploaded.
Read the guide →Why Instagram put an AI info label on your photo, and what the label reads
Platforms label images as AI by reading fields that editing tools write into the file: a C2PA manifest or the IPTC Digital Source Type. A small generative edit in Photoshop is enough. Check which field your file carries, and post a copy without the metadata if the label is wrong for your photo.
Read the guide →