Align every line to a fixed column width with left, right, or centre padding. Add optional borders for code comment blocks or README tables.
Fixed-width columns appear in README files, terminal output, preformatted email bodies, and code comment blocks — anywhere a monospace context demands that every line land at exactly the same length. Column / Fixed-Width Text Formatter takes any pasted text and aligns each line to a precise character width, padding short lines with your chosen fill character and optionally truncating lines that overshoot the target.
Six quick-pick presets cover the widths that come up most often: 40, 60, 72, 80, 100, and 120 characters. Type any value up to 300 for custom layouts. Left, right, and centre alignment work independently on each line, and optional left and right border strings let you frame the output in a single pass rather than editing every row by hand.
Click Load Sample to fill the input with a prose passage and set the column to 60, alignment to left. Switch alignment to Centre and the output redistributes padding symmetrically around each line: a 30-character sentence gains 15 spaces on each side to reach 60 characters total. The stats bar above the output reads uniform width once every line is exactly 60 characters — if any line overruns (source line longer than 60), the stats bar shows the actual maximum instead, which is the signal to turn on Truncate long lines.
· or - to make alignment visible in output that will be inspected rather than published.│ and right to │ produces a box-drawing frame; setting left to // produces a comment block for pasting into code.│ (2 chars) and right border of │ (2 chars) add 4 characters to every line, so a 60-column setting with those borders produces 64-character output lines. The stats bar reports the actual rendered length.1 line · 0 characters
Options
Alignment
Truncate long lines
Each input line is padded or trimmed independently to exactly the column width. Blank lines become a row of fill characters (usually spaces), preserving paragraph breaks in the output.
For monospaced code comments, try left border // with no right border and width 76 — the output pastes straight into a 79-char terminal column.