Justify text instantly by stretching the spaces between words so every line lines up evenly on both the left and right edges, just like justified text in Microsoft Word or a printed newspaper column. Set your target line width and each existing line is padded with extra spaces distributed evenly between words. All justification happens instantly in your browserânothing is uploaded.
The Justify Text Tool lets you justify text online so every line aligns perfectly on both the left and right edgesâexactly like the justified text alignment used in Microsoft Word, InDesign, or printed newspaper columns. Instead of rewrapping your paragraphs, the tool takes each existing line exactly as you typed it and stretches the spacing between words until the line reaches your chosen width.
This is the same word-spacing logic used in classic "text justification" algorithms (similar to LeetCode's text justification problem). For every line:
Example (line width = 20):
Input: This is an example
Output: This is an example
Example (line width = 24):
Input: Hello world foo
Output: Hello world foo
Line width: The exact character count each eligible line will be stretched to, from 20 up to 200. Lines shorter than this width are justified; lines already at or past this width, blank lines, and lines with only one word are left unchanged, since there are no gaps to stretch.