OwlDocy

Excel cannot open the file because the file format or file extension is not valid

The full message
Excel cannot open the file 'filename.xlsx' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.

This is the most searched Excel error. It means Excel looked inside the file and did not find a workbook it understands. Sometimes the name is simply wrong. More often the file is damaged.

Repair it with Excel Repair

.xlsx · .xlsm · .xls · .xltx · .csv

Free preview Deleted after 1 hour 10 free points to start
Q1-invoices.xlsx
D9=SUM(D2:D9)
InvoiceClientDateAmount
2INV-1042NorthwindMar 03$6,420
3INV-1043ContosoMar 07$1,980
4INV-1044FabrikamMar 11$12,300
5INV-1045LitwareMar 14$880
6INV-1046Adventure CoMar 19$5,150
7INV-1047TailspinMar 22$3,275
8INV-1048WoodgroveMar 28$9,640
9INV-1049ProsewareApr 02$2,410
10Total$42,055
Recovered 2 sheets · 1,206 of 1,206 cells · formulas rebuilt
Q1-invoices.xlsx — Repaired?
D9=SUM(D2:D#REF!)
InvoiceClientDateAmount
2INV-1042NorthwindMar 03$6,420
3INV-1043����Mar 07███
4INV-1044FabrikamMar 11$12,300
5INV-1045███Mar 14#N/A
6███Adventure Co#N/A$5,150
7INV-1047TailspinMar 22$3,275
8#N/AWoodgrove#REF!$9,640
9INV-1049ProsewareApr 02$2,410
10Total#REF!
!

We found a problem with some content in 'Q1-invoices.xlsx'.

Do you want us to try to recover as much as we can?

YesNo
BeforeAfter

What causes it

The download or copy was cut off

An .xlsx file is a ZIP archive. If the end is missing, Excel can't find the index and gives up.

The extension doesn't match

An old .xls or a .csv renamed to .xlsx (or the other way round) triggers this message.

A USB drive was pulled out while saving

Half-written files have broken XML inside, which Excel refuses to open.

Email or sync tools changed the file

Some mail gateways and sync clients rewrite attachments and break the archive.

Try these first. They're free.

3 ways to fix it yourself

1Check the real file type

  1. 1.In File Explorer turn on View › Show › File name extensions.
  2. 2.If the file is really .xls or .csv, rename it back and open it again.
  3. 3.Or open Excel first and use File › Open, so Excel detects the format itself.

2Use Excel's Open and Repair

  1. 1.Open Excel on its own (not by double-clicking the file).
  2. 2.Go to File › Open › Browse and select the damaged file.
  3. 3.Click the small arrow next to the Open button and choose Open and Repair.
  4. 4.Pick Repair first. If that fails, run it again and pick Extract Data (Excel) or Recover Text (Word).

3Restore an earlier version

  1. 1.OneDrive or SharePoint: right-click the file › Version history, and open an older copy.
  2. 2.Windows: right-click the file › Properties › Previous Versions (needs File History or restore points).
  3. 3.Look for an autosaved copy: File › Info › Manage Workbook / Manage Document › Recover Unsaved.

Still won't open? Recover it with OwlDocy

OwlDocy rebuilds the file at a lower level than Office does: the ZIP archive, the XML inside and any missing parts. You see everything we recovered for free, with a report of what was fixed.

About Excel Repair
Repair Excel file

.xlsx · .xlsm · .xls · .xltx · .csv

Free preview Deleted after 1 hour 10 free points to start

Frequently asked questions

The download or copy was cut off, The extension doesn't match, A USB drive was pulled out while saving, Email or sync tools changed the file. More often the file is damaged.

Excel's repair keeps what it can read and silently drops the rest. Always copy the file first, so you can try another method on the untouched original.

Upload the file to OwlDocy's Excel Repair. It rebuilds the file at a lower level than Office does, and the free preview shows what came back before you pay.

Files are encrypted in transit, processed only by software, and deleted after 1 hour. They are never used to train AI.

Recover your Excel file for free

Free repair and preview. 10 free points when you sign up. Files deleted after 1 hour.

Repair a file now