Markdown table generator

Paste your data, copied straight from a spreadsheet or separated by commas, tabs or semicolons, and get a properly formatted Markdown table with the alignment you choose.

  • Free
  • No sign-up
  • Runs in your browser
markdown-table-generator

Fill in the values above to see the result.

100% private — the calculation is done in your browser and nothing is sent to any server.

How it works

Paste your data

Straight from Excel or Google Sheets, or as CSV.

Choose the alignment

Left, center, right, or the default.

Copy the table

Ready to paste into a README, a wiki or documentation.

Tables in Markdown, without counting pipes by hand

Markdown tables are plain text with a strict shape: a header row, a row of dashes that sets the alignment, and the data rows, all separated by pipe characters. It reads fine once it is written, but writing it by hand means lining up pipes and dashes and it is easy to miscount a column. This tool builds it for you from data you already have.

Where the data comes from

Select cells in Excel or Google Sheets, copy them, and paste them here: spreadsheets copy as tab-separated text, which this tool recognizes automatically. You can also paste CSV, separated by commas, or data separated by semicolons, common in European spreadsheets. The separator is detected from your first line, or you can choose it by hand if the guess is wrong.

Alignment

Markdown tables can align each column left, center or right by changing the dashes in the second row, for example :--- for left, :---: for center and ---: for right. Choose one alignment for the whole table, applied to every column, which covers the common case of a table of mostly text or mostly numbers.

Two output styles

The compact form has no extra spaces and is the smallest to store, which some tools prefer. The aligned form pads every cell with spaces so the pipes line up in a neat grid when you look at the raw text, which many people find easier to read and edit later. Both render identically once shown as a table; the difference is only in the source text.

Limits

Markdown tables do not support merged cells or nested tables. Cell content with a line break is turned into a <br> tag, since Markdown table cells cannot hold a real line break, and a pipe character inside a cell is escaped so it is not read as a column separator. Nothing is uploaded; the table is built in your browser.

Frequently asked questions

How do I make a table in Markdown?
Paste your data, copied from a spreadsheet or separated by commas or tabs, and the Markdown table appears ready to copy.
Can I paste directly from Excel?
Yes. Copy the cells in Excel or Google Sheets and paste them here; the tool recognizes the tab-separated format automatically.
How do I align a column to the right?
Choose Right in the alignment option. It applies to every column of the table.
What happens to a comma inside my data?
It is kept as part of the cell as long as you use tab or semicolon as the separator. If you use comma as the separator, quote fields that contain one, as in a normal CSV file.
What if a cell has a line break?
It is converted to a
tag, since Markdown table cells cannot contain a real line break.
Is my data uploaded?
No. The table is built in your browser.