Markdown Table Formatter
Align and clean up Markdown tables so every column lines up neatly.
About Markdown Table Formatter
Markdown tables written by hand rarely line up — pipes drift, columns misalign, and the result is painful to read in code. This formatter pads every column to the width of its widest cell so all pipes align in every row, making the table pleasant both in raw Markdown and when rendered.
The tool parses the table structure, then rebuilds it with even padding, preserving alignment markers like :---: and the separator row. Cells containing pipes or long unbroken text are handled correctly, and rows with more or fewer cells than the header are reported so you can spot data inconsistencies.
Developers writing READMEs and API docs, technical writers maintaining documentation, and anyone turning a messy pasted table into a clean one will save time. It is especially useful right before a pull request review, where clean tables are a subtle sign of polish.
How to Use
- Paste a Markdown table.
- Press Format Table.
- Copy the aligned table into your document.
Example
| a | b | |---|---| | 1 | two | | a | b | | --- | --- | | 1 | two |
Each column is padded to the width of its widest cell, so pipes line up in every row.
FAQ
Does it support alignment markers?
Yes, the :---: and ---: alignment syntax is preserved and re-padded correctly.
Can it create a table from plain text?
If you provide comma or pipe-separated rows, the tool can build the table structure automatically.
Why align Markdown tables?
Aligned tables are easier to review in code and render identically in every Markdown processor.
Does it pad cells containing code spans?
Yes. Inline code spans are treated as ordinary text for padding purposes, so cells containing code still align with the rest of the column.
What if the separator row is missing?
If the separator row is missing, the formatter adds one based on the number of columns it detects, so the table still renders correctly in Markdown.