Compress Excel file
Shrink a workbook by dropping regenerable parts and re-packing it tighter.
What is Compress Excel file
An .xlsx file is a zip archive, so it can be compressed the same way any zip can. This tool removes two parts Excel rebuilds on its own — the formula calculation cache and the file thumbnail — and repacks the archive at maximum compression. Data, formulas and images are not touched.
File
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
What is taken out
The formula calculation cache (xl/calcChain.xml), the file thumbnail, and then the archive is repacked with maximum DEFLATE compression. All three are regenerable: Excel rebuilds the cache when it opens the file.
Why some workbooks barely shrink
Because their size is images. JPEG and PNG data is already compressed, so re-zipping cannot help. The result note gives real before and after sizes so you can see whether the tool did anything at all.
When not to use it
When the file must stay byte-identical for a signature or an archive. Removing parts changes the bytes. Keep the original; this tool always writes a copy. Open the compressed copy before deleting anything. A file that fails to open is recoverable while the original still exists, and not after. Compare the two sizes in the note, and if the saving is under a few percent, keep the original: that difference is not worth a file Excel may have to repair.
How to use it
- 1.Choose the oversized .xlsx file.
- 2.Generate — the archive is rebuilt without the optional parts.
- 3.Compare the reported sizes before replacing your original.
How Compress Excel file works under the hood
An .xlsx file is not a table — it is a ZIP archive of XML parts. Everything you see as a grid is rebuilt from cell references on this page, in memory, without a round trip to a server.
- 1
Read the file as bytes
The file is read into an ArrayBuffer with the File API. This is a local read, not a request — nothing leaves the tab.
- 2
Unzip and parse the workbook
SheetJS inflates the archive, reads workbook.xml for sheet order, sharedStrings.xml for text, and each sheet's XML for cells and types.
- 3
Rebuild rows in memory
Cells are placed by their A1 reference, gaps become empty cells, and the sheet is materialised as a two-dimensional array.
- 4
Write the output locally
The result is serialised to CSV text or a new workbook and handed to the browser as a Blob download.
Processing pipeline
Why formulas arrive as values
A spreadsheet stores two things per formula cell: the formula text, and the value Excel last computed and cached. A browser parser reads the cached value. Making the formula itself run would mean reimplementing Excel's calculation engine — including volatile functions, circular-reference detection and locale-specific parsing. So the exported CSV contains what you last saw on screen, not a live formula.
What has no CSV equivalent
Merged cells, cell fills, fonts, conditional formatting, comments and pivot tables have no representation in a comma-separated file. A merged cell becomes its value in the top-left position and empty cells elsewhere. Dates are written as dates only when the cell is typed as a date; a date stored as text stays text. These are format limits, not bugs.
Where it gets slow
Parsing is linear in cell count, and the browser holds the whole workbook in memory. A 30 MB file with a million populated cells can take several seconds and a few hundred MB of RAM; the tab may feel frozen while SheetJS works. Splitting the file by sheet, or exporting only the range you need, is faster than retrying with a bigger limit.
Verify it yourself
You do not have to take this on faith. Run the tool once with DevTools open.
- 1.Open DevTools on this page and switch to the Network tab
- 2.Keep the filter on Fetch/XHR and run the tool
- 3.Confirm no request carries your file — you should see only page assets and fonts
Frequently asked questions
How much smaller will it get?
Depends on what is inside. Text-heavy workbooks typically drop 5–20%; a file that is mostly photos barely moves, because JPEGs are already compressed. The result note gives the real before/after size rather than a promise.
Will Excel complain that the file is damaged?
No — the calculation cache is optional and is rebuilt on open. If a file ever fails to open, keep the original: this tool writes a copy and never modifies your source.
Can it make a 40 MB file fit in an email?
Rarely. If the size is images, compress those instead — that is where the megabytes are, and re-zipping cannot help.
What this kind of conversion cannot keep
Spreadsheet conversion is lossy by nature: a workbook carries formulas, styles, merged cells and multiple sheets, while CSV carries rows of text. This tool keeps values and order, recalculates nothing, and drops presentation on purpose. That is why it can run without a server — and why a converted file will not look like the original.
More in Spreadsheets & Docs
On this page
- What is Compress Excel file
- What this tool actually does with your file
- How it actually behaves
- How to use it
- How it works inside
- Frequently asked questions
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →