Skip to content

Right Align Text

Push every line to the right edge of a set width.

Quick Tool Overview

Right Align Text pads each line with leading spaces until its last character sits at the width you set. A decimal alignment mode places the decimal point at a fixed column instead, which is what actually makes a column of currency figures line up.

What it does
Right aligns lines to a set width
You give it
A receipt, signature or column of numbers
You get back
The text flush against the right margin
Best for
Receipts, number columns and ASCII layouts
Text Tools Free, unlimited use No sign-up Runs in your browser

About the Right Align Text

Right alignment in plain text is niche but genuinely useful where it applies: a receipt where the amounts have to line up, an email signature that sits against the right margin, a column of numbers in a code comment, or an ASCII layout where the labels are on the left and the values on the right.

Each line is padded with leading spaces until its last character sits at the width you set. Because numbers are the most common case, there is a mode that aligns on the decimal point rather than the line end, which is what makes a column of currency figures readable. Blank lines are left blank, and lines already longer than the width are reported rather than quietly overflowing.

Key features of the Right Align Text

Decimal point alignment

Aligns 9.99 and 124.50 on the point rather than the line end, which plain right alignment gets wrong.

Leading spaces only

No trailing whitespace is added, so nothing invisible is left at the end of a line.

Overlong lines reported

A line wider than the target is left intact and flagged rather than truncated or silently overflowing.

Blank lines preserved

Empty lines stay empty instead of becoming a run of padding spaces.

Works on any block

A two-line signature or a two-hundred-row receipt align the same way.

How to use the Right Align Text

  1. 1

    Paste your text

    A receipt, a signature, a column of numbers or any block of lines.

  2. 2

    Set the width

    The column the last character of each line should end at.

  3. 3

    Choose decimal alignment for numbers

    Align on the decimal point so a column of currency figures lines up properly.

  4. 4

    Copy into a monospaced context

    The alignment is made of real spaces and holds wherever a monospaced font is used.

Frequently asked questions

Instead of aligning the end of each line, the decimal point of the number on it is placed at a fixed column. That is what makes 9.99 and 124.50 line up in a way that plain right alignment does not when the numbers have different decimal lengths.

Reviews of the Right Align Text

What people who use the Right Align Text 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 Right Align Text. It takes half a minute and no account.

Write the first review

More text tools