Skip to content

Text Alignment Tool

Align text left, right, centre or justified with real spacing.

Quick Tool Overview

The Text Alignment Tool aligns plain text left, right, centre or justified by padding with real space characters, so the layout survives being pasted anywhere a monospaced font is used — a terminal, a code comment, a README or a plain-text email.

What it does
Aligns plain text using real spaces
You give it
Text and a target character width
You get back
The text padded to sit left, right, centred or justified
Best for
Terminals, README files, code comments and signatures
Text Tools Free, unlimited use No sign-up Runs in your browser

About the Text Alignment Tool

In a word processor, alignment is a formatting attribute. In plain text — an email signature, a terminal banner, a code comment, a README — there is no formatting, so alignment has to be built out of actual space characters.

That is what this does. Set a width and choose left, right, centre or justified, and each line is padded with real spaces to sit where you want it. Because the spacing is genuine characters, the result holds its shape anywhere it is pasted, as long as the display uses a monospaced font. Justified alignment distributes the extra space between words rather than bunching it at one end, which is the same thing a typesetter does.

Key features of the Text Alignment Tool

All four alignments

Left, right, centre and full justification in one tool rather than four.

Proper justification

Space is distributed between words rather than bunched at one end, and the last line of a paragraph is left alone.

No trailing whitespace

Right and centre alignment pad on the left, so no invisible spaces are left at line ends.

Overlong lines flagged

Lines wider than your target are reported rather than silently breaking the alignment.

Says where it works

The page is explicit that space-based alignment holds only in a monospaced font.

How to use the Text Alignment Tool

  1. 1

    Paste your text

    An email signature, a banner, a comment block or a plain-text document.

  2. 2

    Set the width

    The number of characters each line should occupy — usually the width of the display it is going into.

  3. 3

    Choose the alignment

    Left, right, centre or justified. Justified spreads the extra space between words.

  4. 4

    Copy into a monospaced context

    The alignment is built from real spaces, so it holds anywhere a monospaced font is used.

Frequently asked questions

Almost certainly because the destination uses a proportional font, where characters have different widths. Space-based alignment only holds in a monospaced font — a terminal, a code editor or a plain-text email.

Reviews of the Text Alignment Tool

What people who use the Text Alignment Tool think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Text Alignment Tool. It takes half a minute and no account.

Write the first review

More text tools