Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Excel File Repair (Recover Data from a Corrupt XLSX or XLS)

Rebuild a damaged workbook and get its sheets, values and formulas back, on your device.

Data Recovery No upload Works offline Free preview, no sign-upIncluded in your pass Ultimate tool Ultimate pass: ₹1,199 for 30 days

Free preview.

  • Free preview: the repair report for the whole workbook, and the first rows of each recovered sheet (up to 10 rows and 10 columns).
  • Locked until you unlock it: download.
  • Unlock: Ultimate pass, ₹1,199 for 30 days, a one-time payment that never renews.

Ways to unlock shows how to get the full result.

See passes (opens in a new tab)

Printing this result is locked in the free preview.

Before you start

  • Try Excel’s own repair first. File › Open, select the workbook, then Open and Repair on the Open button’s menu (Microsoft’s steps). An earlier version in your cloud storage’s version history or a backup is better still.
  • Work on a copy. The workbook is only read, never changed; keep the original until the repaired one has been opened.
  • Password-protected workbooks are encrypted and cannot be repaired without their password; this page never tries to guess one.
  • Nothing is uploaded. The workbook is repaired on your device. Use this page on files you own or may examine.

Choose the damaged workbook

Next steps

About the Excel File Repair (Recover Data from a Corrupt XLSX or XLS)

An XLSX workbook is a ZIP archive of XML files: one per sheet, one for the text the cells share, one for the styles, and a few that tie them together (ECMA-376 Office Open XML). Excel reads it strictly — one cut-off file inside, one character XML does not allow, one link to a part that is not there — and it says it found a problem with some content, or that it cannot open the file because the file format or file extension is not valid.

This page takes such a workbook apart and rebuilds it: it finds every part of the archive even when its end is missing, repairs each XML part, keeps every complete row of a sheet that was cut short, leaves out what is beyond saving (a damaged chart, a stale calculation chain), ties what is left back together, and reads the result back with a second, independent spreadsheet reader to check it. It handles old XLS workbooks too — it cleans their record stream and reads it again — and CSV files whose encoding or quoting went wrong. You see the report and the first rows of every sheet before anything is saved, and nothing is uploaded.

How to use it

  1. First try Excel’s own repair: File › Open, select the workbook, open the menu on the Open button and choose Open and Repair, then Repair or Extract Data (Microsoft’s steps). Also look for an earlier version in your cloud storage’s version history or a backup.
  2. Work on a copy of the damaged workbook, then choose it here: XLSX, XLSM, XLTX, XLS, XLSB, ODS or CSV.
  3. Press Repair. The page says what the file really is, what was wrong with it, which sheets came back (whole or cut short) and what could not be recovered.
  4. Look through the sheets: each one shows its first rows, so you can see the data is there before you save anything.
  5. Without a pass, the report and the first rows of each sheet are a free preview; with an Ultimate pass you save the repaired workbook (formatting and charts that survived are kept) or a clean values and formulas workbook, the safest to open.

Examples

A workbook that came through a broken download
Input
budget.xlsx · Excel: “We found a problem with some content”
Result
All 6 sheets recovered · the last one cut short at row 1,872 · the archive’s end and the content types were missing and written again

The parts of an XLSX that a download loses are the ones at the end of the archive. The sheets before them are whole; the one the download stopped in keeps every complete row up to that point.

A workbook another program wrote badly
Input
export.xlsx from a reporting tool · Excel refuses it
Result
Shared text repaired: 14 characters XML does not allow were removed · checked by reading it back

Programs that export to XLSX sometimes copy control characters from their database straight into the XML. One is enough for Excel to refuse the file; taking them out makes it open with every value in place.

An old .xls whose end was cut off
Input
stock-archive.xls · Excel 97–2003 workbook · “the file is corrupt”
Result
3 of 4 sheets recovered · the workbook stream stops part way; its last records were closed off

An .xls file is a stream of records, one sheet after another. Cleaning it — keeping every whole record, closing what was cut off and fixing the positions of the sheets — lets a full reader read it again, formulas included.

A CSV export that opens as one column of strange characters
Input
clients.csv · semicolons, Windows-1252 text, “é” where “é” should be
Result
Encoding: WINDOWS-1252 · separator: semicolon · 3 rows fixed by closing a quote that was never closed

CSV files have no container to break; what breaks is their text. The page works out the encoding, turns double-encoded characters back, finds the separator, and repairs quotes that would otherwise swallow the rows after them.

Common uses

  • Workbooks that will not open after a broken download, an interrupted copy or a full disk while saving.
  • Workbooks recovered by a deep scan of a disk image and marked partly damaged.
  • Exports from other programs that Excel refuses or only opens after its own repair message.
  • Old XLS workbooks that Excel calls corrupt.
  • CSV files that open as one column, with strange characters, or with half their rows missing.

What the repair does to an XLSX

  • Finds the parts. The archive is read from the front, so parts are found even when its end is missing (see ZIP Archive Repair for how). A part cut short is decoded as far as it goes.
  • Repairs the XML. Characters XML forbids are removed, bare “&” signs escaped, elements left open closed. A sheet cut short keeps every complete row (<row>), the shared text every complete entry; nothing half-written is kept.
  • Leaves out what cannot be saved. The calculation chain is always left out — it is only a cache, and Excel rebuilds it. A damaged styles part is left out with every reference to it (the values stay, the formatting goes). A damaged chart, drawing, comment or pivot table is left out with every link to it.
  • Ties it back together. Links to parts that are gone are taken out, sheets without a part leave the workbook’s list, the list of content types is written again, and a workbook part that is missing is written again from the sheets that survived.
  • Checks it. The repaired workbook is read back by a second, independent reader (SheetJS). When it reads, the page says so; when it does not, the values come from this page’s own reader and the values-and-formulas workbook is the one to use.

Repaired workbook, or values and formulas?

The repaired workbook is your own file with its damage taken out: column widths, formatting, charts, tables, pictures and macros that survived are still in it. It is the one to try first.

The values and formulas workbook is written new from what was read back: every value, every formula as text, number formats, sheet names. It has none of the damaged file’s structure, so it is the safest to open, and it is the result for XLS, XLSB, ODS and CSV files.

Old XLS workbooks

An Excel 97–2003 workbook is a compound file — a small file system inside one file — holding a stream of records: the workbook’s settings and shared text first, then each sheet (MS-XLS, MS-CFB). The page follows the compound file’s chains as far as they hold, then cleans the record stream: whole records are kept, damaged stretches skipped, a stream cut short closed off, sheets whose records are gone dropped from the list, and the positions of the others fixed. A full reader then reads it, formulas included; when even that fails, the values are read directly from the records.

What the repair is measured against

The page’s automated tests write workbooks with SheetJS, lay them out the way Excel orders its parts, and break them: cut short in the middle of a sheet, with characters XML forbids in the shared text, with the styles part cut in half and a stale calculation chain added, with most of the shared text missing, and with the workbook part gone. Old XLS workbooks are cut short and have a stretch zeroed in the middle; CSV files get double-encoded text, a quote that is never closed and zero bytes. Every repaired workbook must open in SheetJS, and every recovered row must be exactly the original row.

No success rate is published for other people’s files: what comes back depends on how much of the workbook reached the disk.

Limitations

  • Missing data stays missing: rows after the point where a sheet was cut off, and cells whose shared text did not survive, cannot be recreated (those cells come back empty and are counted).
  • Charts, pivot tables, comments and drawings come back only when their own parts survived whole; a damaged one is left out, and the report says so.
  • A workbook whose styles part is damaged comes back without its formatting (fonts, colours, borders, number formats); its values are kept.
  • Password-protected workbooks are encrypted: they cannot be repaired without their password, and this page never tries to guess one.
  • Macros are kept in the repaired workbook only when the macro project survived whole, and never in the values-and-formulas workbook.
  • XLSB, ODS and old XLS files are rebuilt as XLSX values and formulas, not in their own format.
  • A damaged record can decode as a value in an impossible place — outside an .xls sheet’s 256 columns, or far beyond every other cell. Such values are left out of the values-and-formulas workbook, and the report says how many.
  • Files of up to 400 MB: the repair works on the whole file in memory.
  • Excel and Microsoft are trademarks of Microsoft; this page is not made by or affiliated with Microsoft.

Privacy

The workbook is read by your browser on your device; nothing from it is sent anywhere, and the page works offline once it has loaded. The spreadsheet reader used to check the result is part of this site and runs on your device too.

Frequently asked questions

What do I get without a pass?

Without a pass, Excel File Repair (Recover Data from a Corrupt XLSX or XLS) shows the repair report for the whole workbook, and the first rows of each recovered sheet (up to 10 rows and 10 columns). Until you unlock it, the result can’t be downloaded. An Ultimate pass, a one-time payment that never renews, unlocks the full result. The pricing page lists the passes and their prices.

Excel says it found a problem with some content. What does that mean?

That one of the XML parts inside the workbook is not what Excel expects: cut short, holding a character XML does not allow, or pointing at a part that is not there. Excel then offers to recover what it can. This page repairs each part on its own, keeps everything that survived, and lists what it had to leave out, so you can see exactly what came back.

Should I try Excel’s Open and Repair first?

Yes. In Excel choose File › Open, select the workbook, open the menu on the Open button and choose Open and Repair, then Repair — or Extract Data, which keeps values and formulas (Microsoft’s steps). When that fails, or drops more than you can lose, use this page.

Will my formulas survive?

Formulas are kept as written in the repaired workbook and in the values-and-formulas workbook, together with their last results where those were saved. For an old XLS that even the full reader cannot read after cleaning, only the formulas’ last results come back.

My file is all zeros, or empty. Can anything be done?

No: a file of zero bytes was created but its contents never arrived, usually after a sync or transfer error, and there is nothing in it to recover. The page says so instead of producing an empty workbook. Look for an earlier version — your cloud storage’s version history, a backup, or the person who sent it.

Can it open a password-protected workbook?

No. A password-protected workbook is encrypted, so it cannot be read without its password, and this page never tries to guess one. Open it in Excel with the password, save a copy without it, and repair that copy if it is still damaged.

Why does my CSV open in one column, or with strange characters?

Because Excel guessed the separator or the encoding wrongly. The page works both out from the file itself — a semicolon or a tab instead of a comma, a legacy encoding or text encoded twice — and gives you a clean UTF-8 CSV and a workbook.

Is anything uploaded?

No. The workbook never leaves your device: it is repaired and checked in your browser, and the page works without a connection once it has loaded.

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.