Why your Excel file gets large and what compression does

Excel files grow when they contain many rows of data, images, charts, or formatting. A file that started at 500 KB can balloon to 5 MB or larger, especially if you've added pictures or worked with the file many times over. Compression removes unnecessary data and unused space, shrinking the file without deleting what you need.

A smaller file takes less time to email, uploads faster to cloud storage, and opens more quickly on older computers. Most compression happens automatically when you save — Excel removes some temporary data — but you can do more to trim the file down yourself.

Key Takeaways

  • Delete unused sheets, rows, and columns before saving, because Excel keeps them in the file even if they're empty.
  • Remove images and replace them with smaller versions if the file is mostly graphics.
  • Save as .xlsx (the default format) rather than .xls or .xlsm, which store more overhead.
  • Use the built-in compression tool under File > Info > Compress Pictures if your spreadsheet contains many images.
  • Clear formatting from empty cells, because Excel counts formatting as file size even when the cell is blank.

Delete empty sheets, rows, and columns

Excel keeps empty sheets in the file even after you delete the data inside them. If you created a new sheet to test something and then cleared it, the sheet structure still takes up space. Right-click the sheet tab at the bottom of the window and select Delete Sheet to remove it entirely.

Do the same for rows and columns you no longer use. If your data ends at column M but column Z still has formatting from old work, select columns N through Z, right-click, and choose Delete. This removes the columns from the file, not just the data inside them. Repeat this for rows — if your data ends at row 500 but the sheet goes to row 1048576 (the maximum), you can't delete all of them, but you can delete the ones with leftover formatting.

Compress or remove images

Images are the biggest file-size culprit in most spreadsheets. A single photo can add 1 MB or more. If your file contains pictures, the fastest way to shrink it is to remove images you don't actually need or replace them with smaller versions.

If you must keep the images, use Excel's built-in compression tool. Click on an image in your spreadsheet, then go to the Picture Format tab that appears in the ribbon at the top. Click Compress Pictures (it's in the Adjust group). A dialog box opens — select Delete cropped areas of pictures and choose the lowest resolution that still looks acceptable. For most spreadsheets, 96 ppi (pixels per inch) is fine. Click OK.

If you have many images, you can compress them all at once. Select all of them by clicking the first image, holding Shift, and clicking the last one. Then use the Compress Pictures tool as described above.

Save in the right file format

The file format you choose affects size. .xlsx (Excel Workbook) is the default and most efficient. .xls (the older Excel format) and .xlsm (Excel with macros) both add extra overhead and make files larger than they need to be.

To check what format your file is in, look at the filename — it ends with .xlsx, .xls, or .xlsm. To save in .xlsx format, go to File > Save As. In the dialog that opens, find the Save as type dropdown and select Excel Workbook (.xlsx). Click Save. If your file was already .xlsx, this step won't help, but it's worth checking if you inherited the file from someone else.

Clear formatting from empty cells

Formatting — colors, fonts, borders, number formats — takes up file space even when applied to empty cells. If you colored an entire column blue as a header but only use the first 20 cells, the formatting on the remaining 1,000+ empty cells still counts toward file size.

Select the empty cells with unwanted formatting, go to Home > Clear (in the Editing group), and choose Clear Formats. This removes the formatting but leaves any data in place. If you want to clear both formatting and data, choose Clear All instead.

Use Save As to force a full rewrite

Sometimes Excel leaves behind invisible temporary data from edits you've made over time. The fastest way to clean this up is to save the file with a new name. Go to File > Save As, give it a new filename (like "ProjectName_v2.xlsx"), and click Save. Excel rewrites the entire file from scratch, discarding the temporary data.

After you confirm the new file works correctly, you can delete the old one. This method often shrinks a file by 10 to 30 percent with no other changes needed.

Check file size before and after

To see how much space you've saved, right-click the file in Windows File Explorer (or Finder on Mac) and select Properties (Windows) or Get Info (Mac). The file size appears in the dialog. Write down the size before you compress, make your changes, save, and check again.

If the file is still larger than you'd like after these steps, the remaining size is probably necessary data — actual spreadsheet content, not waste. At that point, the only way to shrink it further is to remove data itself, such as old rows you no longer reference or sheets you can archive separately.

Frequently Asked Questions

Will compressing my file damage the data inside?

No. Compression removes only unused space and temporary data. Your actual spreadsheet content — numbers, formulas, text — stays exactly the same. Always save a backup before trying compression methods for the first time, but data loss is not a real risk.

What's the difference between compressing pictures and deleting them?

Deleting removes the image entirely from the file. Compressing keeps the image but reduces its resolution and removes parts you've cropped out. Use compression if you need the image but want it smaller; use deletion if the image isn't essential.

Can I compress a file that's already in .xlsx format?

Yes. Saving as .xlsx again won't help, but deleting empty sheets, clearing formatting, and removing images will all reduce size regardless of format. The format itself is already efficient.

Why is my file still huge after I deleted all the data?

Empty sheets and formatting on blank cells still take up space. Use the methods in this guide to delete unused sheets and clear formatting from empty areas. If the file is still large, you may have images, charts, or other objects you didn't notice.

Should I use a ZIP tool to compress the file further?

You can, but it's usually not worth the extra step. Excel files are already compressed internally. A ZIP tool might shrink it another 5 to 10 percent, but the file becomes harder to open and edit. Use the methods in this guide instead.