To fully justify text in Microsoft Word, select the text, then go to Home > Paragraph group and select Justify, or press Ctrl+J. Word adds space between words so each full line touches both the left and right margins.
Your report looks ragged down the right side, and you want every line to run cleanly from margin to margin. These steps are for Word for Microsoft 365 and Word 2016 through 2024 on Windows, with Mac and web notes.
What “Justify the Margins” Actually Means
People often search for “justifying the margins,” but margins themselves don’t get justified. Margins are the blank borders around the page, and you set their size separately. Justification is a paragraph alignment setting: it decides how the text inside those margins lines up.
The Home tab has four alignment buttons. Left alignment (the default for most documents) keeps the left edge straight and leaves the right edge uneven. Right alignment does the opposite, and center alignment balances each line in the middle. Justified alignment makes both edges straight by stretching the space between words on each line. If you actually want wider or narrower borders, you need the margin settings instead, and setting 1-inch margins in Word walks through that part.
One behavior surprises nearly everyone the first time: the last line of a justified paragraph is not stretched. It stays aligned to the left and can end well short of the right margin. That is normal, and it keeps a short final line from being spread into a few words with huge gaps between them.
Justify Text With the Justify Button or Ctrl+J
This is the quickest method and the one Microsoft describes on its alignment help page for Word.
- Open the document and select the text you want to justify. To justify a single paragraph, you can simply click anywhere inside it, because alignment applies to whole paragraphs.
- Select the Home tab on the ribbon.
- In the Paragraph group, select Justify. Its icon shows several lines that are all the same length.
- Check the result. Every full line should now meet both margins, with the final line of each paragraph still ending on the left.
The keyboard shortcut does the same thing: select the text and press Ctrl+J. Microsoft’s keyboard shortcut list pairs it with the other alignment keys, which are handy for switching back: Ctrl+L aligns left, Ctrl+E centers and Ctrl+R aligns right.
Justify the Whole Document or Just One Section
To justify everything at once, press Ctrl+A to select all the document content, then select Justify or press Ctrl+J. This is fast, but it also justifies headings, short list items and table text, which usually look worse stretched. A common approach is to justify everything and then click into each heading and press Ctrl+L or Ctrl+E to return it to its original alignment.
For a long document, changing the style is cleaner. Body text in most documents uses the Normal style, so justifying that style updates every paragraph that uses it while leaving headings (which use Heading styles) alone.
- On the Home tab, right-click Normal in the Styles gallery and choose Modify.
- In the Formatting section of the Modify Style dialog box, select the justify alignment button.
- Leave the change for this document only, or select New documents based on this template if you want justified body text in every new document.
- Select OK.
Be careful with the template option. Some other styles are based on Normal, so text that uses them, such as captions, may become justified too. If you only need one report justified, keep the change to the current document.
Use the Paragraph Dialog Box Instead
The Paragraph dialog box is useful when you are already adjusting indents or spacing and want to set alignment in the same place.
- Select the paragraphs.
- On the Home tab, select the small arrow in the bottom-right corner of the Paragraph group to open the Paragraph dialog box.
- On the Indents and Spacing tab, open the Alignment drop-down menu and choose the justified setting.
- Select OK.
Fix Big Gaps Between Words
Justified text gets its straight right edge by widening the spaces on each line. When a line contains only a few long words, those spaces can grow into obvious gaps, and stacked gaps can form white channels running down the paragraph. These fixes help, roughly in order of how much difference they make.
Turn On Hyphenation
Hyphenation lets Word split a long word across two lines, so each line can hold more text and needs less stretching. Microsoft’s hyphenation instructions cover three choices:
- Select the Layout tab (older Word versions call it Page Layout).
- Select the arrow next to Hyphenation.
- Choose Automatic to let Word hyphenate as you type, or Manual to review each suggested hyphen and accept or reject it.
- If you see hyphens ending line after line, open Hyphenation Options and type a number in the Limit consecutive hyphens box, such as 2, then select OK.
To keep a particular paragraph (a title or a name, for example) from being hyphenated, select it, open the Paragraph dialog box, go to the Line and Page Breaks tab and check Don’t hyphenate.
Replace Manual Line Breaks
If one line in the middle of a paragraph is spread out with enormous gaps, look for a manual line break. Pressing Shift+Enter inserts a line break without ending the paragraph, so Word treats that short line as an ordinary line and stretches it to full width. Microsoft’s developer documentation even lists a compatibility setting described as “Do not expand character spaces on the line ending Shift+Return,” which shows that Word expands those lines by default.
The fix is simple. Press Ctrl+Shift+8 to show nonprinting characters, find the bent-arrow line break symbol at the end of the stretched line, delete it, and press Enter instead if you want the text to start a new paragraph. Press Ctrl+Shift+8 again to hide the marks.
Give the Lines More Room
Narrow lines have fewer spaces to share the extra width, so gaps show up most in narrow columns, text boxes and documents with large fonts. Slightly smaller text, slightly narrower margins or fewer columns can all reduce the gaps. Spacing problems between lines (rather than between words) are a separate setting, and the fixes in Word line spacing that looks too big apply there.
A Worked Example
Tobias has a two-column newsletter with 11-point text and a paragraph that reads “International telecommunications infrastructure investments increased.” In a narrow column, each line holds only two or three of those long words, so justification leaves wide holes. Turning on Automatic hyphenation lets “telecommunications” break across lines, and the holes shrink. If one line still looks wrong, Tobias shows the formatting marks and finds a Shift+Enter break he typed while pasting text from an email.
Justify Text Vertically on the Page
Word can also spread paragraphs from the top of the page to the bottom. This is vertical alignment, and it is a page setting rather than a paragraph setting. Microsoft’s Page Setup layout options page says the Vertical alignment setting places paragraphs at the top, middle (Center) or bottom of the page, and that an additional setting, Justified, spaces paragraphs evenly down the page.
- Select the Layout tab and open the Page Setup dialog box with the small arrow in the corner of the Page Setup group.
- Select the Layout tab inside the dialog box.
- In the Vertical alignment box, choose Justified.
- Select OK.
Vertical justification has no visible effect on a page that is already full of text, because there is no spare space to distribute. It is most useful on a title page or a short final page. If what you want is a title centered in the middle of the page, see centering text horizontally and vertically in Word.
Justified Text in Word for Mac and Word for the Web
In Word for Mac, the button has a slightly different name. Microsoft’s Mac alignment page says to select the text, go to the Home tab and, in the Paragraph group, select Justify Text. As on Windows, the last line of the paragraph stays aligned to the left.
Word for the web is more limited. Microsoft’s page on browser and desktop differences lists only left, right and centered paragraph alignment for Word for the web. If you can’t find a justify option in the browser, open the document in the Word desktop app, justify it there and save. The formatting stays in the file.
When Justified Text Isn’t the Best Choice
Justification suits long paragraphs in reports, books and wide single-column layouts. It tends to look worse in these places:
- Short paragraphs of one or two lines, where most lines are either stretched or are the unstretched last line.
- Narrow columns, text boxes and table cells, where gaps appear on almost every line.
- Bulleted lists and resumes, which are scanned rather than read and look more orderly left-aligned.
- Documents with formatting rules, such as a school paper or a submission with a required style. Check the guidelines first, since many specify left alignment.
Undo or Remove Justification
Right after justifying, press Ctrl+Z to undo the change. Later on, select the paragraphs and press Ctrl+L or select Align Left on the Home tab to return to left alignment. If you justified the Normal style, modify the style again and select the left alignment button. Pressing Ctrl+Q removes all direct paragraph formatting from the selection, which also resets indents and spacing you set by hand, so use it only if you want that clean slate.
Justified Text Questions
Why didn’t the last line of my paragraph stretch?
Word leaves the final line of a justified paragraph left-aligned on purpose. If you want a single line, like a heading, to fill the full width, justification won’t do it; the line has to be followed by a manual line break, which usually looks awkward. Centering is normally the better choice for headings.
Does justifying text change my page count?
Justification alone doesn’t add or remove words from a line, so page count rarely changes. Turning on hyphenation can pull a little text back onto earlier lines, which may shorten a long document slightly.
Can I justify text inside a table cell or text box?
Yes. Click inside the cell or text box and press Ctrl+J. Because those areas are narrow, expect larger gaps and consider turning on hyphenation or leaving that text left-aligned.
Will justified text stay justified when I share the file?
Alignment is saved with the document, so anyone opening it in desktop Word sees the same layout. Line endings can shift slightly if the other computer substitutes a missing font, which can move gaps around.
Next, if you are tidying a whole document, check your margins and line spacing at the same time, since both change how justified paragraphs look on the page.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.