Friday, November 6, 2026 · Asia/KarachiFree tools · No signup · Runs in your browser

Justify Text Tool

The justify tool packs words into lines of a width you set, from 20 to 80 characters, and spreads extra spaces between the words so every line but the last reaches that width. The sample sentence at width 24 becomes three lines. The last line is not stretched.

New

The spaces are ordinary spaces. There is no special justify character.

How to use

  1. Paste the words and set a width from 20 to 80.
  2. Press Justify. The last line stays ragged.
  3. Reset restores the crate sentence at width 24.

Formula / how it works

Packing. Words are split on whitespace. A word longer than the width is an error, because it cannot sit on a line. Words are added until the next word would pass the width. The line is then padded. The extra spaces are shared across the gaps, one base amount each, and the remainder goes to the leftmost gaps. A line with one word is not padded. The last line is flushed without padding, which is how justified paragraphs usually look. Width 24 on the crate sentence produces three lines and says so. Width 40 on “One two three” may be a single ragged line if the words already fit, and the last-line rule still applies because that line is the last.

What you see. The width is printed so a screenshot records it. The lines use spaces only. A font that is not monospaced will not look even, because a wide letter and a narrow letter take different room while the tool counts characters. Use a monospaced font if you need the right edge to line up. This is not a word processor. It does not hyphenate.

Limits. 20 to 80. Two thousand characters of input. No paragraph indent. If you needed hyphenation, do it before you paste, and keep each piece shorter than the width.

Count a line in a monospaced view if the edge looks wrong in a proportional font. The tool’s width is characters, not pixels. A line that the tool calls 24 characters can look shorter when it is full of i and l. That is the font. The last line is short on purpose. Do not pad it by hand and then call the result the tool’s output. Press Justify again after you change the width. The form does not reflow as you type.

A measure of 24 characters is narrow, which is why the sample breaks into three lines. A measure of 40 on three short words does not break at all, and the single line is still the last line, so it is not padded out to 40. That surprises people who expect every line, including a short one, to stretch. Stretching a two-word line across 40 characters would put a huge gap in the middle. The tool refuses that look by leaving the last line, and any one-word line, alone. If you need a stretched short line, you are not looking for paragraph justification. You are looking for a manual gap. Type the spaces yourself. The tool’s job is the ordinary paragraph rule.

The crate sentence is long enough to wrap at 24 and short enough to read. One two three is the opposite: too short to wrap at 40. Use both when you are learning the last-line rule. The wrapped sample shows padding. The short sample shows a line left alone. If your own paragraph does neither, the width is probably larger than the paragraph or a single word exceeds it. The error for a long word names the start of that word so you can hyphenate it and try again.

Worked examples

The crate sentence at 24

Inputs: Text: Pack the small crate before noon and label every side. | Width: 24

Leave the sentence and set the width to 24, then press Justify. There are 3 lines.

Result: Width: 24 Pack the small crate before noon and label every side. Lines: 3 The last line is not stretched. Spaces are ordinary spaces.

Three short words at 40

Inputs: Text: One two three | Width: 40

Paste One two three and set the width to 40, then press Justify. The width line says 40.

Result: Width: 40 One two three Lines: 1 The last line is not stretched. Spaces are ordinary spaces.

Use cases

  • A monospaced note with a straight right edge.
  • Seeing that the last line stays short.
  • Rejecting a word longer than the width.
  • Checking a 24-character measure.

Tips & limitations

  • Use a monospaced font to judge the edge.
  • The last line is not stretched.
  • Widths stay between 20 and 80.
  • Hyphenate long words yourself before you paste.

FAQ

Why is the last line short?

It is not padded. Only the lines before it are stretched to the width.

Why does the edge look uneven in the browser?

The width counts characters. A proportional font draws those characters at different widths.

What if one word is longer than the width?

The tool stops. It does not hyphenate.

Are the pads special spaces?

No. They are ordinary spaces, extra of them in the gaps.

Can the width be 100?

No. The range is 20 to 80.

Is the text uploaded?

No. The lines are built in the browser.

Runs entirely in your browser; your text is not uploaded. Counts and scores are heuristics, so review the output before you publish it.