Justify Text Online
Full-justify plain text to a fixed width by spacing out words.
Text Tools Runs in your browser
How do you justify text?
Full justification pads the gaps between words until every line hits the target width of 80 columns. The padding is spread as evenly as the line allows, with any remainder dropped into the left-most gaps first. Final lines of paragraphs stay ragged, the same convention print typesetting uses, and the straight edges only show up when you view the result in a monospace font.
How to use the Justify Text
- 1 Enter the paragraphs you want block-justified.
- 2 Word gaps on each line widen until the text meets the 80-column edge.
- 3 Last lines of paragraphs stay ragged, as in print.
- 4 View or paste the output in a monospace font so the edges align.
What you can use it for
- Creating block-justified plain-text paragraphs.
- Formatting monospace documentation evenly.
- Aligning text columns in terminals.
- Producing tidy fixed-width email or notes.
Frequently asked questions
How are the extra spaces distributed?
The shortfall to 80 columns is divided by the number of word gaps on the line. Any remainder goes to the gaps nearest the left margin, which is why left-side gaps sometimes look one space wider.
Why is the last line not justified?
Stretching a three-word closing line across 80 columns would leave gaping holes. Typesetters leave the final line of a paragraph ragged for exactly that reason, and this tool copies the convention.
Does justification need a monospace font?
Yes, for the effect to be visible. Proportional fonts give characters different widths, so counted spaces no longer produce straight edges. The output pane is monospaced already.
Related tools
More Text Tools
More tools like this:
All Text Tools