Skip to content

Align text into columns

Line up separator-delimited text into neat columns by padding every cell to the widest one.

Input
Output

Align text into columns

Paste lines of separator-delimited text — comma, tab, pipe, or any character you choose — and this tool lines up every column so the data reads cleanly, no matter how uneven the original values are. It measures the widest cell in each column and pads every other cell to match, so the second, third and later fields all start at the same horizontal position.

Set the separator to whatever splits your data, or leave it blank to split on runs of whitespace instead, useful for text that is already loosely spaced. Choose how each column aligns: left for names and labels, right for whole numbers, or decimal point for a mix of prices and measurements where the digits and decimals should stack correctly. Control the gap between columns with the spacing option, and pick whether padding uses plain spaces or a dotted leader, handy for menus or tables of contents. Turn on the ASCII table option to wrap the result in a bordered grid with +, - and | characters instead of plain padding.

Rows with fewer fields than the widest row are handled gracefully — missing cells are treated as empty. The keep empty cells option controls what happens when your separator appears twice in a row: on by default, so a blank field between two commas stays a real column instead of silently shifting every later value left. Both CRLF and LF line endings are accepted, and pathologically wide input is capped rather than allowed to freeze the tab.

Everything runs locally in your browser — nothing you paste is uploaded anywhere. Copy the aligned result, download it as a .txt file, or send it straight back into the input to apply another tool on top.

FAQ

What separators can I use?
Any single character or string — comma, semicolon, pipe, a tab, or a custom string. Leave the field empty and the tool splits on runs of whitespace instead, which works well for text that already uses uneven spacing.
How does decimal-point alignment work?
The tool finds the widest whole-number part and the widest fractional part in the column, then pads each cell so every decimal point lines up vertically, even when some rows have no decimal point at all.
What happens to rows with a different number of fields?
Missing cells at the end of a shorter row are treated as empty and padded like any other column, so every line still lines up under the longest row.
Can I output an ASCII table instead of plain padded columns?
Yes. Turn on "Border as ASCII table" to wrap the result in a bordered grid with + - and | characters, in addition to the column alignment.
Is my text uploaded anywhere?
No. Column alignment runs entirely in your browser — your text never leaves your device.