Skip to content
Text

Markdown Table Builder

Edit cells in a grid and copy the Markdown, or paste straight from a spreadsheet or a CSV file and have the table built for you. Column alignment is per column.

Press Esc to clear

Markdown

About the Markdown Table Builder

Markdown tables are painful to write by hand and trivial to generate. The pipes have to line up conceptually even when they do not line up visually, every row needs the same number of cells, and the alignment row underneath the header has its own syntax that nobody remembers. Editing an existing table by hand is worse, because adding one word to a cell means re-padding the entire column if you care about the source being readable.

Pasting is the fastest route in. Copying a range out of a spreadsheet puts tab-separated values on the clipboard; exporting from most tools gives comma-separated values with quoted fields. Both land in the same box here and the delimiter is detected rather than asked for. The CSV parser is a real one, character by character, so a field containing a comma, a line break or an escaped quotation mark survives intact — a naive split on commas mangles all three, which is why so many CSV-to-anything tools produce subtly wrong output on real exports.

Alignment is set per column and written into the separator row using Markdown's colon syntax. Right alignment is worth using for any column of numbers: it lines up the digits so the magnitudes can be compared at a glance, which is most of the reason to put numbers in a table at all.

Output is padded so the Markdown source itself lines up in a monospaced editor. Everything happens in your browser.

Frequently asked questions

Can I paste straight from Excel or Google Sheets?

Yes. A spreadsheet copies as tab-separated values, which is detected automatically. Comma and semicolon separated data works too.

What happens to a comma inside a quoted CSV field?

It is preserved. The parser reads character by character and understands quoting, so embedded commas, line breaks and escaped quotation marks all survive rather than splitting the row.

How do I right-align a column of numbers?

Set that column alignment to right. It writes the colon syntax into the separator row, and lines up the digits so magnitudes can be compared at a glance.