How to Inspect and Losslessly Remove EXIF, XMP, PNG Text Chunks, and C2PA AI Metadata
Deep technical walkthrough of inspecting and stripping EXIF, XMP, PNG tEXt/zTXt/iTXt/caBX chunks, and JPEG APP11 JUMBF/C2PA credentials without recompressing pixels—comparing ExifTool, c2patool, and BareFilm's free Metadata Purge.
Key Takeaway (TL;DR)
To remove EXIF, XMP, PNG prompt chunks, and C2PA AI provenance losslessly, strip metadata segments/chunks at the container level instead of taking screenshots or re-saving images. You can use CLI tools (ExifTool + c2patool) locally, or drop files into BareFilm's free in-memory AI Metadata Purge tool (/tools/remove-ai-metadata), which wipes JPEG APP1/APP11/APP13, PNG non-render chunks, and WebP RIFF metadata while preserving ICC color profiles and compressed pixel streams.
- Formats Supported
- JPEG / PNG / WebP
- Pixel Recompression
- 0% (Container-Only)
- Color Profiles
- Preserves ICC / sRGB
- Online Tool Cost
- Free (0 Credits)
1. Where Do Images Store EXIF, XMP, Prompts, and C2PA Credentials?
Deleting basic camera timestamps or GPS fields is no longer enough to audit what an image file carries. AI generators, editing apps, and provenance tools embed data inside distinct binary blocks across JPEG, PNG, and WebP:
Binary Container Map Across JPEG, PNG, and WebP
| Format | Camera & Privacy Metadata | AI Prompts & C2PA Provenance | Color & Pixel Handling |
|---|---|---|---|
| JPEG | APP1 (0xE1 EXIF/GPS IFD), APP13 (0xED IPTC/8BIM), COM (0xFE comments) | APP1 (Adobe XMP / ExtendedXMP), APP11 (0xEB JUMBF/C2PA manifests), and bytes appended after EOI (0xFFD9) | Explicitly retains APP2 (ICC_PROFILE\0) and APP14 (Adobe\0) color transforms while copying the entropy scan untouched |
| PNG | eXIf chunk (embedded TIFF EXIF), tIME (modification timestamp), ancillary non-render blocks | tEXt / zTXt / iTXt (Stable Diffusion / ComfyUI workflow JSON, XMP packets), caBX (C2PA credentials chunk) | Retains only safe rendering chunks (IHDR, PLTE, tRNS, IDAT, IEND, sRGB, gAMA, cHRM, iCCP, bKGD, acTL/fcTL/fdAT) without recompressing IDAT |
| WebP (RIFF) | EXIF FourCC chunk and VP8X header flag 0x08 | XMP , C2PA, JUMB, META, LIST, INFO chunks and VP8X header flag 0x04 | Preserves VP8/VP8L/ALPH/ICCP bitstream while clearing EXIF (0x08) and XMP (0x04) bits in the VP8X header |
2. Lossless Inspection & Stripping Methods Compared
For terminal power users, ExifTool paired with the official Content Authenticity c2patool (and oxipng/pngcrush for strict PNG chunk reduction) provides reliable command-line cleanup without decoding image pixels:
# 1. Inspect every metadata group (duplicate tags, unknown AI params, JUMBF/caBX)
exiftool -a -u -g1 image.png
c2patool image.png --info
# 2. Strip metadata at the container level without recompressing pixels
exiftool -all= -overwrite_original image.jpg
exiftool -all= -jumbf:all= -overwrite_original image.pngComparison of Metadata Inspection & Stripping Workflows
| Method | Pixel Re-encoding | Handles C2PA & PNG Text | Cost & Convenience |
|---|---|---|---|
| BareFilm AI Metadata Purge (/tools) | None (binary segment/chunk strip) | Yes (JPEG APP11, PNG caBX/tEXt, WebP JUMB) | Free (0 credits), browser upload, instant before/after X-Ray diff |
| ExifTool (+ c2patool) | None (container-level rewrite) | Yes (use -all= and verify JUMBF/caBX) | Free & open-source; requires local CLI installation |
| oxipng / pngcrush (PNG only) | Lossless stream/chunk cleanup | Drops non-essential PNG ancillary chunks | PNG only; does not inspect JPEG or WebP |
| Screenshots / Messenger re-upload | Lossy pixel recompression | Usually strips headers but degrades sharpness & color | Free, yet alters pixels and often injects new app tags |
3. Important Technical Caveats (C2PA Signatures vs Pixel Watermarks)
First, C2PA Content Credentials are cryptographically signed manifests. If an image editor alters pixels without dropping the APP11/caBX manifest box, validators flag a broken signature; stripping the whole manifest container cleanly removes the credential block instead.
Second, lossless metadata removal operates purely on headers and file chunks. If a generator embeds an invisible steganographic watermark directly inside RGB pixel values (such as SynthID or Tree-Ring watermarks), container-level stripping keeps the pixels untouched and does not alter pixel-domain marks.
Frequently Asked Questions
Does BareFilm store or publish photos processed by the Metadata Purge tool?
No. The AI Metadata Purge tool is free (0 credits) for everyone. Uploaded files are parsed and stripped in server memory during the request cycle solely to show your before/after X-Ray report and serve the cleaned download—never published or archived in public galleries.
Why is binary metadata stripping better than taking a screenshot?
Screenshotting decodes your photo to screen resolution and re-encodes it with lossy compression, blurring 2K/4K skin texture and shifting color profiles. Binary container stripping drops EXIF, XMP, PNG text chunks, and C2PA boxes while keeping original pixel streams intact.
How do I verify that EXIF, XMP, and C2PA chunks are actually gone?
BareFilm displays a full before-and-after diff plus bytes saved right after cleaning. You can also re-upload the downloaded clean image to scan it again or run exiftool -a -u -g1 locally.