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.
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.
Align numeric columns in fixed-width reports so decimal points and digits line up correctly โ essential for financial data.
Format terminal/CLI output with right-aligned labels and values for clean, scannable command-line tables.
Pad numbers with leading zeros (e.g. 007, 042) for fixed-width number fields in databases and data files.
Right-align section titles or headers to create visual interest in plain text documents and READMEs.