Excel File Size Limit: What to Do When It's Too Big
In this article
Excel workbooks can grow until they hit a hard ceiling: 2 GB on Windows (the .xlsx format itself is limited to 2 GB), and on Excel for the web the practical limit is much lower—around 50 MB for opening and editing in the browser, though viewing may work for somewhat larger files. When you hit the limit, Excel may refuse to open the file, save slowly, or throw errors like “File not saved” or “Not enough memory.” The fix is to shrink the workbook before it reaches the wall: remove unused formatting, split data across files, and avoid storing images or embedded objects inside the sheet.
What You'll Need
- Excel desktop app (Windows or Mac) for the most reliable repair and cleanup tools—Excel for the web has fewer options.
- Enough free disk space on your computer (at least twice the file size) for temporary files during save and repair.
- A backup copy of the workbook before you start deleting or moving anything.
Step-by-Step
- Check the current file size. In File Explorer (Windows) or Finder (Mac), right-click the .xlsx file and choose Properties (Windows) or Get Info (Mac). Note the size in MB or GB. If it is already over 1 GB, plan to split it rather than just clean it.
- Make a backup copy. Copy the file to another folder or drive. Every cleanup step below changes the workbook, and you want a safe original if something goes wrong.
- Find the bloat. Open the workbook in Excel desktop. Press Ctrl+End (Windows) or Command+End (Mac) on each sheet to jump to the last used cell. If it lands far beyond your actual data—say row 50,000 when you have 500 rows—the sheet has “ghost” formatting. Also check for large embedded images, charts, or pasted objects that you no longer need.
- Delete unused rows and columns. Select the first empty row below your data, press Ctrl+Shift+Down Arrow (Windows) or Command+Shift+Down Arrow (Mac) to select to the bottom, then right-click and choose Delete. Repeat for columns to the right of your data. This removes formatting that inflates the file.
- Clear excess formatting. Select the entire sheet (click the corner triangle above row 1 and left of column A), then go to Home > Clear > Clear Formats. Reapply only the formatting you actually need. This alone can shrink a file dramatically.
- Remove unused defined names and data connections. Go to Formulas > Name Manager and delete names that point to nothing or are no longer used. Check Data > Queries & Connections and remove connections you do not need. Each connection can add weight.
- Compress images and avoid embedding objects. If you must keep images, select each one and use Picture Format > Compress Pictures, choosing a lower resolution. Better: link to images stored outside the workbook instead of embedding them.
- Save as .xlsx, not .xlsb or .xls. The modern .xlsx format is compressed and generally smaller than the old .xls format. If you are using .xlsb for speed, consider switching to .xlsx to reduce size, though .xlsb can be smaller in some cases—test both.
- Split the workbook if it is still too large. Create separate files by year, department, or category. Use Data > Get Data > From File > From Workbook to pull data from one file into another without duplicating it. Keep each file under a few hundred MB for smooth performance.
- Save and verify. After cleanup, save the file with a new name (File > Save As) and check the new size. Open it to confirm all data and formulas still work. If the size did not drop much, the bloat may be in hidden sheets, pivot caches, or external links—check those next.
Common Mistakes
- Deleting rows without clearing formatting. Simply pressing Delete on cells clears content but leaves formatting, so the used range stays huge. Use Clear Formats or delete entire rows/columns.
- Ignoring hidden sheets and very hidden sheets. A hidden sheet can hold thousands of rows of stale data. Unhide all sheets (right-click a sheet tab > Unhide) and review each one.
- Pasting as picture or embedding whole workbooks. Pasting a large range as a picture or embedding another workbook as an object bloats the file fast. Paste values or link instead.
- Assuming Excel for the web can handle the same size as desktop. The web version has much lower limits and may fail to open a file that desktop opens fine. Use desktop for large files.
- Not saving a backup before cleanup. Cleanup steps are destructive. Always keep the original until you have verified the cleaned file.
Tips
- Save a copy as .xlsx and then re-open it—sometimes Excel rewrites the file more efficiently on a fresh save.
- Use Power Query to import data instead of pasting it. Queries keep the source external and the workbook small.
- Turn off “Track changes” if it is on; the change history can add significant size.
- Remove pivot table caches you no longer need: right-click a pivot table > PivotTable Options > Data > uncheck “Save source data with file” (only if you do not need to refresh offline).
- For workbooks that must stay large, consider storing raw data in a database or CSV and using Excel only for analysis.
Troubleshooting
- Excel says “File not saved” or “Not enough memory.” Close other programs, free up disk space, and try saving to a local drive rather than a network or cloud folder. If it still fails, use File > Save As to save a copy with a new name.
- The file opens but is very slow. Check for volatile formulas (like TODAY or OFFSET) used across thousands of rows, and for excessive conditional formatting. Reduce the ranges they apply to.
- Size did not drop after cleanup. Look for embedded objects (double-click areas that seem empty), external links (Data > Edit Links), and custom XML parts. Also check the file for corruption: open it in Excel and use File > Info > Check for Issues > Inspect Document.
- Cannot open a file near the 2 GB limit. Try opening it on a computer with more RAM and a 64-bit version of Excel (32-bit Excel has a lower practical memory ceiling). If it still fails, you may need to recover data using Excel’s Open and Repair (File > Open > Browse, select the file, click the arrow next to Open, choose Open and Repair).
Frequently Asked Questions
What is the maximum file size for an Excel workbook?
For .xlsx files on Windows, the limit is 2 GB. Excel for the web has a much lower limit—around 50 MB for editing—and may only allow viewing for larger files. Mac Excel has similar practical limits to Windows.
Why is my Excel file huge when it has little data?
Usually because of formatting applied to entire rows or columns, hidden sheets, embedded images, or pivot caches. Clearing formats and deleting unused rows/columns often fixes it.
Can I open a 2 GB Excel file in Excel for the web?
No. Excel for the web cannot open files that large. You need the desktop app, and even then performance may be poor.
Does saving as .xlsb reduce file size?
Sometimes, because .xlsb is a binary format, but not always. Test both formats with your specific workbook. .xlsx is generally recommended for compatibility.
How do I split a large Excel file into smaller ones?
Use Data > Get Data > From File > From Workbook to import data from one file into another, or manually copy sheets into new workbooks. Keep each file under a few hundred MB for best performance.
Will deleting rows reduce file size?
Only if you delete entire rows (not just clear contents) and also clear formatting. Otherwise the used range remains large and the file stays bloated.