How to Make an Excel File Smaller

Learn proven steps to shrink large Excel workbooks without losing data. This XLS Library guide covers trimming formatting, compressing images, optimizing formulas, and saving in efficient formats for faster performance and easier sharing.

XLS Library
XLS Library Team
·5 min read
Lean Excel Workbook - XLS Library
Photo by Mikewildadventurevia Pixabay
Quick AnswerSteps

Learn practical steps to shrink an Excel workbook without sacrificing data. This guide covers quick wins like trimming formatting, compressing embedded media, and using efficient formulas, plus when to save in a binary format for maximum reduction. By following these steps, you’ll improve load times, reduce storage needs, and keep your data intact.

Why Excel files grow and why shrinking matters

Workbook size tends to creep as you add data, formatting, and media. Large files load slower, back up takes longer, and sharing can fail on slow networks. Understanding the common culprits helps you attack the size problem without sacrificing data.

According to XLS Library, several inertia-creating patterns are consistently seen in practical workbooks. Heavily formatted cells (especially with many styles), unnecessary hidden sheets, and embedded objects like high-resolution images are frequent contributors. When you know what to target first, you can apply focused fixes rather than making random changes. The goal isn't to strip valuable content; it's to remove what's redundant, compress what is required, and organize data so Excel can read it more efficiently.

As you read, remember that every workbook is different. The best approach is to identify the largest contributors in your file and address them step by step, validating data integrity after each change.

Quick wins that reduce file size without data loss

Start with low-friction changes that don’t affect your data. These steps often yield noticeable reductions in seconds:

  • Remove unused worksheets, especially those with heavy formatting or embedded objects.
  • Clear formats in blank cells instead of deleting content; this reduces the memory Excel uses to render sheets.
  • Delete unnecessary named ranges and unused defined names that a complexity-tracking tool might highlight.
  • Convert heavy conditional formatting rules to simpler equivalents or limit their scope to relevant ranges.
  • Save a copy and compare file sizes before/after to confirm impact.

These tweaks are safe to perform on active workbooks, and they preserve data while removing ballast. After applying them, you’ll usually see a meaningful drop in the base size and faster workbook opening times.

Audit your workbook: locate large objects

A disciplined audit helps you pinpoint where size matters most. Start by inspecting:

  • Images, charts, and embedded media: large graphics can balloon a file; replace them with smaller equivalents or link to external resources when possible.
  • Data models and connections: pivot tables, external data connections, and the Data Model consume memory; consider flattening data or trimming the source.
  • Hidden elements: hidden sheets, unused rows, and excessive named ranges often survive simple edits.

Use Excel’s built-in tools and simple searches to identify extremes. For example, check the Review or File > Info sections to see recent size changes and explore the workbook for unusually large objects. After identifying culprits, plan targeted removals with a backup copy to avoid accidental loss.

Images, media, and objects: how to handle

Embedded images are a common offender. You can reduce size by:

  • Compressing pictures within Excel using the built-in feature (Picture Tools > Format > Compress Pictures) and selecting options that reduce resolution for older devices.
  • Replacing high-resolution images with web-optimized versions or vector graphics where feasible.
  • Converting charts to images only when editing needs are finished to prevent dynamic rendering from inflating size.
  • Replacing decorative shapes with simple native formatting to minimize complexity.

If you must keep images, consider external linking or storing the media separately and referencing it, which keeps the workbook lean while preserving the visuals you need.

Clean up formatting and styles to slim down

Formatting bogs down performance. Focus on:

  • Cleaning up cell styles: too many distinct styles inflate the file. Reuse existing styles, delete unused ones, and standardize formats.
  • Limiting the use of conditional formatting to essential ranges; expansive rules expand the workbook’s internal rule table.
  • Removing excessive data validation lists and dynamic named formulas that replicate the same logic across sheets.
  • Turning off 'Show formatting when coming from clipboard' or other nonessential visual features during heavy edits.

A cleaner style palette reduces resource usage and keeps the workbook snappy on large datasets.

Use efficient formulas and data types

Formulas can quietly bloat a workbook if they’re not optimized. Practical strategies:

  • Favor compact functions and avoid volatile formulas (like TODAY or RAND) that recalc often.
  • Replace whole-column references with fixed ranges when the data size is known.
  • Prefer dynamic arrays and named ranges only where they genuinely simplify maintenance.
  • Use helper columns to split complex calculations into smaller, more predictable steps.

By tightening formulas, Excel has to recalculate less, speeding up operations and trimming temporary data stored during calculations.

Manage pivot tables, data connections, and external data

Pivot tables and external connections are powerful, but they can add weight. Consider:

  • Consolidating data sources instead of duplicating data in separate tables.
  • Turning off automatic refresh during heavy editing, and schedule refreshes during idle time.
  • Removing unused pivot caches and clearing old connections that aren’t needed.
  • Loading only the fields you require into the pivot to minimize cache size.

These practices help keep your workbook responsive while still delivering the analytical value you need.

Saving strategies: binary vs xlsx vs xlsm and compression

Choosing the right file format affects size. In many cases:

  • Saving as the binary format (.xlsb) can reduce size for workbooks with heavy data and multiple sheets.
  • Using the standard .xlsx format with consistent data types and minimal embedded objects also helps.
  • If you use macros, save as .xlsm; if you don’t need macro support, avoid it to keep size down.
  • Consider zipping a workbook for archival; while this does not shrink the file itself in Excel, it makes distribution easier.

Test saving in the formats that fit your usage to determine the smallest practical size for your specific workbook.

Automation and bulk cleanup with Power Query and macros

Automation is a scalable way to keep files lean. Power Query lets you:

  • Load only necessary columns and rows from sources, avoiding large static tables.
  • Replace repeated transformations with query steps instead of duplicating logic across sheets.
  • Refresh data on demand instead of maintaining fully static datasets.

Macros can automate recurring cleanups, such as removing unused styles or compressing embedded media after updates. Use them carefully to avoid introducing new bloat.

Maintenance habits to keep files lean

Prevent backsliding by adopting a simple maintenance routine. Schedule periodic reviews of workbook size after major projects, tag versions, and store originals separately. Use standardized templates that limit formatting and media by default. Train team members to follow the same reduction best practices. With consistent discipline, your Excel workbooks stay small, fast, and reliable even as they grow in data. The XLS Library Team recommends incorporating these habits into your regular workflow to sustain lean workbooks over time.

Tools & Materials

  • Microsoft Excel (any recent version)(Ensure you have access to standard cleanup features (Format, Data, Review) for best results.)
  • Backup copy of the workbook(Create a separate file before making changes to avoid data loss.)
  • ZIP or 7-zip tool(Optional for archiving originals or sharing compressed versions.)
  • External storage to archive originals(Cloud or USB drive for safe retention of untouched copies.)
  • Image editing software(Optional if you plan to replace large embedded images with smaller ones.)

Steps

Estimated time: 20-40 minutes

  1. 1

    Back up the workbook

    Create a named version or duplicate the file to ensure you can revert any changes. This is your safety net before performing size-reduction actions.

    Tip: Save as a new version and store in a separate folder or cloud location.
  2. 2

    Audit usage and identify culprits

    Scan for large objects, heavy formatting, and data models that consume most space. Prioritize items that are easy to remove or compress.

    Tip: Start with the largest suspected culprits first to maximize impact.
  3. 3

    Remove unused sheets and rows

    Delete unnecessary worksheets and clear empty rows/columns to reduce the recalc surface area and memory usage.

    Tip: Always keep a backup before deleting content.
  4. 4

    Compress images and media

    Use Excel’s built-in compress tools and replace heavy graphics with smaller or external equivalents where possible.

    Tip: Compress after removing some images to evaluate true impact.
  5. 5

    Clean styles and formatting

    Consolidate styles, delete unused ones, and minimize heavy conditional formatting ranges.

    Tip: Use the Cell Styles gallery to standardize formatting across sheets.
  6. 6

    Save in an optimized format and test

    Try saving in .xlsb or other suitable formats and compare file sizes. Verify formulas and data integrity after each format change.

    Tip: Keep a small changelog of format trades and results.
Pro Tip: Always keep a backup before major changes.
Warning: Do not delete data or formulas without confirming necessity and risk.
Pro Tip: Test after each change to confirm data integrity and measure impact.
Note: If external data connections exist, loading only required fields can dramatically reduce size.

People Also Ask

What are the main causes of large Excel files?

Common culprits include embedded media, heavy formatting, multiple sheets with extensive styles, and data models or external connections. Identifying these helps you target reductions without risking data.

The main causes are big media, lots of formatting, and data models. Identify these to target reductions safely.

Is it safe to remove formatting and empty rows?

Yes. Removing unnecessary formatting and empty rows is safe if you back up first. It typically reduces file size without affecting calculations or data.

Yes—back up first, then remove nonessential formatting and empty rows to slim down the file.

Should I save as .xlsb to reduce size?

Saving as .xlsb can reduce size for large workbooks, especially with many sheets and data. Check compatibility with colleagues who may need to edit the file.

Saving as .xlsb can help, but make sure others can open and edit it if needed.

How can Power Query help shrink a workbook?

Power Query loads data efficiently and stores transformations, reducing the need for large static tables. It helps keep the workbook lean while preserving data integrity.

Power Query helps by loading only what you need and avoiding bulky copies.

What’s the quickest way to test if changes shrink the file?

Compare file sizes before and after each change and perform a quick integrity check to ensure data remains accurate. Use versioned saves for easy comparison.

Compare sizes and verify data after each change to ensure you didn’t lose anything.

Watch Video

The Essentials

  • Back up before starting any cleanup
  • Target largest culprits first for the biggest gains
  • Prefer lean formats (e.g., .xlsb) when appropriate
  • Standardize formatting to reduce style bloat
  • Implement a regular maintenance routine to keep files lean
Process diagram showing 3 steps to reduce Excel file size
3-Step process to shrink Excel files

Related Articles