Text Tools
Markdown Table Formatter
Tidy Markdown tables so the pipes line up, fill missing cells, set left, centre or right alignment, and turn spreadsheet data into a Markdown table.
How to use Markdown Table Formatter
Paste a Markdown table, or a whole document containing tables, and the tidied version appears as you type. Choose padded or compact style and the column alignment, then copy the result back into your README or docs.
- Paste the tablePaste a messy table, a whole Markdown file, or cells copied from Excel or Google Sheets.
- Pick style and alignmentChoose padded or compact, and keep the existing colon markers or set every column left, centred or right.
- Copy the tidy tableCopy the result; the note says how many tables were formatted and whether cells were added.
How tables are tidied, with an example
Each column is padded to the width of its longest cell, with at least three dashes, so the pipes line up in any monospaced editor. Rows with fewer cells than the header get empty cells, and a note tells you. Existing alignment markers are kept: in the sample, :-- keeps Name left-aligned, --: right-aligns the Price column so 5, 3.5 and 12 line up on the right, and :-: centres the Notes column. Escaped pipes stay inside their cell, and a separator row is added under the header if it is missing.
Whole documents and spreadsheet data
You can paste an entire Markdown file: only blocks of lines containing pipes are reformatted, while headings, paragraphs and fenced code blocks are left exactly as they are. If the input has no pipes but does contain tabs, as when you copy a range from Excel or Google Sheets, it becomes a new table with the first row as the header. Count Chinese characters as double width keeps tables with Chinese, Japanese or Korean text and emoji aligned in monospaced fonts. Compact style drops the padding, which keeps version-control diffs small.
Accuracy and data handling
Before copying the output, check names, punctuation and the intended meaning against the source text. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
How do I align columns in a Markdown table?
Paste the table with Style set to Padded, columns aligned. Every cell is padded so the pipes line up; the rendered table looks the same, but the source is far easier to read and edit.
Are centre and right alignment kept?
Yes, with Column alignment on Keep existing :--- markers. You can also set every column to left, centred or right, or remove the markers.
What is the basic Markdown table syntax?
A header row, a separator row made of dashes, then data rows, with cells separated by pipes. Colons in the separator row set alignment: :--- left, :---: centre, ---: right.
Can I convert Excel data into a Markdown table?
Yes. Copy the cells from Excel or Google Sheets and paste them in. Tab-separated text without pipes becomes a table, using the first row as the header.
More Text Tools
Related toolsFind, dedupe and sort the email addresses hidden in any text.
Get a clean, deduplicated list of the links in any text, HTML or log
Pull phone numbers out of text and list them in E.164 or national format.
Swap Chinese and English punctuation without breaking URLs or numbers.
Turn full-width ABC123 into ABC123, or convert the other way.
Spell letters as Alpha, Bravo, Charlie, or decode NATO code words.