Markdown Table Formatter
Format a single Markdown pipe table with consistent delimiters and optional column alignment. Escaped pipes and inline-code spans are kept inside cells; ragged rows are padded. This is a table formatter, not a full Markdown parser.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What the Markdown Table Formatter does
Paste one pipe table and it normalises every row to the same column count, trims cell whitespace, rebuilds the separator from your alignment markers and pads cells to the widest content, outputting a GFM pipe table in the markdown language slot.
When to format a table here
Reach for it when a pasted or generated table has ragged rows, uneven delimiters or missing padding and you want a clean, copy-ready pipe table without hand-counting spaces.
The options that change the output
Align columns, on by default, re-emits the separator with the alignment markers each column implied. Cell padding accepts a whole number from 0 to 4 and adds that many spaces inside the vertical bars; turning alignment off keeps your literal row text but still normalises rows.
Limits and what it does not parse
It handles up to 5,000 non-empty rows and 200 columns and raises an error beyond that. It is not a full Markdown parser: escaped pipes and pipes inside matched inline-code spans stay in the cell, but Markdown, HTML and multiline cell syntax are not evaluated.
Where the formatting happens
The table is rebuilt on your device from the text you paste; nothing is uploaded.
Questions
Does this parse all Markdown table syntax?
No. It formats one pipe table. It preserves escaped pipes and pipes inside matched inline-code spans, but it does not evaluate Markdown, HTML, or multiline cell syntax.
What happens when rows have different cell counts?
Short rows are padded to the widest row. Rows with extra cells are preserved by expanding the table width.
Does alignment change cell content?
Only surrounding whitespace is trimmed. Content characters and backslash escapes are preserved; separator rows are rebuilt using Markdown alignment markers.
Related tools
See categoryMarkdown to HTML
Convert Markdown to HTML source code — see the generated markup, not a preview.
CSV to JSON
Parse CSV (RFC 4180) into a JSON array, with delimiter sniffing and type inference.
JSON to CSV
Turn a JSON array of objects into CSV, with delimiter, header, and flatten options.
.dockerignore Generator
Build a .dockerignore for a lean Docker build context — pick a stack preset and add custom lines.