— Right Align Text

Right Align Text Tool

Quick Tips

  • This tool runs entirely in your browser - your data stays private.
  • Press Ctrl+V (Cmd+V on Mac) to quickly paste text.
  • Use the Copy button to save your result to clipboard.
  • Bookmark this page for quick access!

Pad text to align against a right margin in plain text.

Examples

Input
Hello
World
Test
Output
     Hello
     World
      Test
Input
Short
Much longer line
Medium
Output
           Short
Much longer line
          Medium
Input
$10.00
$5.50
$123.45
Output
  $10.00
   $5.50
$123.45

Frequently Asked Questions

Email clients often use proportional fonts where characters have different widths. Right alignment with spaces only works in monospaced fonts. Try pasting your text in a code block or use an email client that supports preformatted text.

Common choices are 80 characters (classic terminal width), 120 characters (modern wide terminals), or match your document's existing width. For code comments, use your team's line length standard (often 80 or 100 characters).

Process only the lines you want right-aligned, then manually combine them with your left-aligned content. Some layouts benefit from mixing alignments, especially in multi-column text or headers versus body content.

For decimal alignment, ensure all numbers have the same decimal places (add trailing zeros if needed), then right-align. Since all numbers will have equal characters after the decimal, the points will align perfectly.

Basic right alignment works with most Unicode text, but some characters (emojis, combining characters, CJK characters) may have different display widths than their character count suggests, potentially affecting alignment.

Cookie Preferences

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.

Cookie Preferences

Manage your cookie settings

Essential Cookies
Always Active

These cookies are necessary for the website to function and cannot be switched off. They are usually set in response to actions made by you such as setting your privacy preferences or logging in.

Functional Cookies

These cookies enable enhanced functionality and personalization, such as remembering your preferences, theme settings, and form data.

Analytics Cookies

These cookies allow us to count visits and traffic sources so we can measure and improve site performance. All data is aggregated and anonymous.

Google Analytics _ga, _gid

Learn more about our Cookie Policy