How to Remove Metadata From AI Images, Prompt and Settings Included
Which AI image records can sit in a file, why the prompt is the one people miss, how to check and clean a copy without uploading, and what stays.
Quick answer
Local image generators often write the prompt, the settings and the whole workflow into the PNG as text. Remove it with a metadata cleaner that strips PNG text chunks, check the copy, and share only the copy.
- What hides in the file
- Prompt text and settings in PNG text chunks, AI labels in XMP and IPTC fields, Content Credentials in their own block, and EXIF such as dates or location.
- The one people miss
- The prompt. ComfyUI stores it with the full workflow; AUTOMATIC1111 adds generation parameters as a PNG text chunk.
- What no cleaner removes
- Watermarks in the pixels, such as Google's SynthID, and anything visible in the image itself.
- When to use a vault
- When the originals with their prompts, or the pictures themselves, should stay private on your iPhone after you share a clean copy.
Best overall: Stash
A metadata cleaner gives you a clean copy, but the original with its prompt, settings and dates is still in your camera roll and in iCloud Photos. Stash keeps those originals inside a working calculator, behind a PIN you choose. Each imported file is encrypted on the iPhone with AES-256, with the key kept in the iOS Keychain, and stored outside the Photos library. Photos, videos, PDFs and documents fit in the same vault. Stash is free to download with no ads, so the calculator and the encrypted vault are ready from the first launch.
What AI metadata an image can carry
An AI image is more than pixels. Depending on the tool that made it, the file can carry four kinds of records, each stored in a different place and each needing a different fix. This page puts the weight on the first kind, the prompt text, because it is the one most cleaners and most guides pass over. Content Credentials (C2PA) have their own guide: how to remove C2PA Content Credentials.
| Record | Typical source | Where it sits | What it can reveal | Removed by a text and EXIF cleaner? |
|---|---|---|---|---|
| Prompt, settings, workflow | Local generators such as ComfyUI and AUTOMATIC1111 | PNG text chunks | Your exact prompt, negative prompt, model, seed, the node graph | Yes |
| AI labels and prompt fields | Editing and stock tools | XMP and IPTC blocks | That the image is AI-made, sometimes the prompt and the AI system | Yes in JPEG |
| Content Credentials (C2PA) | Online generators and some editors | A separate signed block | Which tool made it, and edits since | See the C2PA guide |
| EXIF | Cameras, phones, some editors | EXIF block | Date, device, sometimes GPS location | Yes |
| Invisible watermark | Some generators, for example SynthID | The pixels | That a specific AI made it | No |
The last row is not metadata at all, which is why no cleaner touches it. More on that below.
Why the prompt is the record that matters most
Many online generators label their output with Content Credentials. Local generators, the ones people run on their own computer, tend to keep a full record of how the image was made, because their users want to reproduce it later.
ComfyUI's own documentation says, as of 2 December 2026, that it writes metadata into "PNG tEXt chunks" with the "standard field names" prompt and workflow (Workflow metadata). The workflow field holds the full graph: every node, every link and the layout. Drag the PNG back onto ComfyUI's canvas and the whole setup comes back. That is useful for you, and it works the same way for anyone you send the file to.
The AUTOMATIC1111 Stable Diffusion web UI does something similar. Its feature list says it "Adds information about generation parameters to PNG as a text chunk", which anyone can read with a PNG chunk viewer.
The photo industry has made room for prompts too. The IPTC Photo Metadata Standard 2025.1 adds fields for AI Prompt Information, AI Prompt Writer Name, AI System Used and AI System Version Used. IPTC data is stored as XMP or in the older IIM format, inside the file.
So a picture you post or send may tell the recipient:
- the full prompt, including words you would rather keep to yourself,
- the model, sampler and seed, enough to make near copies,
- names of local files and folders that show up in a workflow,
- when it was made, and in some files on which device.
How to see what your AI image carries
Check before you clean. It takes a minute and tells you which records you are dealing with.
- Open the photo metadata viewer in a browser. It reads the file on your device; there is no upload and no account.
- Choose the image or drag it onto the box.
- Read the block list. For a PNG, text chunks appear by type (
tEXt,zTXt,iTXt); a ComfyUI image shows itspromptandworkflowentries there. For a JPEG, look for XMP and IPTC blocks. - Check the Location line. If GPS coordinates are present, they are shown.
The Photos app on iPhone shows less. Apple's personal safety guide says to open a photo and swipe up or tap the Info button to see its metadata, which covers date, device and location. Prompt text, PNG chunks and Content Credentials do not appear there, so an image can look clean in Photos and still carry its prompt.
How to remove the prompt and other AI metadata, step by step
The cleanest fix is to stop writing the prompt in the first place, then clean the files you already have.
Stop it at the source (ComfyUI). ComfyUI's documentation gives two switches, as of 2 December 2026: start it with python main.py --disable-metadata, or in ComfyUI Desktop open Settings > Server-Config and turn on Disable saving prompt metadata in files. Images saved that way cannot rebuild a workflow later, so keep one private copy with metadata if you need that.
Clean a copy of an existing image:
- Open the photo metadata viewer and load the image.
- Press Download clean copy. The new file name ends in
-no-metadata. - For a PNG, the tool copies every chunk except
eXIf,tEXt,zTXt,iTXtandtIME, without touching the pixels. That removes the prompt and workflow text and any EXIF. - For a JPEG, the tool keeps only what the picture needs and leaves EXIF, XMP, IPTC and comments out, again without re-encoding (except for photos stored sideways, which are redrawn upright).
- Drop the clean copy back into the viewer. It should list no text chunks, no EXIF and no GPS.
- Share the copy, not the original.
One limit to know: the viewer is an EXIF and text remover, not a Content Credentials tool. In a PNG it keeps every chunk other than the ones listed in step 3, so a Content Credentials chunk (caBX) stays in the copy. If a check shows Content Credentials, follow the C2PA guide.
Common mistakes
- Uploading the file to a chatbot or an online cleaner. That hands the original, prompt and all, to another service. Use a tool that runs on your device.
- Trusting a re-save without checking. Whether an app keeps PNG text chunks when it saves a file again differs from app to app. Check the result in a viewer instead of guessing.
- Cleaning the original. Keep the original for yourself and share a cleaned copy. You may want the workflow later.
- Forgetting other copies. A file synced to a cloud folder or sent earlier in a chat keeps its metadata. Cleaning the new copy does not reach those.
- Expecting a cleaner to hide AI origin. A pixel watermark survives, and the picture still looks like what it is. Removing metadata is about privacy, not about passing off an image as something else.
What removing metadata cannot do
Metadata sits next to the picture; a watermark sits inside it. Google describes SynthID as adding "an invisible digital watermark to an AI-generated image (or video segment)" and says it is "designed to stand up to modifications like cropping, adding filters, changing frame rates, or lossy compression" (SynthID, as of 2 December 2026). Google lists Gemini, Search and Chrome among the products that check images for it. A metadata cleaner leaves such watermarks as they are, and it leaves visible logos and text in the image too.
When a metadata cleaner is enough
A cleaner does everything you need when:
- you made the image yourself and only want the prompt and settings out of the copy you post,
- the image itself is fine to share and only the file details are private,
- you keep the original in a folder only you use.
When you need more than a metadata cleaner
Cleaning fixes the copy you share. It leaves the originals as they were. Look further when:
- The originals sit in your camera roll. AI images saved to Photos sync to every device on your Apple Account with iCloud Photos on.
- The pictures themselves are private. Unfinished images, edits of real photos, or images of people you know should not sit in a library others may scroll.
- Other people use your phone or your Mac. Anyone who can open Photos can open the originals.
How to keep the originals private with Stash
Stash keeps files in an encrypted vault that opens from a working calculator. Imported files are encrypted on the iPhone with AES-256, with the key kept in the iOS Keychain, and stored inside the app, outside the Photos library and iCloud Photos.
- Install Stash from the App Store. It runs on iPhone and iPad with iOS 15 or later.
- Set your PIN and write down the recovery key that Stash shows once during setup.
- Tap + and import the original AI images, from Photos or from the Files app.
- Delete them in Photos, then in Utilities > Recently Deleted.
- When you want to post one, clean a copy in the photo metadata viewer first and share that.
The originals, with their prompts intact for your own use, stay behind your PIN.
FAQ
Can you turn off metadata on photos?
On iPhone you can turn off location: Apple's guide says to set Settings > Privacy & Security > Location Services > Camera to Never, or to tap Options in the Share Sheet and turn off Location for one share. Prompt text and AI labels come from the AI tool, so turn them off there or remove them with a cleaner.
How can I check the details of a photo?
In Photos, open the photo and swipe up or tap the Info button to see date, device and location. For prompt text, PNG chunks, XMP or Content Credentials, use a metadata viewer.
What is the difference between EXIF and metadata?
EXIF is one kind of metadata, written mostly by cameras and phones. AI labels and prompts usually sit in XMP, IPTC or PNG text chunks, so a tool that only removes EXIF can leave them in place.
Does removing metadata remove the AI watermark?
No. Watermarks such as SynthID are part of the pixels and are built to survive edits. A metadata cleaner removes data stored next to the picture.
Is the prompt stored in JPEG files too?
It can be, in XMP or IPTC fields, depending on the tool. Check the file in a viewer; the cleaner removes XMP and IPTC from a JPEG.
Can I remove metadata from a PDF online?
The photo metadata viewer handles images only. Avoid online PDF cleaners that upload the file; use a desktop app you already trust and check the result.
Will a screenshot of the image remove the metadata?
A screenshot is a new file without the original's text chunks, but it is a lower-quality copy and can carry details of its own, such as the date it was taken. A cleaned copy keeps the full quality.
The Bottom Line
Local AI image tools often keep a full record inside the file. ComfyUI writes your prompt and the whole workflow into PNG text chunks, and AUTOMATIC1111 adds generation parameters the same way. Anyone you send that PNG to can read the words you typed and rebuild your setup.
The table at the top sorts the records: prompt text, AI labels and EXIF come out with a cleaner that strips text chunks and EXIF; Content Credentials need their own steps; watermarks in the pixels stay. Check every file before and after, clean a copy on your device instead of uploading it, and share only the copy. Then decide where the originals live. If they should not sit in your camera roll and iCloud Photos, keep them in an encrypted vault behind your own PIN.
·Written by the developer of Stash
Save this guide
Download this guide as an image