Skip to content

How lossless metadata removal works

We remove metadata by editing the file's container: the metadata blocks go, and the compressed pixel data is copied through byte for byte, never decoded or saved again. After each clean, the tool decodes the original and the result and checks that every pixel matches.

Updated · By Fazal Singh Bhinder

The problem with the obvious approach

The easy way to strip metadata in a browser is to draw the image onto a canvas and export it. Three lines of code, and the metadata is gone, because canvas has no idea metadata exists.

It also re-compresses your image. A JPEG exported from canvas has been decoded and re-encoded, typically at 85–95% quality. The pixels are not the pixels you started with. Do it twice and the loss compounds. For a format like HEIC the browser may not even be able to encode it back, so you silently get a JPEG instead.

Container surgery instead

Image formats separate the compressed picture from the metadata around it. If you understand the container, you can remove one without touching the other. That is what this engine does, with a dedicated parser per format:

  • JPEG. Walk the marker segments, drop APP1 (EXIF and XMP), APP11 (C2PA), APP13 (IPTC) and COM, then copy everything from the start-of-scan marker onward verbatim. APP14 is deliberately kept, because it declares the colour transform, and removing it breaks CMYK files. So is the APP2 colour profile, unless you switch off "keep colour profile": without it, colours can shift.
  • PNG. Filter out tEXt, iTXt, zTXt, eXIf, tIME and caBX. Surviving chunks are copied with their CRCs intact, so there is nothing to recompute.
  • WebP. Drop the EXIF and XMP RIFF chunks, fix the container size, and clear the matching feature bits in the VP8X header. Skipping that last step produces files that strict decoders reject.
  • TIFF. Append a rebuilt directory containing only image-critical tags, repoint the header at it, and zero the old one. Pixel strips never move.

When deleting bytes is not an option

HEIC, AVIF, MP4 and MOV share the ISO Base Media container, and it has a property that makes naive editing dangerous: offsets are absolute. A HEIC records exactly where each metadata item sits via an iloc table. An MP4's stco table records where each media chunk begins. Remove bytes from the middle of the file and every one of those numbers becomes wrong.

So we do not remove bytes. We neutralise them in place:

  • HEIC and AVIF. The metadata item payloads are overwritten with zeros. Every offset still resolves, the file stays structurally valid, and the image data is untouched.
  • MP4 and MOV. Each metadata box is rewritten as a free box of identical size and zeroed. free is spec-defined padding that every demuxer skips. Header timestamps are zeroed in place.

The cleaned file is therefore the same size as the original. That is the correct outcome, not a failure. The metadata is gone, and its former space is now inert padding.

Video without loading video

A browser tab will run out of memory long before it can hold a 2 GB file. So videos are never read whole. Top-level boxes are walked by pulling 16-byte headers through File.slice(), only the moov box is read in full (a few hundred kilobytes even in a very long clip), and the output is assembled as a Blob built from lazy references to byte ranges of the original file. Peak memory stays in the low megabytes regardless of duration.

Verification

Claiming a file is clean is easy. Proving it is the interesting part, so after every removal the engine does two things:

  1. Re-parses the output from scratch, as if it were a file you had just dropped in, and lists anything still present. Structural tags such as image dimensions are separated from personal ones, so the count means something.
  2. Compares the pixels. Both files are decoded and every channel of every pixel is compared. If the result says zero pixels changed, that is a measurement, not a slogan. Where a browser cannot decode the format (often HEIC), it says so rather than guessing.

Both results are in the audit report you can download alongside the cleaned file.

Proof: 12 files, before and after

On 10 November 2026 we ran the same code this site runs in your browser over every test file, then checked each result with tools that share none of its code: exiftool 13.55 for metadata, Pillow (and Apple's own decoder for HEIC) for the pixels, and ffmpeg for the video stream.

FileSizeMetadata fieldsGPSAI label (C2PA)Pixels
ai-image.png 5.9 KB → 5.6 KB 3 → 0 — — identical
anim.gif 30.2 KB → 30.1 KB 1 → 0 — — identical
c2pa-google.png 23.0 KB → 209 B 36 → 0 — removed identical
c2pa-openai.png 21.5 KB → 209 B 35 → 0 — removed identical
clip.mov 24.2 KB → 24.2 KB 11 → 0 removed — identical
clip.mp4 23.8 KB → 23.8 KB 5 → 0 — — identical
photo-gps.heic 44.3 KB → 44.3 KB 24 → 0 removed — identical
photo-gps.jpg 90.8 KB → 90.3 KB 18 → 1 (Orientation) removed — identical
photo-xmp.jpg 91.0 KB → 90.3 KB 21 → 1 (Orientation) removed — identical
photo.tiff 900.2 KB → 900.3 KB 2 → 0 — — identical
photo.webp 28.7 KB → 28.2 KB 18 → 0 removed — identical
plain.png 5.6 KB → 5.6 KB 0 → 0 — — identical

What the table shows, and what the files are:

  • Every image decodes to exactly the same pixels, and both videos keep a byte-identical video stream. Nothing was re-compressed.
  • Orientation is the one field kept on JPEGs, on purpose: without it, a photo taken sideways opens sideways. You can turn that off in the options.
  • HEIC and the videos stay exactly the same size, because their metadata is overwritten with zeros in place (see above). exiftool finds nothing left in them.
  • The two C2PA files carry the real Content Credentials manifests from an image made with Google's and with OpenAI's generators, on a small plain test image. The manifest was almost the whole file, which is why 23 KB becomes 209 bytes.
  • The HEIC was encoded by Apple's own HEIC encoder (macOS sips), with camera details and a GPS position added by exiftool (it is built during the test, so it is not in the repository). The other files are test images we generated and filled with camera, GPS, XMP, AI-prompt and comment metadata. Each linked file name opens the original sample file on GitHub: download it, run it through the tool and check the result yourself.

Why none of it needs a server

Everything above is byte manipulation. No machine learning, no heavy dependency, no reason to involve a server. Keeping it local removes the upload wait, the file size cap, the queue, and the need for you to trust an operator's retention policy.

It also makes the privacy claim testable rather than promised. Open your browser's Network panel and clean a file: no requests. Install the site and switch off your network: it still works. A tool that uploads your files cannot do that, whatever its privacy page says.