Remove hidden data and personal information by inspecting documents, presentations, or workbooks

Excel for Microsoft 365 Word for Microsoft 365 PowerPoint for Microsoft 365 Visio Plan 2 Excel 2021 Word 2021 PowerPoint 2021 Visio Professional 2021 Visio Standard 2021 Excel 2019 Word 2019 PowerPoint 2019 Visio Professional 2019 Visio Standard 2019 Excel 2016 Word 2016 PowerPoint 2016 Visio Professional 2016 Visio Standard 2016 Office 2016 More. Less

When you share copies of Microsoft 365 document files with clients or colleagues, it's a good idea to review the document for hidden data or personal information and remove it.

Note: Unless you send your document to Microsoft, Microsoft does not have access to any information from your document.

Document Inspector helps you find and remove hidden data and personal information stored in documents that you plan to share. Here's how to use it.

Tip: If you're just looking to print without comments, on the File tab select Print, choose Print All Pages, and clear Print Markup.

What the Document Inspector finds and removes in Word documents

The Document Inspector displays several different Inspectors that help you to find and remove hidden data and personal information in Word documents before sharing.

Important: We highly recommend that you use the Document Inspector on a copy of your original document, because it is not always possible to restore the data that the Document Inspector removes. For more details, see Use the Document Inspector.

To quickly find and remove data and information::

  1. In Document Inspector, select or clear the options (as described below) to remove or save.
  2. Select Inspect.
  3. Review the inspection results, and select Remove All on any items to delete.
    For caveats and info on removing information, see Use the Document Inspector.
  4. Select Reinspect or Close.

Note: There is some information that the Document Inspector cannot remove, explained in the tables below.

Inspector name

Finds and removes

Comments, Revisions, Versions, and Annotations

Document Properties and Personal Information

Headers, Footers, and Watermarks

Hidden Text

Text that is formatted as hidden (a font effect that is available in the Font dialog box)

Note: This Inspector cannot detect text that was hidden by other methods (for example, white text on a white background).

Custom XML Data

Invisible Content

Objects that are not visible, because they have been formatted as invisible

Note: This Inspector cannot detect objects that are covered by other objects.

Note: If your organization customized the Document Inspector by adding Inspector modules, you might be able to check your documents for additional types of information.

Types of hidden data and personal information

Word documents can contain the following types of hidden data and personal information:

Find and remove hidden data and personal information with the Document Inspector

Important: We highly recommend that you use the Document Inspector on a copy of your original document, because it is not always possible to restore the data that the Document Inspector removes.

  1. Open the Word document that you want to inspect for hidden data and personal information.
  2. On the File tab, select Save As, and then type a name in the File name box to save a copy of your original document.
  3. In the copy of your original document, on the File tab, select Info.
  4. Select Check for Issues, and then choose Inspect Document.
  5. In the Document Inspector dialog box, select the check boxes to choose the types of hidden content that you want to be inspected.
  6. Select Inspect.
  7. Review the results of the inspection in the Document Inspector dialog box.
  8. Select Remove All next to the inspection results for the types of hidden content that you want to remove from your document.


The Document Inspector can help you to find and remove hidden data and personal information stored in Excel documents before sharing.

Note: Although you can remove hidden data and personal information from workbooks you have sent to other people, if the Excel workbook has been saved as a Shared Workbook, you can't remove comments, annotations, document properties, and personal information. To remove this information from a shared workbook, first copy and turn off the Shared Workbook feature.

What the Document Inspector finds and removes in Excel documents

This table lists the types of hidden data and personal information the Document Inspector can find and remove from your workbooks.

Important: We highly recommend that you use the Document Inspector on a copy of your original workbook, because it is not always possible to restore the data that the Document Inspector removes. For more details, see Use the Document Inspector.

To quickly find and remove data and information:

  1. In Document Inspector, select or clear the options (as described below) to remove or save.
  2. Select Inspect.
  3. Review the inspection results, and select Remove All on any items to delete.
    For caveats and info on removing information, see Use the Document Inspector.
  4. Select Reinspect or Close.

Not all information can be removed, for more info see Information the Document Inspector finds but can't remove.

Note: If your organization has added custom inspector modules to the Document Inspector, you might see additional types of information.

For these items:

The Document Inspector finds and removes:

Comments and Annotations

Document Properties and Personal Information

Headers and Footers

Hidden Rows and Columns

Hidden Worksheets

Note: If the hidden worksheets in your workbook contain data, you might change the results of the calculations or formulas in your workbook by removing them. If you don't know what information the hidden worksheets contain, close the Document Inspector, unhide the hidden worksheets, and then review their contents.

Custom XML Data

Custom XML data that might be stored within a workbook

Invisible Content

Objects that aren't visible because they are formatted as invisible

Note: The Document Inspector doesn't detect objects that are covered by other objects.

Find and remove hidden data and personal information

Document Inspector helps you find and remove hidden data and personal information in Excel workbooks.

Important: We highly recommend that you use the Document Inspector on a copy of your original workbook, because it is not always possible to restore the data that the Document Inspector removes.

  1. Open the workbook you want to inspect for hidden data and personal information.
  2. On the File tab, select Save As, and type a different name in the File name box to save a copy of your original workbook.
  3. In the copy of your original workbook, on the File tab, select Info.
  4. Select Check for Issues, and then choose Inspect Document.
  5. In the Document Inspector box, check the boxes of the types of hidden content you want to be inspected. For more information about the individual inspectors, see What the Document Inspector finds and removes in Excel documents.
  6. Select Inspect.
  7. Review the results of the inspection in the Document Inspector box.
  8. Select Remove All next to the inspection results for the types of hidden content you want to remove from your document.

Types of hidden data and personal information in Excel

These are some of the items that can be the source of hidden data and personal information in your Excel workbooks:

Information the Document Inspector finds but can't remove

The Document Inspector detects the following items that might have data that isn't visible in your workbook. It can't remove these items for you because it might cause the workbook to not work properly. You can examine each item that's found and determine if you want to remove it manually or replace it with an item that doesn't have hidden data, such as a static picture.

For these items:

The Document Inspector finds:

External links

Links to data in other workbooks. The names of the worksheets that contain the data are saved with your workbook but it isn't visible there. External links include external references that are used in:

Embedded files or objects

Embedded files (such as an Microsoft 365 or Text document) or embedded objects (such as a chart or an equation) that may have data that isn't visible in your workbook. Here are examples of some object types:

Macros of VBA code

Macro or VBA items that may have hidden data in your workbook. This includes:

BI features with cached data

BI features that may have cached data that's saved with the workbook, possibly containing data that's not visible. The Document Inspector checks for following items that may have PivotCache, SlicerCache, or Cube formula cache:

Excel Surveys

Excel Survey questions that were created in Excel for the web and saved with the workbook without being visible there.

Scenario Manager scenarios

Scenarios that are defined with Scenario Manager and may cause cached or hidden data to be saved with the workbook.

Filters that can be the cause of cached or hidden data in your workbook. The Document Inspector checks for AutoFilters and table filters that are applied to your data.

Hidden names

Hidden names that might store hidden data in the workbook.

You can find and remove hidden information in your PowerPoint presentations by using the Document Inspector.

Tip: If you're just looking to print without comments, on the File tab select Print, choose Print All Pages, and clear Print Markup.

Information the Document Inspector finds and removes

This table lists the types of hidden data and personal information the Document Inspector can find and remove from your PowerPoint presentations.

Important: We highly recommend that you use the Document Inspector on a copy of your original presentation, because it is not always possible to restore the data that the Document Inspector removes. For more details, see Use the Document Inspector.

To quickly find and remove data and information:

  1. In Document Inspector, select or clear the options (as described below) to remove or save.
  2. Select Inspect.
  3. Review the inspection results, and select Remove All on any items to delete.
    For caveats and info on removing information, see Use the Document Inspector.
  4. Select Reinspect or Close.

Not all hidden data and information can be removed with Document Inspector. For more info, see Information the Document Inspector finds but can't remove.

If your organization customized the Document Inspector by adding Inspector modules, you might be able to check your presentations for additional types of information.

Inspector name

Finds and removes

Comments and Annotations

Document Properties and Personal Information

Revision Tracking Data

Data about who has edited the file and when it was edited.

This feature is only available to Microsoft 365 subscribers who have joined the Office Insider program. If you are a Microsoft 365 subscriber, make sure you have the latest version of Office.

Invisible On-Slide Content

Objects that are not visible because they are formatted as invisible

This Inspector does not detect objects that are covered by other objects.

Off-Slide Content