How to Automatically Fit a Table to Window or Contents in Microsoft Word

When pasting tabular data from external websites, PDFs, or spreadsheets into Microsoft Word, tables frequently overflow into the page margins or disappear past the right edge of the printed page. Conversely, small tables sometimes look stretched out with excessive empty space inside narrow columns.

Manually dragging individual column borders to re-balance table width is tedious and difficult to align. Microsoft Word features an automated “AutoFit” command that resizes columns and tables mathematically in a single click.

Method 1: AutoFit to Contents (Snug Column Sizing)

If you want each column to shrink or expand so it is exactly wide enough to accommodate its longest text string without wasting space:

  1. Open your document in Microsoft Word.
  2. Click anywhere inside the table.
  3. Navigate to the contextual Table Layout (or Layout) tab on the ribbon.
  4. In the Cell Size group, click the AutoFit dropdown button.
  5. Select AutoFit Contents.

Word instantly recalculates the width of every column, collapsing excess padding while ensuring no text clips or creates awkward single-letter wrap lines.

Method 2: AutoFit to Window (Align to Page Margins)

If your table has overflowed off the right-hand margin of the page and you need it to snap perfectly between your left and right document margins:

  1. Click anywhere inside your table.
  2. Click the AutoFit button on the Table Layout tab.
  3. Select AutoFit Window.

Word pulls the table back within the printable boundaries, proportionally distributing column widths across the full width of your page.

Quick Right-Click Route

You can also access these resizing options without reaching for the ribbon:

  1. Right-click the four-headed cross icon in the top-left corner of the table.
  2. Hover over AutoFit in the context menu.
  3. Choose either AutoFit to Contents or AutoFit to Window.

Using automated table fitting guarantees clean, printable tables that respect your page margins and maintain professional formatting throughout your document.

Get the best tech tips delivered straight to your inbox.

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