metadata stripping
termKept in this browser · My desk
Removing data about a file, such as camera, software, author, dates and GPS coordinates, from the file itself, before publication or at a security boundary.
ExifTool's -all= deletes most metadata, with documented caveats: proprietary RAW formats need their makernotes, the JPEG APP14 Adobe group is kept by default, and ExifTool's PDF edits are reversible because the original is never deleted. NIST notes that metadata is often stripped when files are shared on social media, sometimes for privacy, sometimes to deceive.
What it is. Metadata stripping removes from a file the data about the file: camera make and model, software, author, dates, comments, embedded thumbnails and, most sensitive of all, GPS (Global Positioning System) coordinates. In photographs most of it follows Exif, the Exchangeable image file format for digital still cameras, a standard of the Camera and Imaging Products Association (CIPA), numbered DC-008; CIPA's current edition is Exif Version 3.1, a revision of the 2024 edition whose English translation was published on 30 January 2026. Documents carry their own fields (author, revisions, comments, document properties), which is where stripping meets redaction.
Why it matters. A location in a photograph is a location of a person or a thing. The United States Army warned its soldiers on 7 March 2012 that most smartphones automatically embed the latitude and longitude within each photograph, and recounted a case from 2007 in Iraq: soldiers photographed a new fleet of helicopters on the flightline, the pictures were uploaded to the internet, the enemy used them to pinpoint the helicopters inside the compound, and a mortar attack destroyed four AH-64 Apache helicopters. Its advice was to disable geotagging and to remember that once something is posted it cannot be fully retrieved. NIST (the National Institute of Standards and Technology) notes in its report on content produced by artificial intelligence (AI), AI 100-4 of November 2024, that metadata can be manipulated by anyone copying or editing a file and is often stripped when files are shared on social media, sometimes to deceive recipients about provenance and sometimes for benign reasons such as privacy protection.
Reading a location, by hand. ExifTool, Phil Harvey's metadata reader and writer, prints GPS coordinates by default in degrees, minutes and seconds; its documentation's example, 54 deg 59' 22.80", is 54 + 59/60 + 22.80/3,600 = 54.989667 degrees in decimal form. For a point in the centre of São Paulo, 23° 32′ 51″ south and 46° 38′ 10″ west, the same arithmetic gives 23 + 32/60 + 51/3,600 = 23.5475 and 46 + 38/60 + 10/3,600 = 46.6361, written −23.5475 and −46.6361 because south and west are negative. ExifTool appends N, S, E or W when the hemisphere is known, or prints signed decimal degrees with its option -n.
How it is done, and the caveats. ExifTool's -all= deletes most metadata, with documented exceptions. It should not be used on proprietary RAW formats, whose makernotes carry information needed to convert the image; not all groups are deletable; the JPEG (Joint Photographic Experts Group) APP14 Adobe group is kept by default because removing it may change the image's appearance; and ExifTool's changes to PDF (Portable Document Format) files are reversible, because the original information is never actually deleted from the file, so ExifTool alone cannot securely edit metadata in PDFs. Trailers stored after the JPEG end-of-image marker, such as cameras' preview images, are a separate group, removed with -trailer:all=.
What it leaves. Stripping removes what is stored as metadata and nothing else: messages in pixel values or audio samples, watermarks in the content itself and appended data (unless trailers are removed separately) all survive. It also removes provenance manifests stored as metadata, which is why the Coalition for Content Provenance and Authenticity (C2PA) describes durable Content Credentials that combine a hard binding, a cryptographic hash, with a soft binding, a watermark or a fingerprint, so that the credential can be found again in cloud storage even after it has been removed from the file, and why China's Measures for Labelling AI-Generated Synthetic Content, in force since 1 September 2025, require implicit labels in the file metadata of AI-generated content and forbid, in Article 10, maliciously deleting them. The same operation is privacy protection in one setting and, done maliciously to an AI label in China, a prohibited act.
What goes wrong. Typical failures follow from the caveats: a stripped JPEG published with its camera preview still attached; a PDF whose metadata was edited reversibly and recovered; a sanitizing gateway that also deletes the provenance record a newsroom needed; and the belief that a stripped file carries nothing hidden, when the content itself can. A sanitization policy therefore needs two lists, what to remove and what to keep, and a choice of tool per format rather than one command for everything.
Neighbours. Metadata is the thing removed; redaction is the same discipline for the visible content of documents; appended data is the region stripping misses unless asked; Content Credentials and AI watermarking are the provenance marks that stripping endangers or leaves untouched; and content disarm and reconstruction, which rebuilds files from what their format defines, is the gateway form of the same idea.
Also known as: metadata removal, metadata scrubbing, EXIF stripping, remoção de metadados
Sources
- Phil Harvey, ExifTool application documentation (read 2026-11-23): -all= deletes all metadata; not for proprietary RAW; APP14 Adobe group kept by default; PDF edits reversible because the original is never deleted; GPS coordinate formats
- NIST AI 100-4, November 2024 (read 2026-11-23): embedded metadata can be falsified by anyone copying or editing a file, and is often stripped when files are shared on social media, to deceive or for privacy
- C2PA, Explainer 2.2 (read 2026-11-23): provenance metadata can be removed; durable Content Credentials pair a hard binding with a soft binding
- Cyberspace Administration of China and others, Measures for Labelling AI-Generated Synthetic Content, in force 1 September 2025 (read 2026-11-23): implicit labels in file metadata; Article 10 forbids maliciously deleting them
- Cheryl Rodewig, US Army, Geotagging poses security risks, Fort Benning, 7 March 2012, read through a summary because the site refused a direct copy (read 2026-11-23): smartphones automatically embed latitude and longitude in photographs; in 2007 in Iraq photographs of new helicopters uploaded to the internet let the enemy pinpoint them, and a mortar attack destroyed four AH-64 Apaches; advice to disable geotagging
- Camera and Imaging Products Association (CIPA), standards list (read 2026-11-23): CIPA DC-008, Exchangeable image file format for digital still cameras, Exif Version 3.1, a revised edition of DC-008-2024, English translation published 30 January 2026