How to remove metadata from a DOCX file
A .docx is a zip of XML files, and a few of them describe the document rather than hold its text. Send the file to someone and they can read who wrote it, who edited it last, which company their copy of Office is registered to, and everyone who commented. None of it shows on the page.
What a DOCX records about you
- Author and last modified by, taken from the name set up in Office.
- Company and manager, often filled in by an organisation's Office setup.
- Title, subject, keywords and comments in the file properties, which may still describe an older version.
- Custom properties added by document management systems, such as a client name, matter number or file path.
- Names on comments and tracked changes, plus a list of everyone who edited.
- A thumbnail of the first page, if the file was saved with one.
- Camera and location data inside photos placed in the document.
To see what your file holds, open File, Info in Word and look at the Properties panel. "Show All Properties" and Advanced Properties list the rest.
In Word on Windows: Inspect Document
- Save a copy first. The inspector's removals cannot be undone once the file is saved.
- Go to File, Info, Check for Issues, Inspect Document.
- Leave "Document Properties and Personal Information" ticked, along with "Comments, Revisions and Versions" if those should go too, and click Inspect.
- Click Remove All next to each result you want cleared, then save.
Inspect Document deletes comments and tracked changes outright instead of keeping them under a neutral name, so reviewers lose the discussion. It also leaves the text itself alone: a name typed in the body or a header is still there.
In Word for Mac
Word for Mac has no Inspect Document. On the Review tab, choose Protect Document and tick "Remove personal information from this file on save", then save. That clears the author names from the properties, comments and tracked changes. Check File, Properties afterwards for a company, title or custom fields left behind.
Online, without Word
The Word redaction tool clears the metadata on every download, and you can redact names in the text at the same time.
- Open the .docx in your browser.
- Allow the scan if the text also needs redacting, or decline it to clear only the metadata.
- Download. The copy has the author, last modified by, title, subject, keywords, category, company and manager emptied, custom properties deleted and the first-page thumbnail removed.
Comments and tracked changes stay in the file, with every author shown as "Redacted", so the review history still reads. Photos in the document are saved again without their camera and location data (EMF, WMF and TIFF pictures are left as they are), and embedded files are dropped.
Check the result
Open the cleaned copy and look at File, Info, Properties again, then hover over a comment to see its author. For photos taken on a phone, the photo metadata guide covers the same data in picture files.