Text Alignment Formatter - Align Text Left, Right and Center

Text Tools Free to use

Text alignment formatter for plain text and columns

This text alignment formatter pads every line with spaces so the text sits on the left, on the right or in the middle of a fixed width. Use it for README files, terminal output, code comments, receipts, email signatures and anything else shown in a fixed-width font. Choose a width, or let the longest line set it, and long lines can wrap at word breaks. It saves you from counting spaces by hand, which nobody enjoys and everybody gets wrong at least once.

Align columns with a text alignment formatter

Switch to column mode to split every row at a comma, tab, pipe, equals sign or a separator of your own. Each column gets its own alignment, including a decimal alignment that lines up the decimal points of prices and measurements.

How to use Text Alignment Formatter

  1. Paste your text. In column mode, put one row on each line.
  2. Choose Lines or Columns, then the alignment and the width or separator.
  3. Set the options you need, such as wrapping, fill characters, borders or a header row.
  4. Solve the security check and press Align text.
  5. Check the result in the fixed-width box, then copy it or download it.

About Text Alignment Formatter

The tool counts display columns, not code units, so accented letters and combined characters count once and, if you leave the option on, Chinese, Japanese, Korean and most emoji count twice. In line mode a left margin, a fill character and the side that gets an odd spare space are all adjustable. In column mode the separator may be quoted like a CSV, and a pattern such as l r d gives every column its own alignment; the last letter repeats for the remaining columns. A header row gets a line drawn under it.

Purpose of Text Alignment Formatter Tool

Use it to tidy a plain-text table before pasting it into an email or a ticket, to right align a column of prices, to center a title in a terminal banner, to build a Markdown table with the right alignment markers, or to turn an unaligned list into neat columns for a README or a code comment.

Limitations of Text Alignment Formatter

  • Padding with spaces only lines up in a fixed-width font. In a proportional font, such as the one in most chat apps, the columns will not match.
  • Some emoji, rare scripts and combined characters have different widths in different fonts, so a column can be off by one in some apps.
  • Decimal alignment reads the first number in a cell. A single comma followed by exactly three digits is treated as a thousands separator, so check unusual number formats.
  • Column mode splits at every separator, so a comma inside a cell needs double quotes, as in a CSV file. Text over 500,000 characters or 20,000 lines is refused.

Privacy and data

Text Alignment Formatter runs entirely in your browser. What you type or select is processed on your own device and is never sent to or stored on our server. See our Privacy Policy for details.

Frequently asked questions

How do I right align text in plain text?

Choose Right, set a width and press Align text. Each line is padded on the left with spaces until it ends at the width. Paste the result into a fixed-width font to see it lined up.

Can it align the columns of a table or CSV?

Yes. Switch to column mode, pick the separator and press Align text. Each column can be left, right, centered or decimal aligned, with pipe or grid borders, or output as a Markdown or HTML table.

Is the text alignment formatter free and safe to use?

Yes. The text alignment formatter is free to use and runs in your browser, so your text is not uploaded, stored or logged.

How do I center text in plain text?

Choose Center, set a width or use the longest line and align. Spaces are added on both sides. Paste the result into a fixed-width font to see it lined up.

Can I copy the aligned result as HTML or a Markdown table?

Yes. Choose plain text, HTML or Markdown as the output before you copy.

Rate Text Alignment Formatter

No ratings yet. Be the first to rate this tool.

Your rating

Report a bug or give feedback

Tell us about Text Alignment Formatter. The subject of your message will name this tool.