Markdown Table Generator
This Markdown table generator replaces the tedious business of typing pipes and dashes by hand. Type into the grid, add and reorder rows, add and delete columns, and set each column’s alignment from a dropdown — that becomes the colons in the separator row, which is how Markdown encodes alignment. The output is padded so the columns line up in the source, which makes the raw file readable and diffs meaningful; turn padding off for compact output. Pipe characters inside a cell are escaped automatically, since an unescaped one would end the cell early. You can also paste an existing Markdown table, or a range copied from a spreadsheet, and carry on editing it as a grid.
How it works
Type into the grid and the Markdown updates as you go. Set each column's alignment with the dropdown in its header — that becomes the colons in the separator row, which is how Markdown encodes alignment.
Already have a table? Paste an existing Markdown table, or anything comma or tab separated (a spreadsheet range works), into the import box and it becomes an editable grid.
Everything runs in your browser — nothing you type is sent to a server.
3 rows × 3 columns. Pipe characters inside a cell are escaped automatically, since an unescaped one would end the cell early.
How to build a Markdown table
- Type your headings across the top row of the grid and your data below.
- Set each column's alignment from the dropdown in its heading.
- Copy the Markdown underneath, or download it as a
.mdfile.
How alignment is encoded
Markdown puts column alignment in the separator row, using colons:
| Left | Centre | Right |
| :--- | :----: | ----: | A colon on the left aligns left, on the right aligns right, and on both sides centres. Getting those colons in the right places by hand is fiddly; the dropdowns write them for you.
Why line the columns up
Padding the cells so the pipes line up costs nothing at render time — the output is identical either way — but it makes an enormous difference to the raw file. A padded table is readable in a plain editor, and diffs stay meaningful because editing one cell does not reflow the rest of the row.
Turn padding off when you want the shortest possible output, or when a table is wide enough that alignment whitespace becomes more distracting than helpful.
Pipes inside a cell
A pipe character ends a cell, so a value containing one has to be escaped as \|. That happens
automatically — otherwise a cell containing a value like a | b would split into two and shift the
rest of the row.
Starting from something you already have
Paste an existing Markdown table into the import box and it becomes an editable grid, alignment included. Comma and tab separated text works too, so a range copied straight out of a spreadsheet imports directly.
Common use cases
- Adding a comparison or options table to a README.
- Documenting a configuration reference or an API's parameters.
- Reformatting a table someone sent you as a spreadsheet range.
Frequently asked questions
How do I make a Markdown table?
Type into the grid — headings across the top, data below. The Markdown updates as you type, ready to copy.
How does column alignment work?
Markdown encodes alignment with colons in the separator row: a colon on the left aligns left, on the right aligns right, and on both centres. Choose from the dropdown in each column heading and the colons are written for you.
Can I edit a table I already have?
Yes. Paste it into the import box and press Import — it becomes an editable grid. Comma or tab separated text works too, so a range copied from a spreadsheet imports directly.
Why line the columns up?
Padded tables are far easier to read in the raw file, and diffs stay meaningful because a change to one cell does not reflow the rest. Turn it off if you want the shortest possible output.
What if a cell contains a pipe character?
It is escaped as \| automatically. An unescaped pipe would be read as a cell boundary and break the row.
Is my table saved?
Yes, in your browser’s local storage, so it is still there when you come back. Nothing is uploaded.
Related tools
Markdown to HTML Converter
This Markdown to HTML converter renders your document with GitHub extensions on.
CSV to HTML Table Converter
This CSV to HTML converter builds a proper, accessible table with every cell escaped.
Markdown Viewer & Editor
This Markdown viewer renders your document live as you type, in a sandboxed preview.