Skip to main content

Metadata & Document Cleaning

Photos, Word files, and PDFs contain hidden data that can identify sources, reveal locations, and expose authors. This guide covers how to find and remove it.

General guidance, not professional security advice. For high-risk threat models involving state actors or organised crime targeting, consult a qualified security professional or the Access Now Digital Security Helpline.

Last reviewed: Next review due:

What is document metadata and why does it matter?

Every digital file contains more than just the content you can see. Photos embed GPS coordinates, camera serial numbers, and timestamps. Word documents embed the author name, organisation, revision history, and comments. PDFs can embed all of the above plus creation software details and tracked changes.

For journalists, metadata is a double-edged tool: you can use it to verify documents and photographs from sources, but you must also strip it from documents you receive and publish, to prevent it from identifying your source.

Key tools

ExifTool
Reading & stripping EXIF from images and PDFs

Free, command-line tool (GUI wrappers available). Run exiftool -all= filename to strip all metadata from a file. The definitive tool for metadata analysis.

Dangerzone
Full document sanitisation

Freedom of the Press Foundation tool. Converts documents to image-based PDFs in an isolated container, stripping all metadata and active content. Recommended for documents from unknown sources.

Adobe Acrobat Pro
PDF redaction

Tools > Redact > Mark for Redaction > Apply Redaction. This properly removes the text layer. Print-to-PDF does not redact — it only covers the text visually.

LibreOffice / Word export
Clean PDF export

When saving as PDF, check the "Document properties" export option — disable including author, organisation, and creation date if available.

Red flags

  • Publishing a photo from a source without checking for GPS coordinates in EXIF data.
  • Drawing a black box over text in a PDF without using a proper redaction tool.
  • Publishing a Word document (.docx) directly — it contains author and revision metadata.
  • Sending a source photograph without stripping EXIF data that includes location or device serial number.
  • Using screenshot as a "cleaning" method — screenshots can still embed device metadata.

Document cleaning checklist

  • I have run ExifTool on all images to check for GPS coordinates before publishing or sharing.
  • I have stripped all EXIF metadata from images that came from a sensitive source.
  • I have processed documents from unknown sources through Dangerzone before opening them on my main device.
  • For redacted PDFs: I have used Adobe Acrobat's Redact tool (not a black box drawn over text) to remove underlying text.
  • I have checked Word document properties (File > Info > Properties) and removed author, organisation, and company fields before exporting to PDF.
  • I have verified that the published version of a document does not contain hidden tracking pixels or watermarking patterns.

Source protection tools

Metadata cleaning is part of source protection. Assess your full source protection workflow.

Source Protection Checklist

Common mistakes

  • Assuming that cropping or resizing a photo removes EXIF data — it often does not.
  • Using a black rectangle drawn in a PDF viewer as redaction — the text remains selectable.
  • Opening untrusted documents on your main device before sanitising them.
  • Forgetting that Google Docs and other cloud editors add their own metadata.
  • Not checking for hidden tracked changes in received Word documents before relying on their content.

Related guides

Primary sources

Frequently asked questions

What is EXIF data and how can it expose a source?
EXIF (Exchangeable Image File Format) data is metadata embedded in digital photos. It can include the GPS coordinates where the photo was taken, the date and time, the camera model and serial number, and sometimes the device owner's name. A source who photographs a document and sends it to you may unintentionally reveal their precise location — down to a specific room — via the EXIF data embedded in the file. Always strip EXIF data from images before publishing or analysing.
What is the most common redaction mistake journalists make?
Drawing a black box over text in a PDF without actually removing the underlying text layer. The black box is a visual element; the text remains in the document and can be copied, selected, or revealed by removing the box. This mistake has exposed sensitive information in published official documents on multiple occasions. Proper redaction requires either burning the redaction into a flat image (converting to image PDF), using Adobe Acrobat's redaction tool which removes the text layer, or using Dangerzone to sanitise the document.
What is Dangerzone and how does it help?
Dangerzone is a free tool developed by Freedom of the Press Foundation. It converts potentially dangerous documents (PDFs, Word files, images) into safe PDFs by rendering them in an isolated container and converting them to a clean image-based PDF. This process strips all metadata and eliminates any active content (macros, embedded scripts) that could be used to de-anonymise or compromise your device. It is the recommended tool for processing documents received from unknown sources.
Does publishing a Word document expose metadata about the author?
Yes. Microsoft Word embeds author name, organisation, revision history, comments, and tracked changes in the document file. Publishing a .docx file directly has in the past revealed the identity of anonymous sources and confidential authors. Always convert to a clean PDF using Word's export function, then check the PDF metadata — or use Dangerzone to produce a fully sanitised version.