Skip to main content

20% off your first year with code See plans

Guide · How-to guide · Word

How to anonymise a Word document without leaving data behind

Anonimatum Team

In short

Anonymising a Word file means removing personal data from the visible text and from what you cannot see: tracked changes, comments, headers, properties, hidden text and embedded objects. To keep it editable, replace the data rather than cover it.

A Word document looks like a page of text, but under the hood it is a package of parts: the body, headers and footers, footnotes, comments, revision history, document properties and sometimes embedded spreadsheets or images. When someone anonymises a Word file by deleting the names they can see on screen, the rest of the package usually still tells you who is who.

This guide explains where personal data hides in a .docx, .doc or .odt file, what Microsoft Word's Inspect Document feature covers, where it falls short, and how to end up with an anonymised Word document that is still editable. The examples are fictitious: an HR report mentioning a National Insurance number QQ 12 34 56 C and, for a US colleague, the Social Security number 123-45-6789.

Step by step

  1. Work on a copy

    Save a copy of the original Word file in a restricted folder. Everything from here on is done on the copy.

  2. Reveal what is hidden

    Turn on All Markup, show comments, click Show/Hide (¶) and open headers, footers and embedded objects. Delete what is not needed, such as embedded sheets or hidden paragraphs.

  3. Decide what goes and what stays

    List the data to remove (names, NI numbers or SSNs, addresses, phone numbers, signatures) and what must stay visible (organisation, job titles, relevant dates).

  4. Detect the data

    In Anonimatum, upload the .docx or .odt file, pick a template or enable the GDPR option, addresses and any custom identifier patterns, then run the preview.

  5. Review every match

    In the preview, remove matches that do not apply, mark anything missed by hand and whitelist terms that must stay visible.

  6. Apply and download

    Anonymise and download the result as editable Word or as PDF, depending on where the document is going.

  7. Verify the final file

    Search the output for data from the original, check properties and revisions, and run Inspect Document as a last check before sending it.

Where personal data hides in a Word file

Before changing anything, list what needs checking. These are the elements that most often leak information when documents are disclosed under a subject access request, released under FOI or exchanged in litigation:

Parts of a Word document that can contain personal data
ElementWhat it can revealHow to check
Tracked changesDeleted text still stored in the file and the name of each reviewerReview > All Markup; accept or reject all
CommentsInternal opinions and the author of each commentReview > Show Comments
Headers and footersSignatory name, case reference, NI number in the footerDouble-click the top and bottom of every section
Document propertiesAuthor, last modified by, company, templateFile > Info > Properties
Hidden textParagraphs formatted as hidden or white text on a white backgroundShow/Hide (¶) and change the colour of all text
Embedded objectsWhole Excel sheets, charts with their data table, images with EXIF data or cropped areasOpen each object; check cropped pictures
Footnotes and text boxesQuotes with names and references to other filesCheck each section and the Navigation pane

Two classic traps: highlighting a name in black does not remove it (the text is still there and can be copied), and a picture cropped in Word keeps the cropped part unless you explicitly delete cropped areas when compressing pictures. The same goes for information you never see on the page: a file's metadata travels with it whether or not anyone opens the properties.

The manual method: Inspect Document in Word

Word's Document Inspector (File > Info > Check for Issues > Inspect Document) finds comments, revisions, versions, document properties and personal information, headers, footers and watermarks, hidden text, custom XML data and invisible content, and lets you remove each category. It is worth running every time as a final pass, but it has clear limits:

  • It does not anonymise the body text. Names, NI numbers, addresses and phone numbers in the visible content stay put; you have to find and replace them yourself.
  • It removes whole blocks, not data. Remove headers and footers and you also lose the logo or page numbering you wanted to keep.
  • Find and Replace misses variants. “Sarah Collins”, “Ms Collins”, “S. Collins” and “the claimant” are four different searches, and an NI number may be written with or without spaces.
  • It does not look inside embedded objects. An Excel sheet pasted as an object keeps every row, including those not shown on the page.
  • Some removals cannot be undone, so always work on a copy.

For a short document with no history, the manual method may be enough. For long reports, batches of case files or documents that have passed through many hands, the risk of missing a mention grows with every page.

Cover or replace? Anonymisation versus pseudonymisation

If the document is going to be published or leave your organisation for good, you need anonymisation: removing the data irreversibly. If you still need to know that “Person 1” in chapter three is the same person as in the appendix, for internal analysis or for the solicitor handling the case, pseudonymisation with consistent substitutes is the better fit. Under the UK GDPR and the EU GDPR alike, only truly anonymous information falls outside data protection law; pseudonymised data is still personal data and must be protected as such.

In a Word file that must stay editable, black boxes make little sense: the recipient can simply move the text. The consistent approach is to replace each item with a placeholder or a fictitious value and then confirm that no trace remains anywhere in the file.

How to do it in Anonimatum and keep the file editable

Anonimatum accepts .doc, .docx and .odt files. Since version 1.9.0, .docx and .odt files can be downloaded as editable Word: the document keeps its formatting and the data is replaced in headers, footers, notes and tables too; comments are removed, tracked changes are accepted and metadata is stripped. If any detected data remained in the file after processing, the Word file is not delivered and the anonymised PDF is offered instead.

  • Detection combines Anonimatum's own AI, run on servers in the EU, with patterns for email addresses, phone numbers or IBANs; for identifiers such as NI numbers or SSNs you can add a custom pattern with a regular expression.
  • Before anything is applied, the preview highlights every match so you can drop false positives or mark anything that was missed.
  • The whitelist keeps terms that must stay visible, such as your organisation's name or a public office.
  • The Template selector applies the usual options for a document type in one go, and you can save your own for the whole group.

Final checks before sharing

Before sending the anonymised Word file

  • I searched the output (Ctrl+F) for the surnames, NI numbers and phone numbers from the original: zero hits.
  • Review > All Markup shows no pending revisions or comments.
  • File > Info shows no author or company from the original.
  • Headers, footers and notes in every section have been checked.
  • Pictures keep no cropped areas and show no number plates or ID documents.
  • If the file is for publication, I have considered releasing a PDF instead of Word.

If the final version will circulate as a PDF, our guide to anonymising a PDF covers the checks that are specific to that format.

Frequently asked questions

Is Word's Inspect Document enough on its own?

No. The inspector removes comments, revisions, properties, headers or hidden text in blocks, but it does not find or replace personal data in the body of the document. It is a good final pass, not the whole method.

Does highlighting a name in black anonymise it?

No. The text is still in the file and can be copied or recoloured. It has to be deleted or replaced with a placeholder or a fictitious value.

Is the Word file anonymised by Anonimatum still editable?

Yes, for .docx and .odt: it downloads with its formatting, with data replaced in headers, footers, notes and tables too, no comments, tracked changes accepted and metadata removed. If any data remained, the PDF is offered instead.

Should I release Word or PDF?

If the recipient needs to keep working on the text, editable Word. If the document is published or disclosed as it is, a PDF reduces the risk of anyone altering the content.

Anonymise Word files in minutes

See the plans and start anonymising .docx and .odt files that stay editable, with a preview before anything is applied and AI that runs in the EU.

Sources and legislation

  1. Microsoft: Remove hidden data and personal information by inspecting documents
  2. ICO: Anonymisation guidance
  3. UK GDPR (legislation.gov.uk)
  4. Regulation (EU) 2016/679 (GDPR), recital 26 and Article 4(5)