๐Ÿ  Home ๐Ÿงฎ Calculators โœ๏ธ Text Tools
โžก Right Align

Right Align Text

Right-justify every line to a fixed column width. Pad each line with spaces, zeros or custom characters to align to the right margin.

Column width
chars
Pad character
Quick pads
Lines: 0 Width used: โ€” Chars padded: 0
Input
Output โ€” Right Aligned โžก

What does right align text do?

Right aligning pads each line on the left with a fill character (space by default) until it reaches the column width you set. This creates a flush right margin โ€” every line ends at the same column.

๐Ÿ“Š Tables & reports

Align numeric columns in fixed-width reports so decimal points and digits line up correctly โ€” essential for financial data.

๐Ÿ–ฅ๏ธ Terminal output

Format terminal/CLI output with right-aligned labels and values for clean, scannable command-line tables.

๐Ÿ”ข Numeric padding

Pad numbers with leading zeros (e.g. 007, 042) for fixed-width number fields in databases and data files.

๐Ÿ“ Headers & titles

Right-align section titles or headers to create visual interest in plain text documents and READMEs.

Frequently asked questions

Right aligning pads each line with spaces (or your chosen character) on the left until all lines end at the same column position. The column width is configurable and can be set automatically to the longest line.
Paste your text, set the column width, and the output updates instantly. Each line shorter than the width is padded on the left. Lines already at or over the width are not changed.
Any single character. Use space for standard right-alignment, 0 for zero-padded numbers, dot (.) for table leaders, dash (-) for separator effects, or type any custom character in the pad field.
When auto-width is enabled, the tool automatically sets the column width equal to the length of the longest line in your input. All shorter lines are then padded to match that width.
Related tools