Stable Diffusion / ComfyUI / A1111
How to Remove Stable Diffusion Parameters from a PNG
Removing Stable Diffusion parameters means clearing the text chunks that AUTOMATIC1111, ComfyUI, and other front-ends write straight into your PNG — the full prompt, the negative prompt, the seed, the sampler, the CFG scale, and the checkpoint name. That data is the complete recipe for your image, and it sits in plain text inside the file, readable by anyone who opens it in a metadata viewer. This guide covers exactly where those parameters live, why you might want them gone, and how to strip them without re-encoding the picture.
Open the free tool →Where Stable Diffusion hides your generation data
Local Stable Diffusion tools save generation parameters inside PNG text chunks — the tEXt, zTXt, and iTXt sections of the file. AUTOMATIC1111 writes a single 'parameters' block, ComfyUI embeds the entire node graph as a 'workflow' and 'prompt' JSON payload, and InvokeAI and others use their own variants of the same idea. Open any of these files in a metadata viewer and the whole thing reads back like a receipt.
That receipt is thorough. It typically includes your positive prompt word for word, your negative prompt, the seed, the sampler and scheduler, the step count, the CFG scale, the model or checkpoint hash, and often the LoRAs and their weights. For ComfyUI the embedded workflow can even be dragged back into the app to reconstruct your exact node setup. It is a genuinely useful feature for reproducing your own work — and exactly why it leaks when you share the file.
The important nuance is that this data survives sharing. Upload the PNG to a forum, a Discord, or a portfolio host that does not strip metadata, and the parameters travel with it. Anyone can lift your prompt and settings and reproduce your style in one click. If your prompt engineering is part of what makes your images yours, that is worth closing off before you post.
Why people strip Stable Diffusion parameters
The main reason is protecting the workflow. A carefully tuned prompt, a specific LoRA stack, and a seed that finally produced the look you wanted represent real effort. Shipping all of it inside every PNG hands that effort to anyone who right-clicks the file. Stripping the parameters lets the image circulate without carrying the instructions to clone it.
There is also a practical, non-secretive angle. Some galleries and printers reject or choke on unexpected text chunks, and a bloated ComfyUI workflow payload can add real weight to a file you are batching by the hundred. Clearing the chunks gives you a lean, standard PNG that behaves predictably everywhere.
To be straight about it: removing the parameters does not hide that an image is AI-generated, and it does not touch any provenance watermark a model or platform might add separately. It removes the generation recipe you embedded, not the fact of how the image was made. Use it to protect your prompts and keep files clean, not to misrepresent the work.
How to remove Stable Diffusion parameters
You can clear the tEXt, zTXt, and iTXt chunks from a Stable Diffusion PNG in a few seconds with NoAIMetadata, and the image data comes out untouched. Here is the process.
Step 1: Open the tool at the top of this site and drop in your PNG. It reads the file directly rather than re-rendering it, so nothing about the picture changes.
Step 2: Let it scan. The tool surfaces the embedded parameter chunks — the A1111 parameters block, the ComfyUI workflow and prompt payloads, and any other text chunks — so you can see the full recipe that was riding along before you clear it.
Step 3: Remove and download. The tool rewrites a valid PNG without those chunks. Open the clean file in a metadata viewer to confirm the parameters are gone and only the image remains.
Does stripping the chunks damage the PNG?
No. Text chunks live in a separate part of the PNG from the actual image data (the IDAT stream), so removing them leaves every pixel bit-for-bit identical. There is no re-compression, no color shift, and no change to dimensions. The file just gets smaller because the parameter payload — which for a heavy ComfyUI workflow can be substantial — is gone.
The output is a fully valid PNG that opens normally in every viewer, editor, and browser. It simply no longer carries the generation data. This is the key difference between clearing metadata and re-saving or screenshotting an image, both of which can degrade quality; stripping chunks does neither.
FAQ
Which Stable Diffusion tools does this work with?+
Will removing parameters break the PNG or ComfyUI workflow file?+
Can people really see my prompt in a shared PNG?+
Does this remove an AI watermark too?+
Related guides
How to Remove C2PA Metadata from Images
Remove C2PA Content Credentials and JUMBF manifests from PNG and JPEG images for free. Strip the cryptographic AI provenance signature in seconds.
How to Remove Midjourney Metadata from Images
Learn how to remove Midjourney metadata, prompts, and job IDs from your images without touching a single pixel. A clear walkthrough of what gets embedded and how to strip it.
How to Remove DALL-E Metadata and Content Credentials
Learn how to remove DALL-E metadata and Content Credentials. Strip C2PA, EXIF, and XMP from OpenAI images without touching a single pixel.
How to Remove EXIF Data from Photos
Remove EXIF metadata from JPEG and PNG photos for free — including GPS location, camera model, and timestamps. Protect your privacy before sharing.