Text Alignment and Justification Tool

Wrap plain-text paragraphs to a chosen width, then align them left, right, center or with full justification.

On-device No sign-up Free to use

Align text controls

Showing an example. Edit to see your own.

?

Up to 1,000,000 characters. Consecutive nonblank lines become one paragraph; every blank line is kept exactly as entered.

?

Counted in Unicode code points from 10 to 200, not in screen pixels or glyph widths.

?

Justified spreads the space between words on interior lines and leaves each paragraph final line left aligned.

?

When selected, long words split at code-point boundaries. Combining marks and emoji sequences may not stay visually joined.

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

Wrap two paragraphs at 72 code points with left alignment.

Aligned 3 lines across 2 paragraphs to 72 code points with left alignment.

Loading the tool. Your result will appear here.

https://usefreetools.net/text-alignment-justification · 20 November 2026

Was this helpful?

How to use Text Alignment and Justification Tool

  1. Paste the paragraphs and set a width from 10 to 200 Unicode code points.
  2. Choose left, right, center or full justification.
  3. Choose whether words longer than the width may split.
  4. Inspect the aligned text in a monospace view before copying it.

Example: Text Alignment and Justification Tool

Wrap two paragraphs at 72 code points with left alignment.

You add
Text: "Alignment controls where the extra space in a line goes.\n\nA justified paragraph spreads the space between its words and keeps the final line left aligned." Line width: "72" Alignment: "left" Split words longer than the width: false
You get
Aligned 3 lines across 2 paragraphs to 72 code points with left alignment.

Options

Width
Width counts Unicode code points. It does not measure proportional fonts, terminal cells or complete emoji sequences.
Justification
Full justification distributes spaces on interior lines and keeps the paragraph’s final line left aligned. Splitting long words is a separate choice.

Supported inputs and limits

  • Up to 1,000,000 input characters and widths of 10–200 code points.
  • Blank-line paragraph boundaries remain; line endings become LF.
  • Full justification adds spaces to interior lines and leaves the final line left aligned.
  • Code-point counts are not display-cell widths: tabs, combining characters, emoji and proportional fonts can look different.
  • Left-aligned and narrow-column presets set related fields together; the existing alignment choices remain available.

Where your input is processed

This tool does not upload your inputs. See the limits for anything saved on your device.

Alignment inserts real spaces and line breaks

This changes the plain text rather than an editor’s display setting. Blank lines separate paragraphs; wrapping can join original single line breaks. Review the result in a monospace view before replacing a file whose spacing carries meaning.

Questions about Text Alignment and Justification Tool

Why does the aligned result change in a proportional font?

This tool counts code points and inserts ordinary spaces. A proportional font gives letters different visual widths. Use a monospace view for the intended arrangement.

Is the last line of a justified paragraph stretched?

No. Only interior lines receive extra spaces; the final line remains left aligned.

What happens to a word longer than my width?

The long-word option determines whether it is split. Check the result, especially for URLs or identifiers that should stay together.

Page updated · Project managed by Tony Hines · Report a problem with Text Alignment and Justification Tool

Related reading

All guides