Markdown Table Generator

Build a Markdown table in a visual grid, or paste rows from Excel, Google Sheets or CSV. Pick a left, center or right alignment for each column, then copy the GitHub-ready Markdown.

Loading converter…

How to create a Markdown table

  1. Set the size or paste your data

    Choose columns and rows, or paste cells from Excel, Google Sheets or CSV and click Import into grid. The first pasted row becomes the header row.

  2. Fill in the cells and pick alignment

    Each column can be left, center or right aligned.

  3. Copy or download

    Copy the Markdown, or download it as a .md file, and paste it into your README, wiki or docs.

What the output looks like

A 3-column grid with left, right and center alignment gives you this. The generator pads cells with trailing spaces so every row has the same number of cells. The separator row can be slightly wider than the cell text. Alignment changes the separator only, so numbers are right-aligned in the rendered table, not in the raw source.
AlignmentSeparator rowUse it for
Left:---Names, labels, text
Center:---:Short flags, statuses
Right---:Numbers, prices

Generated Markdown

| Plan   | Price  | Seats   |
| :------ | ------: | :-------: |
| Free   | $0     | 1       |
| Team   | $12    | 10      |
| Scale  | $49    | 50      |

Importing from Excel, Google Sheets or CSV

Copy a block of cells in Excel or Google Sheets and paste it into the import box. Pasted cells arrive tab-separated, and each tab becomes a column. CSV text with commas works too, including quoted fields. Blank lines are skipped, so the first non-empty line becomes the header row.

Things that break Markdown tables

Most broken tables come down to a few syntax rules. The generator handles most of them for you.

A header row is required

GitHub Flavored Markdown needs a header row and a separator row (| --- | --- |) before any data. Without them, renderers show plain text, not a table. The generator always writes both.

A pipe inside a cell

A | ends the cell. In hand-written Markdown, escape it with a backslash, so a | b becomes a \| b. In the generator, just type the pipe and it adds the backslash for you.

A line break inside a cell

A table row must stay on one line. Cells in the grid are single-line, and line breaks in pasted text are turned into spaces. Type <br> where you want a break inside a cell.

Empty cells

Leave a cell blank to keep the column count right. The generator writes a rectangular table, so every row has the same number of cells.

Table size

The grid holds up to 20 columns and 50 data rows. Extra rows or columns in pasted data are dropped.

Renderers without table support

Tables are part of GitHub Flavored Markdown, not the core CommonMark spec. GitHub and GitLab render them. A strict CommonMark renderer may show raw pipes.

Frequently Asked Questions

  1. 1

    Do I need a header row?

    Yes. GFM tables need a header row and a separator row, and the generator writes both.

  2. 2

    How do I put a | inside a cell?

    Just type |. The generator adds the backslash for you. If you write Markdown by hand, write \|.

  3. 3

    Can I paste from Excel or Google Sheets?

    Yes. Paste the cells into the import box and click Import into grid. The first row becomes the header.

  4. 4

    How do I align a column?

    Choose left, center or right for that column. The generator writes :---, :---: or ---: in the separator row.

  5. 5

    What is the difference between the Generator and the Formatter?

    The Generator builds a new table. The Markdown Table Formatter cleans spacing and alignment in a table you already have.

  6. 6

    Is my data sent to a server?

    No. Everything runs in your browser, so your table data is not uploaded.

Clean up, import, or export Markdown tables with these related tools:

Last updated: Category: Markdown Table Tools