Stable Diffusion images made in Automatic1111 are the leakiest files in AI art. A single PNG can contain your entire prompt, your negative prompt, your seed, your sampler, your model name, and every setting you used. Anyone who downloads the image can read that recipe in seconds. Here is what is inside the file, where it hides, and how to strip it before you share your work.
What Automatic1111 Embeds in Every PNG
When Automatic1111 saves a PNG, it writes a text chunk called parameters that holds the complete generation recipe in plain, readable text. That single field typically includes the positive prompt, the negative prompt, the number of steps, the sampler name, the CFG scale, the seed, the image size, the model name, and the model hash. If you used a VAE, a LoRA, an embedding, or a ControlNet unit, those names and weights are often in there too. It is not a vague flag that says AI was used; it is the full instruction set needed to recreate a close copy of your image.
JPEG exports from the same workflow are less chatty but still not clean. A JPEG can carry the same generation text inside its EXIF UserComment field or inside an XMP packet, along with the usual camera-style fields such as software name and creation date. Images that pass through upscalers, inpainting tools, or img2img can pick up additional text, including the settings of the second pass. If you have ever wondered how someone reproduced your style so precisely, the answer is often sitting in the file you posted, not in their skill alone.
Where Stable Diffusion Metadata Lives
In a PNG, the parameters text lives in a tEXt chunk, which is one of the ancillary chunks stored alongside the image data. PNG files are built from a chain of chunks, and text chunks are easy for any reader to parse, which is why so many prompt-reading websites exist. Other chunks in the same file can hold an ICC colour profile, EXIF data in an eXIf chunk, XMP data, and sometimes C2PA data if another tool added it later. The image pixels themselves sit in IDAT chunks, separate from all of this text, so the recipe can be removed without touching the picture at all.
That structure is also what makes the data so easy to copy. A viewer only needs to open the PNG, read the tEXt chunks, and display the parameters field. No password, no special software, and no image analysis is required. The same is true for the prompt field in a JPEG, which sits in a standard EXIF segment. This is why renaming the file or cropping a few pixels does nothing useful: the recipe lives in the container, and it survives both of those tricks. Only a cleaner that parses the container and rebuilds it without the text chunks can remove it reliably.
PNG tEXt chunk: parameters
Prompt: portrait of a lighthouse keeper, golden hour, film grain
Negative prompt: blurry, deformed hands, extra fingers, low quality
Steps: 28, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 482910337
Size: 768x1024, Model: realisticVisionV51, Model hash: 9a2c1f4e
VAE: vae-ft-mse-840000, Clip skip: 2, Hires upscale: 2xWhy a Leaked Prompt Matters
For many creators, the prompt is the work. It may represent hours of testing, a private LoRA trained on your own art, a client brief you are under contract not to share, or a commercial style you sell as a service. Posting the image with the prompt attached gives that work away for free to anyone who downloads the file. Competitors can copy the recipe, marketplaces can see exactly which model and LoRA produced a listing image, and a client can discover that a supposedly hand-made illustration came from a named checkpoint and a copied prompt.
There is a platform cost as well. Marketplaces and social networks scan PNG text chunks for generation data and may add an AI label or filter the listing. A prompt that mentions a trademarked character, a real person, or a sensitive subject can also create problems that the image alone would never cause, because the text is searchable in a way the pixels are not. Cleaning the file separates the finished picture from the process that made it, so you can share the result without publishing the recipe. For the broader picture of how these tags are read, see C2PA Content Credentials and our guide to Stripping Automatic1111 & ComfyUI data.
How to Remove Stable Diffusion Metadata
Open the MetaRinse AI image cleaner in your browser and drop in the PNG or JPEG you want to share. The cleaning runs entirely on your device, so your prompt and model names never upload to a server. For a normal share, choose a lossless-style clean: the tool reads the PNG chunk list or the JPEG segments, drops the parameters tEXt chunk, the EXIF UserComment, the XMP packet, and any other text and provenance chunks, and then rebuilds the file with the same pixels. The image looks identical, but the recipe is gone.
Use a deeper clean when you want extra assurance, for example for a commercial listing or a client delivery. A deep clean re-encodes the image and writes a fresh file, which also gives you a new file hash. After either mode, verify the result before posting. Open the cleaned file, check the size and quality, and confirm that no prompt text remains. A quick way to confirm is to open the cleaned PNG in a prompt reader: it should find nothing. Then upload the cleaned copy only, and keep the original, with its prompt intact, in a private folder so you can reproduce the image later.
What Metadata Removal Cannot Do
Removing file metadata cannot remove an invisible pixel watermark baked into the pixels, and it cannot change what an AI detector reads from the picture itself. Stable Diffusion images do not carry Google SynthID, but detectors can still analyse visual patterns, textures, and artefacts left by the diffusion process. A metadata cleaner changes the container, not the content, so it is not watermark removal and it does not make an image undetectable as AI-generated. Anyone who promises that is selling a misunderstanding.
Timing matters too. If the original PNG was already posted somewhere, that site may have stored a copy of the parameters text on its own servers. Cleaning your local file afterwards does not erase the copy the platform already kept. Clean before the first upload, every time, and if a prompt has already leaked, treat it as shared: change any private LoRA name or client detail it exposed, and publish future work only as cleaned files. Prevention is the whole value here, because a leaked prompt cannot be un-read.
Safer Habits for Sharing SD Images
Build cleaning into your export routine. In Automatic1111, keep your originals in a private outputs folder and treat them as your working files, with prompts intact for your own reuse. Create a separate share folder that only ever holds cleaned copies, and upload only from that folder. That single habit prevents the most common mistake: grabbing the wrong file in a hurry and posting the original with the full recipe attached.
Be careful with chained tools as well. Upscaling in a second app, converting PNG to JPEG, or editing in Photoshop can re-add metadata, including fresh EXIF, XMP, or C2PA data. Always clean the final file, after the last edit, not an intermediate version. If you share the same image to several places, use the same cleaned copy everywhere. And if you use node-based workflows as well, read our companion guide on how to remove metadata from ComfyUI images, because ComfyUI stores a different, even more detailed record of your workflow.

