How to AutoFit Tables to Window or Contents in Microsoft Word

Formatting tables in Microsoft Word can be notoriously unpredictable. When pasting text from a website, importing rows from Excel, or editing multi-column comparison matrices, tables often extend past document page margins, clipping columns off the visible screen. In other instances, short headers occupy excessively wide columns while longer paragraphs are squeezed into narrow vertical slivers. Microsoft Word’s AutoFit feature provides automated layout algorithms that instantly adjust table dimensions to fit cell text or stretch proportionally between page margins.

Understanding the Three AutoFit Modes in Word

When you click inside a table in Microsoft Word, the ribbon reveals a dedicated Table Layout tab containing the AutoFit drop-down menu with three distinct sizing behaviours:

  • AutoFit Contents: Shrinks or expands every column so its width precisely matches the longest text string or widest image inside that column, eliminating wasted empty space.
  • AutoFit Window: Automatically stretches the entire table across the page so its left and right borders align flush with your document’s active page margins.
  • Fixed Column Width: Locks the current column widths in place, preventing Word from automatically resizing cells when new words are typed. Instead, overflowing text wraps to a new line.

How to AutoFit Table Columns to Match Cell Contents

If your table contains compact numbers or short dates that are swimming inside disproportionately wide columns:

  1. Click anywhere inside the table you wish to resize.
  2. Click the Table Layout (or Layout) tab that appears on the ribbon under Table Tools.
  3. In the Cell Size group, click the AutoFit button.
  4. Select AutoFit Contents from the drop-down menu.
  5. Word instantly inspects every cell, compacting narrow columns and widening columns with longer text blocks to create a balanced, clean table.

How to AutoFit a Table to Align with Page Margins (AutoFit Window)

When an imported table extends beyond the right edge of the page, or when a narrow table looks awkwardly floating in the centre of an executive report:

  1. Click inside the table to activate table tools.
  2. Click the Table Layout tab on the ribbon.
  3. Click AutoFit > AutoFit Window.
  4. The table immediately expands or contracts so its total width matches the printable width between your left and right page margins. If you later change page orientation from Portrait to Landscape or adjust margin widths under the Layout tab, the table automatically resizes itself to remain aligned.

Preventing Word from Automatically Resizing Columns as You Type

By default, after you apply AutoFit Contents, Word dynamically shifts column widths every time a user types a longer sentence into a cell. If you want to lock the current dimensions:

  1. Highlight the table or place your cursor inside any cell.
  2. Go to Table Layout > AutoFit.
  3. Click Fixed Column Width.
  4. Column boundaries are now immovably locked. Any additional text entered into a cell will wrap downward automatically rather than expanding the column horizontally.

Distributing Rows and Columns Evenly

In addition to AutoFit, Word offers dedicated tools to create uniform grids for schedules, pricing matrices, and comparison tables:

  • Distribute Columns: Highlight the columns you wish to standardise, go to Table Layout, and click Distribute Columns. Word recalculates total width and gives each selected column identical width measurements.
  • Distribute Rows: Click Distribute Rows to equalize the vertical height across all table rows, ensuring a balanced grid appearance.

Troubleshooting Overflowing Text and Hidden Borders

If a table refuses to fit within your margins even after clicking AutoFit Window:

  • Long unbroken text strings: Check whether any cell contains a very long unbroken URL, file path, or code string. Word cannot wrap a continuous string across multiple lines without a hyphen or space. Insert a soft break (Shift + Enter) or hyphenate the text manually.
  • Indent and table position conflicts: Right-click the table move handle (the four-directional arrow in the top-left corner of the table), select Table Properties, and on the Table tab, verify that Alignment is set to Left and Indent from left is set to 0 cm.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.