PRIVACY & METADATA

Remove video metadata before sharing: what actually survives the strip

Five synthetic MP4 variants show GPS stored as a binary atom, Apple device keys, a false negative in a text search, and the tags that remain after a copy or re-encode.

A smartphone wrapped in a chain and secured with a combination padlock
Illustrative stock photo: Towfiqu barbhuiya / Pexels. The photo is not a screenshot demonstrating the steps in this guide.
AT A GLANCE

A metadata strip is not one switch and a text search is not an audit. GPS can live in a binary atom, copy and re-encode remove different layers, and some generic tags remain.

Metadata lives in layers, not one block

An MP4 is a set of boxes. Some boxes describe the file, some describe each stream, and one holds the encoded media data. Metadata can sit in a global udta box, in per-stream tag boxes, in chapters, in attachments, or inside the encoded bitstream itself. A single “remove metadata” command may touch only some of those layers.

Location is a good example. A phone may write a standard 3GPP location tag, an Apple key such as com.apple.quicktime.location.ISO6709, or both. An MP4 can also carry a binary loci atom in which latitude and longitude are numeric fields, not a readable string. A search for the digits “37.7749” can return false even while a metadata reader still decodes the coordinates.

Device make and model, creation date, comment, artist and encoder are other common tags. Some are global; some belong to a stream. Rotation is different again: it is display-matrix side data that tells a player how to present the picture, not a text tag. Chapters, subtitles and attachments may carry their own titles and language codes.

The test file was a synthetic 320×180, 24 fps, 3-second H.264/AAC MP4. It was created with FFmpeg and deliberately tagged to imitate phone-style metadata. It is not an iPhone file, and this is not a complete forensic audit of every possible MP4 box.

What the synthetic phone file contained

The input carried a standard location and location-eng, the Apple ISO6709 location key, Apple make and model, an Apple creation date, a generic creation_time, a comment and an artist. It also contained a binary loci atom and an Apple mdta metadata block.

LayerExample in the test fileWhat it can reveal
Global format tagslocation=+37.7749-122.4194/Coordinates, device family, date, free-text notes
Apple mdta keyscom.apple.quicktime.make=Apple, model=iPhone 15 ProDevice and capture context
Binary atomlociCoordinates stored as numeric fields
Stream tagscreation_time, handler_name, languageWhen a track was written, what wrote it, its language
Encoded mediamdatVisible scene plus possible in-band data such as SEI or captions

The file measured 134,955 bytes, 3.000 seconds, 72 decoded frames and two streams. The video and audio payload hashes were recorded before processing. That makes it possible to check whether a stream copy preserved the encoded media or whether a re-encode changed it.

A phone file may contain more, less or different information. The point is not that every MP4 has these exact tags. The point is that “the metadata” is not one field, and the location can be stored in a form that a plain text search does not see.

Conceptual diagram for What survives a metadata strip
Original ToolWillow diagram. Illustrated concept, not measured product results.

Inspect every stream before you strip

Start with a structured read rather than a screenshot of one properties panel:

ffprobe -v error -show_format -show_streams -show_chapters -of json input.mp4

That shows global tags, stream tags and chapter metadata together. If you only inspect format.tags, you can miss a stream-level encoder or handler name. If you only inspect the visible metadata panel, you can miss a binary atom. An optional deeper read with ExifTool can show more QuickTime keys:

exiftool -a -ee -G1 -s input.mp4

Then make a copy and strip it. A full-tag strip with stream copy looks like this:

ffmpeg -i input.mp4 -map 0:v:0 -map 0:a? -c copy -map_metadata -1 -map_metadata:s:v -1 -map_metadata:s:a -1 -map_chapters -1 -movflags +faststart output.mp4

-map_metadata -1 removes the mapped global metadata; the stream-specific -map_metadata:s options remove track tags; -map_chapters -1 drops chapters. -c copy keeps the encoded video and audio. The output still needs to be inspected, because the muxer can write its own generic tags.

What a full strip changed

The full strip reduced the file from 134,955 to 134,339 bytes. Duration stayed at 3.000 seconds, the decoded frame count stayed at 72, and the video and audio payload hashes were unchanged. The GPS tags, Apple location key, make and model, Apple creation date, generic creation time, comment and artist were gone.

OutputMethodGPS via ffprobeByte string “37.7749”Apple device/dateComment / artistEncoder tagsBytes
InputNoneYesYesYesYesFormat; video stream134,955
Strip all-map_metadata -1, copyNoNoNoNoFormat only134,339
Strip global-map_metadata:g -1, copyNoNoNoNoFormat; video stream134,339
Control copyCopy, no stripYesNoNoYesFormat; video stream134,467
Re-encodeFull strip, new encodeNoNoNoNoFormat; stream125,581

The full strip still left a format-level encoder tag and stream-level handler_name and language tags. It removed the stream's video encoder tag. Those generic values are written by the muxer and are not the GPS or device identity that the test targeted, but they are still metadata. “No tags remain” would be false.

The global-only strip matched the full strip on GPS, Apple keys, comment and artist, but it kept the video stream's encoder=Lavc62.28.101 libx264. The synthetic GPS and device keys were global in this file, so this test cannot isolate what a global-only strip would do to a stream-level location tag in another file.

The control copy that changes the story

A plain stream copy without the strip flag produced the most useful result. The output kept location and location-eng, which ffprobe decoded from the binary loci atom. It dropped the Apple mdta make, model and creation-date keys. It kept the comment and artist. The file was 134,467 bytes, 3.000 seconds and 72 frames.

A byte search for the literal string 37.7749 returned false on that copy. That is a false negative, not evidence of removal. The coordinates were stored as binary numeric fields in loci; the digits never appear as a contiguous text string. ffprobe still read the location. A tool that only searches the file for text would have told you the GPS was gone when it was not.

This is the practical reason to verify with a metadata reader and an atom check, not one method. The control copy also shows that “stream copy” is not the same as “metadata copy.” The muxer may drop some keys and preserve others depending on which boxes it chooses to rewrite. There is no single behavior to assume across MP4, MOV and every muxer version.

What stream copy cannot remove

Stream copy does not decode the video or audio, so it cannot remove information that is inside the encoded bitstream. In-band SEI messages, closed captions, visible burned-in text and the scene itself are outside the tag layer. A metadata strip is not a redaction tool. If a house number, a face, a license plate or a screen is visible, removing the GPS tag does nothing to hide it.

Nor does stream copy guarantee that every date field is gone. The test checked the creation_time tag, not every header timestamp inside mvhd or tkhd. A muxer can write a new creation time when it produces a file. If a date matters, inspect the actual output and understand which field you are reading.

Re-encoding changes the picture and audio payload. In the test it produced a 125,581-byte file, 3.008 seconds and 72 frames. It removed the planted GPS, device and date tags, but it also added an encoder tag and changed the duration slightly. Re-encoding is a quality and timing decision, not a free metadata switch. Use it when the destination format requires it, not as a default just to remove tags.

Rotation needs separate care. The display matrix is side data, not a text tag. A clean copy can keep it so a portrait phone video stays upright. A tool that strips it may leave the pixels unchanged while changing the presentation.

A share checklist that ends with a second inspection

  1. Inspect the original with ffprobe or ExifTool. Check format tags, stream tags, chapters and rotation.
  2. Work on a copy and keep the original intact.
  3. Strip mapped metadata and chapters. Decide whether a copy is enough or the destination requires a re-encode.
  4. Inspect the output with the same reader. Do not rely on a byte search for coordinates.
  5. Play the output. Check duration, orientation, audio, captions and the frames that matter.
  6. If the file is going to a platform, check whether that platform re-encodes or preserves the file. A share-sheet location toggle may affect only that share, not every copy on disk.
  7. Share the inspected copy and keep a private original for your records.

The browser metadata cleaner removes mapped global and stream tags, drops chapters, and keeps rotation side data. It first copies the streams and falls back to a re-encode when the selected container cannot hold the original codecs. Generic container tags can remain. The test results here come from desktop FFmpeg 8.1.1, not from the browser tool.

Download the tagged MP4 · Stripped copy

Common questions

Does -map_metadata -1 remove all metadata?

It removes the mapped global and stream tags, including the binary loci location atom in this test. The output still carries an encoder tag and handler/language tags, and in-band SEI is not touched. Inspect the output.

Why does a plain stream copy keep GPS?

In this MP4, GPS is stored in the binary loci atom, which the muxer can carry even when it drops Apple mdta device and date keys. A text search for the coordinate digits can miss it.

Does removing metadata reduce quality?

A stream copy does not re-encode the picture or audio. A re-encode does, and it can change duration and add a new encoder tag.

Does a phone sharing setting clean the file on disk?

A share-sheet location toggle can affect that share. It does not necessarily rewrite every existing file. Check the actual file you are sending.

Does metadata removal blur a house number or license plate?

No. It changes tags, not pixels. Visible redaction is a separate edit.

Why did my cleaned file still show a creation date?

The muxer may write its own tags or header timestamps. Check format and stream tags separately, and do not assume one flag removes every date field.

Sources & further reading

Written for ToolWillow with original explanations and examples. Consult current product documentation for controls that vary by version.

Try the free browser tools →