Skip to content
AZ Tools

Column Aligner — Align Text into Columns

Pad whitespace, comma or tab separated rows into neatly aligned columns, in your browser.

Aligned output

How to use

  1. Paste your rows into the input box, one record per line.
  2. Pick the field delimiter, alignment and column gap.
  3. Copy the aligned, monospaced output.

About this tool

Show

Paste rows of data and pad their fields into clean, evenly spaced columns, the way the Unix column -t command does, without leaving the browser. Choose whether fields are split on runs of whitespace, on commas, or on tabs, align the text left or right, and set the gap between columns. Rows of differing length and blank lines are kept as they are rather than being padded out to match, and no trailing spaces are added at the end of a line, so the result stays clean under a diff. One limit to know: widths are counted in characters, not in display cells, so a column of CJK text or emoji — which occupy two cells in a terminal — will not line up the way plain ASCII does. Everything runs locally; nothing is uploaded.

Frequently asked questions

What delimiters are supported?

Whitespace (any run of spaces or tabs), commas, or tabs. With whitespace, leading and trailing spaces are ignored and runs collapse to a single split point.

Does it add trailing spaces?

No. Each line is padded only as needed for alignment, and trailing padding at the end of every line is trimmed.

What about rows with different numbers of fields?

They are handled fine. Column widths are computed across all rows, and shorter rows simply stop after their last field.

Is my data sent anywhere?

No. Alignment happens entirely in your browser; nothing is uploaded.

My Korean and Japanese columns do not line up. Why?

Widths are counted in characters, but a CJK character occupies two cells in a monospace terminal, so a column of them ends up twice as wide as the padding assumes. Latin text and digits align exactly; mixed-script columns will need manual nudging or a tool that measures display width.

Does whitespace mode preserve my indentation?

No — splitting on runs of whitespace treats a leading indent as a separator, so indented blocks are flattened into the first column. Use the comma or tab delimiter when the leading space carries meaning, as it does in YAML or Python.

Related tools