The main Excel file extension is .xlsx, which is the standard format Microsoft Excel has used since 2007

When you save a spreadsheet in Microsoft Excel, the file gets an extension — a short code at the end of the filename that tells your computer what program should open it. The most common one you'll see is .xlsx. This is the default format Excel uses today, and it's the one you should use for most work because nearly every spreadsheet program can open it.

The older format, .xls, was Excel's standard before 2007. You'll still encounter .xls files, especially if someone has been using the same spreadsheet for many years or works with older systems. Both formats do the same job — they store your data, formulas, and formatting — but .xlsx is smaller and more reliable.

Beyond these two, Excel also saves files in other formats depending on what you need. Understanding which extension to use prevents compatibility problems and makes sure your spreadsheet works the way you expect when someone else opens it.

Key Takeaways

  • .xlsx is the current Excel standard and works with nearly all spreadsheet programs, so use this format unless you have a specific reason not to.
  • .xls is the older Excel format that still opens in modern Excel but is smaller and less capable than .xlsx.
  • .csv removes all formatting and formulas, keeping only the raw data, which is useful when moving data between different programs.
  • Excel can save to .pdf, .ods, and other formats, but these are usually one-way conversions — you lose the ability to edit as a spreadsheet.

When to use .xlsx versus .xls

Use .xlsx as your default. It's the format Excel creates automatically when you click Save, it works on Windows and Mac, and it opens in Google Sheets, LibreOffice, and most other spreadsheet software. If you're sharing a file with someone and you're not sure what they use, .xlsx is the safest choice.

Use .xls only if someone specifically asks for it or if you know they're using very old software that doesn't support .xlsx. Some older accounting systems or legacy programs still require .xls. If you have an .xlsx file and need to convert it to .xls, open it in Excel and go to File > Save As, then choose "Excel 97-2003 Workbook" from the format dropdown. Be aware that .xls has limits — it can't handle as many rows or columns, and some newer Excel features won't save properly.

What .csv does and when you need it

.csv stands for "comma-separated values." It's a plain-text format that stores only your data — no colors, no formulas, no merged cells, no charts. When you save as .csv, Excel converts all your formulas to their results and strips away everything else.

Use .csv when you're moving data between completely different programs. If you have a spreadsheet in Excel and need to import it into a database, accounting software, or a web form, .csv is often the format those programs expect. It's also useful for backing up just the numbers without the formatting, since .csv files are tiny and open in any text editor.

The trade-off is that you lose everything except the data. If you save an Excel file as .csv and then open it again, your formulas are gone — they've been replaced with whatever number they calculated to. Always keep a copy in .xlsx if you might need to edit formulas later.

Other formats Excel can save to

Excel can save to .pdf, which creates a file that looks exactly like your spreadsheet but can't be edited as a spreadsheet anymore. Use this when you want to share a final version that people should view but not change — like a report or invoice. PDFs look the same on any computer, so formatting stays intact.

.ods is the format used by LibreOffice Calc and Google Sheets. If you save an Excel file as .ods, it will open in those programs, but you may lose some Excel-specific features. This format is less common in business but useful if you're working in an open-source environment.

Excel also offers .xlsm, which is like .xlsx but includes macros — automated scripts that perform tasks in your spreadsheet. If your file contains macros and you save it as regular .xlsx, the macros will be removed. Only use .xlsm if you've actually written or imported macros and need to preserve them.

How to check and change a file's extension

To see what extension a file has, look at the end of its name in your file manager. On Windows, open File Explorer and look at the filename column. On Mac, open Finder and look at the Name column. If you don't see extensions, you may need to turn them on — on Windows, go to View and check "File name extensions"; on Mac, open Finder preferences and check "Show all filename extensions."

To change an extension, right-click the file and choose Rename (Windows) or press Enter (Mac), then change the letters after the dot. However, simply renaming the file doesn't convert it — if you rename an .xlsx file to .csv, it's still an Excel file that just has the wrong label. To actually convert it, open the file in Excel, go to File > Save As, choose the format you want from the dropdown, and click Save.

Why file extensions matter for sharing

When you send a spreadsheet to someone else, the extension tells their computer which program to use to open it. If you send an .xlsx file to someone with only LibreOffice installed, their computer will still open it correctly because LibreOffice reads Excel files. But if you send a .csv file to someone expecting an Excel spreadsheet, they'll see only raw data with no formatting.

Some organizations have policies about which formats they accept. A bank might only take .csv files for data imports. A client might ask for .pdf so they can't accidentally change your numbers. Knowing what extension to use prevents back-and-forth emails asking for the file in a different format.

Common problems with file extensions

The most common problem is saving as .csv and then losing formulas. If you have a spreadsheet with calculations and you save it as .csv, those formulas become static numbers. If you then realize you need to edit the formulas, you can't — they're gone. Always keep your working file in .xlsx and only save as .csv when you're ready to hand off the final data.

Another issue is opening an old .xls file in new Excel and then saving it. Modern Excel will ask if you want to keep it in .xls format or convert to .xlsx. If you choose to keep .xls, you might lose access to newer features. It's usually better to convert to .xlsx unless you know the file needs to stay in the old format for compatibility.

On Mac, sometimes Excel hides the extension by default, so you might think you're saving as .xlsx when you're actually saving as .xls. Check your file's actual extension before sharing it with someone else.

Frequently Asked Questions

Can I open an .xlsx file in Google Sheets or LibreOffice?

Yes. Google Sheets and LibreOffice Calc both open .xlsx files without any conversion needed. You can also upload an .xlsx file directly to Google Drive and edit it there. Most formulas and formatting will work, though some advanced Excel features may not translate perfectly.

What happens if I change the extension from .xlsx to .xls?

Simply renaming the file doesn't convert it — it just changes the label. The file is still in .xlsx format internally. To actually convert it, open the file in Excel, use File > Save As, choose "Excel 97-2003 Workbook," and save. This creates a new file in true .xls format.

Is .csv the same as .xlsx?

No. .csv is plain text with only data, no formatting or formulas. .xlsx is a structured format that preserves colors, formulas, charts, and multiple sheets. You can convert .xlsx to .csv, but you'll lose everything except the raw numbers.

Why would someone ask me to send a file as .csv instead of .xlsx?

Usually because they're importing the data into a different system — a database, accounting software, or a web form — that expects .csv format. Sometimes it's also a security measure, since .csv files can't contain macros or hidden data.

Can I use .pdf if I want people to view but not edit my spreadsheet?

Yes. .pdf is the right choice when you want to share a final version that looks the same on every computer and can't be edited as a spreadsheet. People can still read the data, but they can't change formulas or add rows.