AI Tools Free

Text Column Aligner

Paste ragged CSV, TSV, pipe, or space-separated lines to align every column to its exact maximum character width with left, right, center, or smart numeric alignment.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Align Text Columns.

Select how columns are separated in your raw input text.

Choose how cells should be padded inside each column width.

Character sequence inserted between aligned columns.

Paste unaligned CSV, TSV, or space-separated rows.

Your result
Enter your details

Result will appear here

How the Text Column Aligner Works

The aligner parses each non-empty line using your delimiter, computes the maximum glyph length per column index, and pads every cell to match its column's width.

Width[j] = max(len(row[i][j]) for all i); RowOut[i] = join(pad(row[i][j], Width[j]), sep).

Automatically detects whether a column contains numeric/percentage values when Smart Align is selected.

Text Column Aligner workflow overview
Workflow overview for Text Column Aligner.

Column Alignment Modes & Separator Reference Table

Compare alignment modes and separator styles for plain-text logs, code comments, and CLI tables.

Alignment / ModePadding BehaviorCLI EquivalentBest Use Case
Smart Align (Auto Numeric)Text left-padded; numbers right-paddedcolumn -t --table-right <num_cols>Log tables mixing service names with latency/memory metrics.
Left-Align AllTrailing spaces appended to ColWidth_jcolumn -t -s ','Directory listings, config key-value tables, and TSV dumps.
Right-Align AllLeading spaces prepended to ColWidth_jprintf '%*s'Numeric matrices and aligned financial ledgers.
Pipe Output ( | )Columns joined by ' | 'column -t -o ' | 'ASCII documentation tables and SQL console style output.

How to Align Delimited Text into Columns

Format any messy text table in three steps.

Paste your CSV, TSV, or space-separated text

Paste your raw rows into the workspace textarea.

Text Column Aligner step 1: Paste your CSV, TSV, or space-separated text
Step 1 workflow overview for Text Column Aligner.

Select Input delimiter and Column alignment mode

Keep Input field delimiter on Auto-detect or specify Comma, Tab, Pipe, or Whitespace.

Text Column Aligner step 2: Select Input delimiter and Column alignment mode
Step 2 workflow overview for Text Column Aligner.

Choose Output separator and copy the aligned table

Click Align Text Columns to generate the monospace-aligned output and per-column width summary.

Text Column Aligner step 3: Choose Output separator and copy the aligned table
Step 3 workflow overview for Text Column Aligner.

Worked Text Column Alignment Examples

See how ragged CSV and CLI outputs snap into aligned columns.

Aligning a 4-column DevOps latency CSV with Smart Numeric alignment

Flushes service names and regions to the left while right-aligning Latency_ms (14.2, 38.7, 62.0) and Uptime_pct.

Text Column Aligner example 1: Aligning a 4-column DevOps latency CSV with Smart Numeric alignment
Worked example 1 for Text Column Aligner.

Formatting tab-separated spreadsheet exports for README files

Converts uneven tab stops into deterministic 2-space or 4-space padded columns that render identically across all editors.

Text Column Aligner example 2: Formatting tab-separated spreadsheet exports for README files
Worked example 2 for Text Column Aligner.

Beautifying pipe-delimited logs

Normalizes inconsistent spacing around '|' characters into uniform ' | ' column dividers.

Text Column Aligner example 3: Beautifying pipe-delimited logs
Worked example 3 for Text Column Aligner.

Reading the Column Width Audit

Alongside the aligned table, the tool reports the row count, column count, and character width of each column.

Use the total line width metric to confirm your aligned table fits inside an 80-character or 120-character terminal window.

Copy the aligned block directly into source-code comments, Markdown code fences, or plain-text emails.

How to interpret Text Column Aligner results
Result interpretation guide for Text Column Aligner.

Monospace Font Requirement

Character-padded tables require a fixed-width font for visual alignment.

Always display the aligned output inside a monospace font (`<pre>`, `<code>`, or a code editor) where every character occupies the same horizontal advance width.

At least one non-empty line is required.

Scope limits and assumptions for Text Column Aligner
Assumptions and input boundaries for Text Column Aligner.

Frequently Asked Questions About Text Column Alignment

Answers about using Text Column Aligner and understanding its results.

How does Text Column Aligner compare to the Linux 'column -t' command?

Like 'column -t -s ,', this tool measures the maximum character width of each column across all rows and pads shorter cells with spaces so every column lines up vertically in monospace fonts, while adding smart right-alignment for numeric columns.

What does Smart Align (Left-align text, Right-align numbers) do?

In financial and engineering tables, text labels read best flushed left while numbers, currency values, and percentages read best flushed right so decimal points and ones-places align vertically.

Can I align pipe-delimited Markdown or SQL output?

Yes. Choose Auto-detect or Pipe (|) as the input delimiter and 'Pipe with spaces ( | )' as the output separator to neaten ragged pipe tables.

What happens if rows have uneven column counts?

Missing trailing cells in shorter rows are automatically padded to match the widest row's column count so subsequent columns never shift out of alignment.

Try your own values

Choose another tool for your next calculation, conversion, or text task.

Align Text Columns