Column Aligner — Align Text into Columns
Pad whitespace, comma or tab separated rows into neatly aligned columns, in your browser.
How to use
- Paste your rows into the input box, one record per line.
- Pick the field delimiter, alignment and column gap.
- Copy the aligned, monospaced output.
About this tool
ShowHide
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
JSON Formatter & Validator
Format, beautify, minify, and validate JSON right in your browser.
Developer
YAML Formatter & Validator
Pretty-print and validate YAML — fix indentation, sort keys, choose line width, catch errors in place.
Developer
XML Formatter & Minifier
Beautify XML with clean indentation or minify it to one line, in your browser.
Developer
Word Wrap — Reflow Text to a Column Width
Hard-wrap text to a fixed line width, breaking at word boundaries, in your browser.
Text
Fixed-Width Text Parser to CSV / JSON
Split fixed-width / fixed-column text into fields by column widths and export as CSV or JSON, in your browser.
Convert
CSV Transpose — Swap Rows and Columns
Transpose CSV data so rows become columns and columns become rows, in your browser.
Text