Align text into clean columns
The text column formatter takes delimited rows — separated by a pipe, comma, semicolon, or tab — and pads each field so the columns line up perfectly in a monospace layout. It is handy for tidying ASCII tables in README files, aligning trailing code comments, and cleaning up command-line output.
How it works
The tool splits every line on your chosen delimiter and trims each field. It then measures the longest value in each column and sets that as the column width. Each value is padded with spaces to its column width — appended for left alignment, prepended for right alignment — and the columns are joined with the gap you specify (minimum one space). Trailing spaces on each line are stripped. Because alignment relies on every character having equal width, the output is shown in a monospace font.
Example
With the delimiter |, left alignment and a 1-space gap, this input:
Name | Role | City
Ada | Engineer | London
Lin | Designer | Berlin
becomes:
Name Role City
Ada Engineer London
Lin Designer Berlin
Each column is widened to its longest value (Engineer sets the second column’s width), so everything lines up. Everything runs in your browser; nothing is uploaded.