Converter tool

Excel Hidden Data Inspector

List the very hidden sheets, hidden rows and columns, names, external links, comment authors and properties inside an .xlsx, then download a copy with the parts you choose cleaned.

Cleaning options

External links, defined names and data connections are listed but never removed: deleting a link or a name can turn the formulas that use it into #REF! errors. Only the XML parts an option touches are rewritten. The workbook is opened and rewritten by this browser tab.

Preview

Output Preview

Pick a workbook, or try the sample, to list what it hides: sheets, rows, columns, names, links, comments and properties.

Excel Hidden Data Inspector

Operator: Abdulla Al Fahad. How tools are built and checked

A workbook that looks tidy on screen can carry a lot more than its visible cells. A sheet of cost prices hidden behind the quote, a row of internal notes collapsed to nothing, a comment thread arguing about the discount, the name of the person who built the file and the company on their licence, a link to a spreadsheet on a server called finance-02: all of it travels with the file when you email it. Excel even has a level of hiding, very hidden, that its own Unhide dialog does not show.

This inspector opens the .xlsx and lists each of those things in one place: hidden and very hidden sheets, hidden rows and columns on each sheet, defined names, external links, notes and threaded comments with their authors, document and custom properties, and data connections. You can then tick what to fix and download a copy named <name>-clean.xlsx. The table at the top shows each count before and after, taken from a fresh scan of the copy you downloaded.

Key features

  • Hidden and very hidden sheets listed together with every visible sheet, so nothing is missed
  • Hidden rows and columns per sheet as ranges such as 5, 9-12 and C:E, including rows hidden at zero height and sheets that hide every unused row
  • Defined names with scope and target, flagged when hidden, broken (#REF!) or pointing at another workbook
  • External links with the path or address they point at and the sheet names cached from the other file
  • Notes and threaded comments with cell, author and text, plus a list of commenters that includes the user ID Excel stored for each one
  • Document properties, custom properties and data connection strings shown in full before anything is removed
  • Comment removal offered only when the comment parts, their relationships and the note drawing can all be removed cleanly

Where hidden content lives and how it is cleared

Input is one .xlsx of up to 25 MB that contains xl/workbook.xml. Older .xls files and password-protected workbooks share a non-ZIP header and are refused, as are .xlsb binary workbooks. Macro-enabled workbooks (.xlsm) and templates (.xltx) are refused too, because a cleaned copy saved under a .xlsx name would not open in Excel. A workbook whose parts unpack to more than 400 MB is not read.

The small parts are read with the browser's DOMParser: xl/workbook.xml for sheet states and defined names, the relationship files that tie parts together, docProps/core.xml, app.xml and custom.xml for properties, the comment and threaded comment parts with xl/persons/person.xml for commenter names, xl/connections.xml, and every part under xl/externalLinks/ with the target stored in its relationships. Worksheet parts can be very large, so they are scanned for row, column and sheet format tags directly instead of being parsed whole.

The cleaned copy is the original ZIP with only the touched parts replaced or removed. Unhiding a sheet removes one state attribute in workbook.xml; unhiding rows removes the hidden attribute from those rows, and zero heights or zero widths that hide rows and columns are cleared so the default size applies. Every other part, image and style is copied across with its content unchanged.

How it works

The page unzips the workbook in memory with JSZip and follows its relationships the way Excel does: from the package to the workbook, from the workbook to each sheet and link, and from each sheet to its comments and drawings. That matters because part names are not fixed; a sheet called Margins may live in sheet7.xml, and a note box lives in a VML drawing that only the sheet's relationship file points to.

Removing document properties deletes the author, last-modified-by, title, subject, keyword, description, category and status elements from core.xml, and Company, Manager and Hyperlink base from app.xml. The created and modified dates and the name of the program that saved the file are kept. Removing custom properties deletes docProps/custom.xml together with its entry in the package relationships and in [Content_Types].xml, because Excel reports a damaged file when a listed part is missing.

Comments come in two kinds. Notes (the older comments) live in a commentsN.xml part and are drawn by a VML drawing that the sheet references with a legacyDrawing element. Threaded comments live in their own part, name their authors through xl/persons/person.xml, and are mirrored by Excel as a plain note whose author is written as tc= followed by an ID. The inspector lists each threaded comment once and skips the mirror. Removal deletes the parts, their relationships, their content-type entries, the legacyDrawing element and the persons list, but only when the note drawing holds nothing except note boxes. If it also holds a form control such as a button or checkbox, removing it would break that control, so the comments are listed with the reason and the option stays off.

After cleaning, the new parts go through the same scan that produced the Before column, and that second scan fills the After column. A count that did not drop shows that the option did not cover it, rather than the page assuming it worked.

When this helps

  • Sending a quote or price list to a customer when internal cost and margin figures were hidden rather than deleted
  • Releasing a spreadsheet under a records request and checking it for reviewers' comments and author names
  • Taking over a workbook from a departed colleague and finding the very hidden sheets and links it depends on
  • Publishing a dataset as .xlsx and making sure no server paths or connection strings go with it
  • Checking a workbook received from outside before trusting what its visible sheets show

Opening a file

  1. Pick the workbook you are about to send. To see the tool on a ready-made file first, the Try a sample workbook button opens a short quote with a hidden margin sheet, a very hidden cost sheet and a few other leftovers.
  2. Read the counts table, then open each section below it. Sections with findings open on their own.
  3. Tick the cleaning options you want. Document properties starts ticked; the others start unticked because they change what the recipient sees.
  4. Press Clean and download. The copy is saved as <name>-clean.xlsx and the After column fills in.
  5. Open the clean copy in Excel. If sheets or rows were unhidden, delete whatever should not be shared, then save.

Example

sample-quote.xlsx, as inspected

Sheets: Quote (visible), Margins (hidden), Cost basis (very hidden)
Quote: row 5 hidden ("Internal: floor price 40"), column C hidden (unit cost)
Names: MarginRate (hidden) -> Margins!$B$2, OldDiscount -> #REF!
Note on Quote!B3 by Kofi Mensah: supplier raised cost in March
Properties: Author Kofi Mensah, Last modified by Ana Ruiz,
  Title Quote 2291 draft, Company Brightwater Furnishings
Custom property: ClientCode = BW-0417

sample-quote-clean.xlsx, every option ticked (before -> after)

Hidden sheets                     1 -> 0
Very hidden sheets                1 -> 0
Hidden rows                       1 -> 0
Hidden columns                    1 -> 0
Notes (comments)                  1 -> 0
Document properties with a value  4 -> 0
Custom properties                 1 -> 0
Hidden defined names              1 -> 1   (names are listed, not changed)
Names pointing at #REF!           1 -> 1

The cost basis and margin sheets are now visible tabs: delete them in Excel before sending.

Tips for best results

  • Unhiding is not deleting. The option makes hidden sheets, rows and columns visible so that you, or anyone else, can see them. To share a file without them, unhide here, then delete them in Excel and save.
  • Read the user IDs in the commenter list. For threaded comments Excel often stores an email address or directory login, not just a display name.
  • Look at the Points at column for external links. A path such as C:\Users\name\Documents shows a login name, and a UNC path shows a server name, even if no formula uses the link any more.
  • _xlnm._FilterDatabase is a hidden name Excel creates for every AutoFilter. It is harmless and usually not worth worrying about.
  • Saving the clean copy in Excel puts your account name back into the Last modified by field. If you must edit after cleaning, run the copy through the inspector once more before it goes out.

Limits

External links are listed but never removed. Formulas that read from a linked workbook would turn into #REF! errors if the link part disappeared. If the links have to go, use Break Link in Excel under Data > Edit Links (called Workbook Links in recent versions), which swaps each linked formula for its value.

A link part keeps a cached copy of the cells it read from the other workbook. That cached data stays in the clean copy along with the link, so breaking the link in Excel is also the way to get rid of it.

A pivot table keeps its own copy of its source data in the pivot cache, even after the source sheet is deleted. The inspector does not list pivot caches.

Text made invisible with a white font or a ;;; number format is ordinary cell content, not hidden data in the file's structure, and is not detected. Neither are values left far outside the print area.

Defined names and data connections are listed only. A connection string can contain a server name, a user ID and the full query text; edit or remove the connection in Excel under Data > Queries & Connections.

Removing custom properties also removes any sensitivity label your organisation's software stored there. If labels are required where you work, leave that option off.

Common errors and how to fix them

"This is a macro-enabled workbook (.xlsm)."
A cleaned copy of a macro workbook cannot carry the .xlsx name, and the inspector does not read VBA modules. If the macros are not needed by the recipient, save an .xlsx copy in Excel (File > Save As, Excel Workbook), which drops them, and inspect that copy.
The comments option is greyed out with a reason about form controls.
The drawing that shows the note boxes also holds a button, checkbox or other control. Delete the notes in Excel (right-click each cell and choose Delete Note or Delete Comment), or move the controls to another sheet, save, and inspect the file again.
The inspector will not open the file and names two possible causes: the old .xls format or an open password.
A workbook encrypted with a password to open keeps all of its XML parts inside an encrypted package, so not one sheet state, comment or property can be listed until that password is cleared in Excel. A pre-2007 .xls has no XML parts at all; save it as .xlsx first. Either way, inspect the new copy, which is also the file you would then send.
The After column still shows hidden rows.
The Unhide hidden rows and columns option was off for that run. Tick it and press Clean and download again; each run starts from the workbook you picked, not from the previous clean copy.

Best practices

  • Delete confidential sheets and rows instead of hiding them; hiding is a display setting, not protection.
  • Inspect the final file you will send, not an earlier draft, because each save can add properties and comments.
  • Keep the original workbook and send only the clean copy, so internal notes are still available to your team.
  • Break external links in Excel before sharing a workbook outside the organisation, after checking which formulas depend on them.

Hidden, very hidden and how Excel shows them

A hidden sheet appears in Excel's Unhide dialog (right-click any sheet tab, then Unhide), so anyone curious can bring it back. A very hidden sheet does not appear there; it can only be made visible from the Visual Basic editor's Properties window or by editing the file's XML. That makes very hidden sheets a common place for lookup tables, cost data and leftovers that the current owner of a workbook may not know exist.

Rows and columns can be hidden in several ways that look the same on screen: the hidden flag, a height or width of zero, a collapsed outline group, an AutoFilter, or a sheet setting that hides every row without its own entry, which is how Excel saves a selection of all rows below the data being hidden. The inspector counts all of them, and the unhide option clears each one, so filtered rows reappear while the filter buttons stay in place.

What happens to your file

Everything happens in this browser tab: JSZip unpacks the file, DOMParser reads its XML, and the clean copy is assembled in the same tab and passed to your browser as a download. Between runs the page keeps your original bytes and the XML parts it read in memory, so each press of Clean and download starts again from the file you picked rather than from an earlier clean copy. Picking another workbook releases them.

Frequently asked questions

Does unhiding delete anything?

No. Sheets, rows and columns keep all their contents and simply become visible. Delete them in Excel afterwards if they should not be shared.

Why are external links not removed?

Formulas refer to links by number, such as [1]. Removing the link part would leave those formulas pointing at nothing, and Excel would show #REF! errors or repair the file. Breaking the link in Excel replaces each such formula with its last value, which is the safe way to do it.

Are the created and modified dates removed?

No. They are shown in the properties list and kept, along with the name of the program that saved the file. The properties option removes author, last modified by, title, subject, tags (keywords), comments (description), category, status, company, manager and hyperlink base.

Will Excel open the clean copy without a repair message?

The edits are made to keep every reference valid: each removed part also loses its relationship and content-type entries, and comments are only removed when their drawing can go as well. Open the copy once in Excel before sending it to confirm it opens the way you expect.