Toolstia / Text alignment tool

Text alignment tool

Wrap plain text to a fixed line width and align it left, right, centred or justified. The result is padded with spaces so it lines up in any monospaced display, such as a terminal, a README or a plain text email.

Lines wrap at the width you choose. Paragraph breaks are kept. The result lines up in a monospaced font.

How it works

  1. Choose the alignment and the line width.
  2. Paste your text.
  3. Copy the aligned result.

Wrapping

Words are moved to the next line when they would pass the width. A word longer than the line is split.

Justified text

Extra spaces are shared between the words so every line except the last reaches the full width.

Paragraphs

Blank lines are kept, so paragraphs stay separate.

Monospaced fonts

Alignment is made with spaces, so it is only exact in a monospaced font.

Questions

Can I align a single line?

Yes. A short line is simply padded to the width. Everything happens in your browser, and nothing you enter is sent anywhere.

What is the maximum width?

Up to 200 characters.

Will it join my paragraphs?

No. Each paragraph is wrapped on its own.