When you apply Justify alignment to text inside a Word table, the last line of a paragraph often stretches across the entire cell width, creating large gaps between words. This happens because Word treats the last line of a justified paragraph in a table cell differently than it does in the main document body. By default, Word stretches the last line of a justified paragraph to fill the cell width unless you change specific paragraph settings. This article explains the cause of this stretching behavior and provides three methods to stop it.
Key Takeaways: Stopping Last-Line Stretch in Table Cells
- Paragraph dialog > Indents and Spacing > General > Alignment > Left: Changes the entire paragraph to left alignment, which stops the last line from stretching but also removes justification from all lines.
- Paragraph dialog > Line and Page Breaks > Formatting exceptions > Don’t expand character spacing on the last line: Keeps justification on all lines except the last line, which remains left-aligned with no extra spacing.
- Ctrl+Shift+J keyboard shortcut: Forces justified alignment that does stretch the last line; use only when you intentionally want full justification inside a table cell.
Why Word Stretches the Last Line in a Justified Table Cell
Word’s justification algorithm works differently inside table cells than in the main document body. In the main document, the last line of a justified paragraph is automatically left-aligned to avoid awkward word spacing. This behavior is controlled by a hidden setting called “Don’t expand character spacing on the last line,” which is enabled by default for body text.
Inside a table cell, however, Word treats each cell as an independent text container with its own paragraph formatting. The “Don’t expand character spacing on the last line” setting is often disabled by default for text inside tables. When you apply Justify alignment to a paragraph inside a table cell, Word stretches every line — including the last one — to fill the cell width. This results in excessive spaces between words on the final line, especially when the line contains only a few words.
The stretching is most noticeable in narrow table columns or when the last line has fewer than five words. Word inserts additional space between characters and words to meet the justified width requirement, which can make the text look unprofessional.
The “Don’t Expand Character Spacing on the Last Line” Setting
This option is located in the Paragraph dialog under the Line and Page Breaks tab. When checked, Word does not add extra spacing to the last line of a justified paragraph. The last line remains left-aligned with natural word spacing. When unchecked — which is the default for table cell text — Word applies full justification to all lines, including the last.
You can verify this by comparing the same paragraph in the main document body and inside a table cell. The main document will show the last line left-aligned, while the table cell will show the last line stretched.
Three Methods to Stop the Last Line From Stretching Inside Tables
Each method changes how Word handles the last line of a justified paragraph inside a table cell. Choose the method that best fits your document’s formatting needs.
Method 1: Enable “Don’t Expand Character Spacing on the Last Line”
- Select the table cell or cells
Click inside the cell that contains the stretched text. To apply the setting to multiple cells, drag your cursor over them or press Ctrl+A while inside the table to select all cells. - Open the Paragraph dialog
Press Alt+H, then P, then G. Alternatively, right-click the selected text and choose Paragraph from the context menu. - Go to the Line and Page Breaks tab
In the Paragraph dialog, click the Line and Page Breaks tab at the top of the window. - Check the setting
Under the Formatting exceptions section, check the box labeled “Don’t expand character spacing on the last line.” - Apply the change
Click OK. The last line in the selected cells will now be left-aligned with normal word spacing, while all other lines remain justified.
Method 2: Change the Paragraph Alignment to Left
- Select the table cells
Click inside the cell or select multiple cells as needed. - Open the Paragraph dialog
Press Alt+H, then P, then G, or right-click and choose Paragraph. - Change the alignment
On the Indents and Spacing tab, locate the Alignment dropdown under the General section. Select Left from the list. - Click OK
The entire paragraph now uses left alignment. No line will be stretched, but you lose justification on all lines.
Method 3: Use a Keyboard Shortcut for Selective Justification
- Select the text you want to justify
Highlight only the lines that should be fully justified. Do not include the last line. - Press Ctrl+J
This applies justified alignment to the selected text. The unselected last line will remain left-aligned, but only if the “Don’t expand character spacing on the last line” setting is enabled globally for that paragraph. - Check the result
If the last line still stretches, enable the setting from Method 1 first, then apply Ctrl+J to the entire paragraph.
If the Last Line Still Stretches After Applying the Fix
Sometimes the setting appears to be checked but the last line still stretches. This can happen for several reasons.
The “Don’t Expand Character Spacing on the Last Line” Setting Is Grayed Out
If the checkbox is grayed out, the paragraph is not set to Justify alignment. Go to the Indents and Spacing tab and change the Alignment to Justified. Then return to the Line and Page Breaks tab and check the setting.
The Setting Is Applied Only to the Current Paragraph
Word applies the setting per paragraph. If you have multiple paragraphs in the same cell, select all of them before opening the Paragraph dialog. Otherwise, only the active paragraph receives the change.
The Table Cell Contains a Manual Line Break (Shift+Enter)
Manual line breaks create a new line within the same paragraph. Word treats that line as the last line of the paragraph and stretches it. Replace manual line breaks with paragraph breaks (Enter) to separate the lines into distinct paragraphs, then apply the setting to each paragraph individually.
Justify Behavior: Main Document vs Table Cell
| Item | Main Document Body | Table Cell |
|---|---|---|
| Default last-line behavior | Left-aligned, no stretch | Fully justified, stretched |
| “Don’t expand character spacing on last line” default | Enabled | Disabled |
| Effect of Justify alignment | All lines except last are justified | All lines including last are justified |
| Keyboard shortcut to apply | Ctrl+J | Ctrl+J |
| Fix for stretched last line | Not needed | Enable “Don’t expand character spacing on the last line” |
Word’s justification behavior inside tables can be controlled with a single paragraph setting. Enable “Don’t expand character spacing on the last line” from the Line and Page Breaks tab to stop the last line from stretching while keeping all other lines justified. For documents with many tables, consider modifying the table style to apply this setting automatically. You can also create a macro that applies the setting to all tables in the document at once.