Markdown table generator

Build a table in the grid, paste cells straight from Excel or Google Sheets, set column alignment, and copy clean GitHub Flavored Markdown.

Table (3 rows × 3 columns)
H
1
2
3

Enter moves down (and adds a row at the end). Shift+Enter makes a line break inside a cell. Paste a block of cells from a spreadsheet into any cell.

Markdown
| Tool            |   Input   | Output         |
| :-------------- | :-------: | -------------- |
| Table generator |   Grid    | GFM table      |
| CSV converter   | CSV / TSV | GFM table      |
| Formatter       | Markdown  | Aligned tables |
Rendered

Markdown table syntax

A GitHub Flavored Markdown table has three parts: a header row, a separator row made of dashes, and any number of body rows. Pipes | separate the cells. The outer pipes are optional and the columns don’t have to line up in the source, but aligned columns are much easier to read and edit, which is what “Align columns” does.

| Name  | Role     | Joined |
| :---- | :------: | -----: |
| Ana   | Designer |   2021 |
| Kofi  | Engineer |   2024 |

How the colons control alignment

The separator row does double duty: it tells the parser “the line above is a header” and, with colons, sets each column’s alignment. Pick an option and watch both the source and the rendered column change.

Alignment explainer
| Price  |
| :----: |
| $4     |
| $12.50 |
| $1,299 |
Price
$4
$12.50
$1,299

:---: colons on both ends: centred. Good for short status values like ✅ or Yes/No; hard to scan for long text.

Table tips and limits

  • Line breaks in a cell: use <br>; each row must stay on one line.
  • Pipes in a cell: escape as \|, including inside inline code.
  • Formatting in cells: bold, italic, links, inline code and images all work. Lists, headings and code blocks don’t.
  • No merged cells or captions: GFM tables can’t span rows or columns. Use HTML if you must.
  • Wide tables scroll horizontally on GitHub. Consider transposing (swap rows and columns) if you have many columns and few rows.
  • Tables need a header row. For a header-less look, leave the header cells empty.

Have a spreadsheet export? Use the CSV to Markdown table converter. Need to tidy tables that are already in a document? The formatter aligns every table at once.

Questions people ask

How do I make a table in Markdown?
Write a header row with cells separated by pipes |, then a separator row of dashes | --- | --- |, then one line per row. Or build it visually in the grid above and copy the result.
How do I align columns in a Markdown table?
Put colons in the separator row: :--- left, :---: centre, ---: right. Try the alignment explainer on this page to see each option.
How do I put a line break in a table cell?
Use <br>. In the generator, press Shift+Enter inside a cell and it is converted for you.
How do I use a pipe character inside a cell?
Escape it as \|. The generator does this automatically.
Can I merge cells?
No. GitHub Flavored Markdown tables have no colspan or rowspan. Use an HTML <table> if you need merged cells.
Can I edit an existing Markdown table?
Yes. Press “Import”, paste the table (or CSV / spreadsheet cells) and it loads into the grid.

Related tools