The fastest ways to shrink an Excel file

Excel files grow when you add images, charts, formatting, and calculation history. The quickest fixes are deleting unused sheets, removing images you no longer need, and clearing the undo history before saving. If your file contains many images, compressing them inside Excel itself usually cuts file size by half or more without losing the data you need.

Most of these changes take under five minutes. Start with the methods that save the most space first — removing images and deleting blank sheets — then move to the smaller wins like clearing formatting from empty cells.

Key Takeaways

  • Deleting unused sheets and removing embedded images are the two fastest ways to shrink file size, often cutting 30 to 50 percent or more.
  • Excel's built-in image compression tool reduces image file size without removing them from your spreadsheet.
  • Clearing the undo history before saving removes the record of every change you made, which can add significant size to older files.
  • Saving as .xlsx instead of .xlsm removes macro code if you do not need it, and choosing binary format (.xlsb) compresses better than standard Excel format.
  • Removing conditional formatting, extra blank rows, and unused named ranges helps but saves less space than removing images or sheets.

Delete sheets you are not using

Blank or abandoned sheets add to file size even when they contain no data. Right-click any sheet tab at the bottom of the window and select Delete. Excel will ask you to confirm. If the sheet has any data at all, Excel warns you before deletion — if you see no warning, the sheet was truly empty.

Check for sheets with names like "Archive", "Old Data", "Temp", or "Sheet2" and "Sheet3" that came with the file by default. These are common places people store outdated information or leave blank when they create a new workbook.

Compress or remove images

Images embedded in Excel files take up the most space. If your file contains charts, logos, or screenshots, compressing them usually shrinks the overall file by 30 to 50 percent. Click any image in your spreadsheet, then go to the Picture Format tab (or Image Format in newer versions). Select Compress Pictures.

A dialog box appears with options to reduce resolution. Choose Email or Screen resolution — these are suitable for most spreadsheets and cut file size significantly. If you need the image only for reference and not for printing, Screen resolution is usually enough. Click OK to apply the compression to that image.

If an image is purely decorative or you have multiple copies of the same image, delete it instead. Select the image and press Delete. This saves more space than compression alone.

Clear the undo history

Excel stores every change you make so you can undo them. This history stays in the file even after you save, and in files you have edited many times, it can add significant size. Clearing it removes that record but does not affect your actual data.

Go to File > Options > Advanced. Scroll down to the Editing options section and look for Undo levels. Set this to 1 (the minimum). Then save the file. The next time you open it, the undo history will be cleared. You can change this setting back to a higher number afterward if you want more undo steps in future editing sessions.

Choose the right file format when saving

Excel offers several formats, and some compress better than others. .xlsx (the standard format) is smaller than .xlsm (which includes macros). If your file contains macros you do not use, save it as .xlsx instead.

For the smallest possible file, use .xlsb (Excel Binary Workbook). This format compresses data more efficiently than .xlsx, often reducing file size by 20 to 40 percent with no loss of functionality. Open the File menu, select Save As, and choose Excel Binary Workbook from the file type dropdown. Note that .xlsb files may not open in older versions of Excel or in some spreadsheet programs like Google Sheets.

Avoid saving as .xls (the older Excel format) unless you must share the file with someone using Excel 2003 or earlier. The .xls format is less efficient and often produces larger files.

Remove conditional formatting and extra formatting

Conditional formatting — rules that change cell color or font based on values — adds formatting data to your file. If you have conditional formatting you no longer need, select the cells that contain it, go to Home > Conditional Formatting > Clear Rules, and choose Clear Rules from Entire Sheet.

Similarly, cells with many different fonts, colors, and styles carry more formatting information than plain cells. If you have applied formatting to cells you later cleared of data, that formatting data remains. Select blank cells, go to Home > Clear > Clear Formats to remove it. This saves less space than removing images, but it helps in files with heavy formatting across many sheets.

Delete unused named ranges and hidden rows or columns

Named ranges — custom names you give to cell ranges for formulas — add metadata to your file. If you created named ranges you no longer use, you can remove them. Go to Formulas > Name Manager, select any named range you do not need, and click Delete.

Hidden rows and columns still take up file space. If you hid rows or columns and no longer need them, unhide them first, then delete them. Select the rows or columns around the hidden ones, right-click, and choose Unhide. Then select those rows or columns again and delete them. This is a small saving but worth doing if you have many hidden rows.

Frequently Asked Questions

Will compressing images make them blurry?

Compressing to Screen or Email resolution may reduce sharpness slightly if you zoom in closely, but for most spreadsheets viewed on a monitor, the difference is not noticeable. If you need the image to print clearly at large size, use a lower compression level or skip compression for that image.

Can I undo changes after clearing the undo history?

No. Once you clear the undo history and save the file, you cannot undo past changes. You can still undo new changes you make after clearing it. If you think you might need to undo something, save a backup copy before clearing the history.

What is the difference between .xlsx and .xlsb?

.xlsx is the standard format that opens in all versions of Excel and most other spreadsheet programs. .xlsb is a binary format that compresses better and is faster to open in Excel, but it may not open in Google Sheets, LibreOffice, or older Excel versions. Use .xlsb if file size is your main concern and you only share with people using modern Excel.

Does deleting data from cells reduce file size?

Deleting the values does, but the cells still carry formatting and formula history. To truly shrink the file, delete the entire rows or columns, not just the data inside them. Select the row or column header, right-click, and choose Delete.

Why is my Excel file still large after I deleted everything?

The file likely contains hidden sheets, embedded images you did not see, or a large undo history. Check for hidden sheets by right-clicking the sheet tabs and selecting Unhide. Look for images by pressing Ctrl+A to select all and checking if any objects are selected. If neither explains it, clearing the undo history usually helps.