Hidden data in your documents: metadata, comments and tracked changes
Word files, PDFs and photos carry more than their text: author, comments, tracked changes, attachments, GPS. How to find and remove it with built-in tools.
Besides the words you see, a document can carry its author's name, old comments, tracked changes, hidden text, attached files and, for photos, the GPS position where they were taken. Built-in tools remove most of it: the Document Inspector in Word, Sanitize document in Acrobat Pro and the location switch on your phone. Then export a flattened copy and read it yourself.
Take Jane Example, an HR manager. She sends a contract that looks clean. The recipient opens it in Word and sees a comment in the margin: check her salary with legal. The file's properties name the colleague who wrote the first draft. None of this was on the printed page.
What hidden data can a document carry?
The UK data protection authority, the ICO, describes metadata as data about data: document properties such as author and title, and EXIF data in photos, which can include GPS coordinates and device details. Its guidance of 31 July 2025 warns that you may disclose metadata by accident. And metadata is only one layer.
- Document properties: author, title, the last person who saved, dates.
- Comments: margin notes that may mention people or decisions.
- Tracked changes: added or deleted text, kept as revision marks.
- Hidden text: formatted as hidden, or typed in white on a white page.
- Embedded objects: a chart or spreadsheet inserted with its data.
- PDF extras: attached files, hidden layers, scripts, stored form data.
- Photo data: EXIF details such as the device and the GPS position.
How do you remove hidden data from a Word document?
Handle tracked changes and comments first, then let the Document Inspector sweep the rest. These steps follow Microsoft's help for Word for Windows, as of September 2026.
- Work on a copy. Microsoft warns that removed data cannot always be restored, even with Undo.
- On the Review tab, choose Accept All Changes or Reject All Changes.
- On the same tab, open the Delete menu and choose Delete all Comments in Document.
- Go to File, Info, Check for Issues, Inspect Document, then select Inspect.
- Select Remove All next to each unwanted result, then inspect again.
- Find white text with Find and Replace, searching by font colour, as the ICO suggests.
The Inspector checks comments and revisions, document properties, headers and footers, hidden text, custom XML data and invisible content. Microsoft names its blind spots: it cannot detect white text on a white background, or objects covered by other objects. So the ICO adds a simple rule: check the document yourself, even after using a tool.
What can a PDF hide, and how do you clean it?
A PDF has its own metadata. Adobe lists the author's name, the title, the creation date, keywords and sometimes the software used. A PDF can also hold attached files, hidden layers, comments, scripts and stored form data. A black box on the page removes none of this: Adobe warns that comments, hidden layers and revision history can leak even when the page is blacked out.
In Acrobat Pro, open All tools, Redact a PDF, then Sanitize document. Adobe says this is available only in Acrobat Pro, Premium or Studio. Its metadata guide shows a lighter route: edit or delete the fields in Document Properties, then save. Deleting metadata cannot be undone.
How do photos and scans reveal where they were taken?
A phone photo of a paper document has metadata too. Apple explains that when Location Services is on for the Camera app, the coordinates are embedded into each photo, and the people you share it with may be able to read them. If Sam Example photographs a sick note at his kitchen table, the picture can point to his home.
On an iPhone, tap Share, then Options, and turn off Location before sending. For a photo already taken, Apple's steps are Adjust Location, then No Location. Then look at the picture itself: an address on an envelope in the background is visible data, and no metadata tool removes it.
Where does each hidden element live, and how do you remove it?
| Hidden element | Where it lives | How to remove it |
|---|---|---|
| Author, title, dates | Document properties | Word: Document Inspector. PDF: Document Properties |
| Comments | Word margin, PDF annotations | Delete all comments, or Sanitize document |
| Tracked changes | Word revision marks | Accept or reject all changes |
| Hidden or white text | Word text | Document Inspector, then Find and Replace by colour |
| Attachments, layers, form data | Sanitize document in Acrobat Pro | |
| GPS position | EXIF data of photos | Turn off Location when sharing |
| File name | The file, the email | Rename it before sending |
Does a flattened image-PDF remove all hidden data?
A flattened image-PDF is made of pictures of your pages. What was not drawn does not come along: the text layer, attachments, hidden layers, form data, comments not on screen. A plain Save as PDF from Word is different: the ICO says it can remove some metadata and hidden information, but is not a fully secure redaction method on its own. Its suggestion is a round trip: convert the PDF to a simple image format such as BMP, then back to PDF.
Flattening has limits. A picture keeps everything that was visible: comment balloons shown in the margin at export, headers, footers, signatures. The new file also gets properties of its own, such as a date and the software that made it. ONYRI Sanitize always exports this kind of flattened PDF or PNG, but it keeps your file name as the base of the new one. Rename it.
The biggest limit is judgement. Flattening does not decide what identifies someone. A job title, a small town and a date can point to one person without any name. Read the flattened copy page by page before it leaves.
What should you check before you send a document?
- Work on a copy; keep the original unchanged.
- Accept or reject all changes, then delete all comments.
- Run the Document Inspector in Word, or Sanitize document in Acrobat Pro.
- Remove the location from photos and phone scans.
- Export a flattened PDF, open it and read every page.
- Rename the file and check the email subject.
The tools catch what is hidden inside the file. You catch what is visible but should not be there.
Frequently asked questions
Does the No Markup view in Word remove tracked changes?
No. Microsoft says No Markup only hides changes for a while: they show again when the document is reopened. To remove them, accept or reject every change on the Review tab.
Is there a simple way to print a PDF without its metadata?
Adobe's metadata guide mentions one: print to PDF to save a flattened copy of the document without metadata. For a full clean-up, including attachments, hidden layers and form data, Adobe points to Sanitize document, which needs Acrobat Pro, Premium or Studio.
Is hidden data personal data?
Often, yes. An author's name, a comment about an employee or the GPS position of a home can all relate to a person. The ICO warns that markup may reveal personal information that it is not appropriate to disclose. Treat hidden data with the same care as the visible text.
Does a scanned document carry hidden data?
It can. A scan made with a phone camera is a photo, so it may carry EXIF data such as the location. A scanned PDF has document properties like any PDF. And whatever the scanner saw, such as a handwritten note in the margin, is now on the page.
Sources & references
- Remove hidden data and personal information by inspecting documents, presentations, or workbooksMicrosoft Support
- Accept or reject tracked changes in WordMicrosoft Support
- Delete comments (Word)Microsoft Support
- How to redact a PDF (Remove Hidden Information and Sanitize document)Adobe
- Remove metadata from a PDF in 4 stepsAdobe
- Remove sensitive information (Acrobat tutorial: redact and sanitize)Adobe Experience League
- Disclosing documents to the public securely: avoid an accidental breach when personal information is hidden in documents (published 31 July 2025)Information Commissioner's Office (ICO), UK
- Disclosing documents to the public securely: how do we avoid an accidental breach when redacting information? (published 31 July 2025)Information Commissioner's Office (ICO), UK
- Personal Safety User Guide: Manage location metadata in PhotosApple Support