How to Remove Metadata from Excel Files: 5 Methods for XLSX and XLS
What Is Metadata in an Excel File?
Metadata is data about the workbook, separate from the values you see in the cells. Excel metadata records who created the workbook, who edited it last, when it was saved and what else is stored inside it.
Excel metadata is useful for internal tracking. The risk is that the metadata travels with the file. When you email a workbook to a client or upload it to a portal, the Author name, the Company name and any hidden sheets go with it.
Every Excel format carries metadata. An XLSX workbook (Excel 2007 and later) stores it as XML parts inside the file, and an older XLS workbook stores the same properties in a binary format. The methods below work for both.
Why Remove Metadata from Excel Files Before Sharing
- Private names stay private. The Author, Last Modified By and Company fields can reveal who worked on the workbook.
- Hidden sheets stay hidden. A hidden worksheet can hold a full data table that the recipient can unhide in two clicks.
- Internal comments stay internal. Comments and notes often carry remarks that were never meant for a client.
- Audits and legal submissions need clean files. A workbook sent to an auditor or a court should carry only the data you chose to send.
- The file gets a little smaller. Removing custom XML data and old comments usually trims the file size slightly.
7 Types of Hidden Data in an XLSX or XLS File
An Excel workbook can hold more than document properties. The table lists each type of hidden data, where Excel keeps it and whether Document Inspector can clean it.
| Type of Hidden Data | Where It Lives | Privacy Risk | Can Document Inspector Clean It? |
|---|---|---|---|
| Author and Last Modified By names | Document properties | Reveals employee and personal names | Yes |
| Company, Manager, Title, Subject and Tags | Document properties | Reveals organization and project details | Yes |
| Comments and notes | Cells | May contain internal remarks | Yes |
| Hidden rows and columns | Worksheets | May hold confidential figures | Yes (it deletes the data) |
| Hidden worksheets | Workbook | May hold full data tables | It detects them and you remove them by hand |
| Headers and footers | Print settings | May hold names or file paths | Yes |
| Defined names, hyperlinks and external data connections | Workbook | May expose internal references and server paths | It detects them |
Tracked changes and custom XML data belong on the same list. Both usually survive a normal Save As, so the copy you send still carries them.
How to Check Metadata in an Excel File
Look at what the workbook holds before you delete anything. The check takes about a minute and it tells you which method you need.
- Document properties. Open File >> Info and read the Properties panel on the right. Check Author, Last Modified By, Company, Title and Tags.
- Comments and notes. Open the Review tab and click Show Comments to list every comment in the workbook.
- Hidden sheets, rows and columns. Right-click any sheet tab and choose Unhide. Then select the whole sheet (Ctrl+A) and look for gaps in the row numbers and column letters.
- Named ranges. Open Formulas >> Name Manager and read the list of defined names.
- Links and connections. Open Data >> Edit Links to see every external workbook the file points to.
5 Ways to Remove Metadata from Excel Files
Four of the five methods are free and built into Excel or Windows. The fifth method handles a folder of workbooks in one run. Clean a copy each time and keep the original, because some of these removals can’t be undone.
Method 1: Use Document Inspector (Windows)
Document Inspector is the built-in Excel feature for this job. Document Inspector scans one workbook and removes each type of hidden data you select.
- Open the workbook in Excel.
- Click File >> Info.
- Select Check for Issues >> Inspect Document.
- Tick the types of data you want to inspect.
- Click Inspect.
- Click Remove All next to each result you want gone.
- Save the workbook under a new name.
Limitations: Document Inspector works on one workbook at a time. It also deletes hidden rows and columns outright, so a formula that points to those cells may break.
Method 2: Remove Personal Information on Every Save
The Trust Center has a setting that strips the author and last-modified details each time you save that workbook.
- Click File >> Options >> Trust Center >> Trust Center Settings.
- Select Privacy Options.
- Tick Remove personal information from file properties on save.
- Click OK and save the workbook.
Note: The setting only affects personal properties. Comments, hidden sheets and links are not touched. The checkbox may also appear greyed out until you have run Document Inspector on that workbook once.
Method 3: Remove Properties Through File Explorer
Windows can remove file properties without opening Excel at all.
- Right-click the workbook in File Explorer and select Properties.
- Open the Details tab.
- Click Remove Properties and Personal Information.
- Choose Create a copy with all possible properties removed, or select specific properties to remove from the original file.
- Click OK.
Limitations: File Explorer is quick, but it only handles properties. Hidden sheets, comments and links inside the workbook stay where they are.
Method 4: Remove Metadata in Excel for Mac
Menus in Excel for Mac differ from Windows, and Document Inspector may not be available in your version.
- Open Excel >> Preferences >> Security.
- Tick Remove personal information from this file on save.
- Delete comments by hand, then unhide and review hidden sheets, rows and columns.
- Check Data >> Edit Links for external connections.
- Save the workbook.
Method 5: Remove Metadata from Multiple Excel Files in One Go
Opening each workbook in Document Inspector is not practical when you have hundreds of them. You have two options for a batch.
Option A: A Python Script
This Python example clears the main author-related properties in every .xlsx file in a folder. The script needs the openpyxl library and it doesn’t read old .xls files.
from pathlib import Path
from openpyxl import load_workbook
src, dst = Path("input"), Path("clean")
dst.mkdir(exist_ok=True)
for f in src.glob("*.xlsx"):
wb = load_workbook(f)
p = wb.properties
p.creator = ""
p.lastModifiedBy = ""
p.title = ""
p.subject = ""
p.keywords = ""
p.description = ""
p.category = ""
wb.save(dst / f.name)
Limitations: The script clears only the properties you list. Comments, hidden sheets and custom XML data need extra code. Test the script on copies first, because openpyxl may drop some workbook features (charts or macros, for example) when it saves.
Option B: A Bulk Metadata Eraser
4n6 Metadata Eraser clears metadata from a whole folder of Excel workbooks in one run, so you don’t inspect them one by one. The eraser works offline on a Windows 11, 10 or 8 computer and it handles XLSX and XLS workbooks. Your cell data stays as it is.
Steps to Clear Metadata from Excel Workbooks in Bulk
- Download, install and run the eraser on your Windows computer, then click the Open menu.
- Choose Excel Files from the drop-down list.
- Select XLSX, then click Choose Files or Choose Folders to add your workbooks.
- The workbooks load in the left panel. Click a workbook to preview its data before you clean it.
- Click Actions and choose Clear Metadata.
- Select the folder for the clean copies and click Save.
The eraser shows a message when the job is finished. Open one clean copy and run the checks further down this guide before you send the batch.
Limitations: The eraser runs on Windows only. The free demo clears metadata from one file at a time, so a full folder needs a licence.
What Document Inspector Removes and What It Leaves
Document Inspector removes:
- Author names and other document properties
- Comments and annotations
- Custom XML data, headers and footers
- Hidden rows and columns (it deletes them)
Document Inspector does not fully handle:
- Hidden worksheets: Document Inspector may find them, but you unhide and delete them by hand.
- External links: you break them under Data >> Edit Links.
- Visible cells: a name or a file path typed into a cell is content, so no metadata method removes it.
Document Inspector vs File Explorer vs Script vs Bulk Eraser
| Document Inspector | File Explorer | Script | Bulk Eraser | |
|---|---|---|---|---|
| Good for | One workbook | Quick property cleanup | Technical users and repeat jobs | Many workbooks |
| Cost | Free | Free | Free | Paid (free demo, one file at a time) |
| Bulk support | No | Limited | Yes | Yes |
| Removes sheet-level content | Partly | No | Only what you code | Check the result on one copy first |
| Needs Excel installed | Yes | No | No | No |
| Learning curve | Low | Low | Medium | Low |
4 Checks to Confirm the Metadata Is Gone
- Properties check. Open the clean workbook and go to File >> Info. The Author, Last Modified By and Company fields on the right should be empty.
- Windows check. Right-click the workbook, open Properties >> Details and scroll through the list.
- Second inspection. Run Document Inspector on the clean workbook. Document Inspector should report nothing in the categories you cleaned.
- Hidden content check. Right-click a sheet tab and look for a live Unhide option. Then select the whole sheet and check for hidden rows and columns.
6 Good Habits Before You Share an Excel File
- Clean a copy and keep the original.
- Review comments and tracked changes before you send the workbook.
- Break external links you don’t want the recipient to see.
- Check sheet names and formulas for internal names or file paths.
- Turn on Remove personal information from file properties on save for the workbooks you share most often.
- Share only the clean copy, and send it as a new attachment so no earlier version rides along.
Frequently Asked Questions
How do I remove metadata from Excel files without opening each one?
Use the File Explorer method for properties, a Python script for a folder of .xlsx files or a bulk metadata eraser. Document Inspector needs each workbook open, so it suits one file at a time.
Does an XLSX file have hidden metadata?
Yes. An XLSX file can include document properties, comments, hidden worksheets, defined names and custom XML data. Open File >> Info to see the properties.
Does Excel save metadata automatically?
Yes. Excel records the author, the last editor, the dates and other properties every time you create or save a workbook.
How do I remove the author name from an Excel file?
Go to File >> Info, right-click the author name under Related People and choose Remove Person. Document Inspector and the File Explorer method remove the author name too.
Can hidden worksheets reveal sensitive data?
Yes. A hidden worksheet keeps all of its data, and anyone can bring it back with Unhide. Delete the hidden worksheet if the recipient should not see it.
Does saving Excel as PDF or CSV remove metadata?
CSV drops most metadata because it stores only cell values. A PDF can still keep document properties, the author among them.
Is Document Inspector available on Mac?
It varies by version, so check Microsoft’s current documentation for yours. Mac users can tick the Security preference that removes personal information and then clean hidden content by hand.
Can I remove metadata without Excel installed?
Yes. The File Explorer method on Windows, a script and a third-party eraser all work without Excel.
Is it safe to use a third-party metadata remover?
Use one that processes files on your own computer, as 4n6 Metadata Eraser does. Avoid uploading sensitive workbooks to unknown web services.
Which Method to Use
One workbook: use Document Inspector. It is free and it covers the most types of hidden data.
Properties only, or no Excel on the computer: use File Explorer.
A folder of workbooks: use the Python script if you are comfortable with code, or the bulk eraser if you are not. Either way, run the four checks on one clean copy before you send the rest.





