DevTools Pro · All tools · About

Markdown Table Generator

About the Markdown Table Generator

This Markdown table generator lets you build a table in a spreadsheet-style grid and copies it out as clean, aligned Markdown. Set alignment per column, paste in CSV, TSV or an existing Markdown table, and preview the result before you drop it into a README or doc.

Markdown table syntax

A Markdown table is a header row, a delimiter row and any number of data rows, with cells separated by pipes. The delimiter row needs at least three dashes per column: | Name | Role | followed by | --- | --- |.

Tables are a GitHub Flavored Markdown (GFM) extension. GitHub, GitLab, Bitbucket, VS Code, Obsidian and most static site generators render them; original Markdown does not.

Column alignment

Alignment is set with colons in the delimiter row: :--- aligns left, :---: centers and ---: aligns right. Right alignment is the usual choice for numbers and prices.

Click a column's alignment button in the editor to cycle through none, left, center and right; the delimiter row updates for you.

Pipes and line breaks inside cells

A literal | in a cell would end the cell early, so the generator escapes it as \|. Markdown tables cannot contain real line breaks either, so newlines in a cell are written as <br>, which GitHub renders as a line break.

The output is padded so columns line up in plain text, which keeps tables readable in code review even before they are rendered.

How to Use the Markdown Table Generator

  1. Type into the cells of the Table editor. The first row is the header.
  2. Use the Row and Column buttons to add or remove rows and columns, and set each column's alignment.
  3. To start from existing data, paste CSV, TSV or a Markdown table into the Import box and press Import into table.
  4. Check the Preview, then Copy the Markdown or download it as a .md file.
  5. Use Sample to see an example table, or Clear to start over.

Frequently Asked Questions

Can I paste data from Excel or Google Sheets?
Yes. Copied cells arrive as tab-separated text. Paste them into the Import box and press Import into table; tabs are detected automatically.
How do I merge cells?
Markdown tables do not support merged cells (colspan or rowspan). If you need them, use an HTML table, for example with the HTML Table Generator.
How do I put a pipe character in a cell?
Just type it. The generator writes it as \| so it shows as a literal pipe instead of splitting the cell.
Does the table need a header row?
Yes. GFM tables always have exactly one header row; the first row in the editor is used as the header.
Is my data uploaded?
No. The table is built in your browser and nothing is sent to a server.

Related tools