Skip to content

Markdown table generator

Build a Markdown table by filling in a visual grid, set column alignment, then copy the table code or export it as HTML, CSV, or plain text.

1 to 10 rows and columns. Changing these resizes the grid below and keeps what you already typed.

Edit table

The top row of buttons sets left, center, or right alignment for that column.

Table code

Export format

Live preview

Import from a spreadsheet or CSV

Copy cells from Excel or Google Sheets and paste them below, or paste comma-separated values. The first row becomes the header.

How it works

A Markdown table generator turns a visual grid of rows and columns into the pipe-and-dash syntax that GitHub, GitLab, and most Markdown renderers use to display tables.

  1. Set the size and fill the grid

    Choose rows and columns, then type headers and cell values.

  2. Set column alignment

    Use the L, C, or R buttons on each column to control text alignment.

  3. Copy or export

    Pick Markdown, HTML, CSV, or plain text, then copy or download it.

Markdown table syntax

A Markdown table is a header row, a separator row of dashes, and one or more data rows, with cells separated by pipe characters:

| Name | Age |
| :--- | ---: |
| Alice | 30 |

The colons in the separator row set alignment. A colon on the left only means left-align, colons on both sides mean center, and a colon on the right only means right-align. Leaving out colons defaults to left-align in most renderers. The generator writes the correct colon placement automatically for each column.

Where this syntax works

GitHub, GitLab, and most static site generators render this syntax as a table. Plain-text viewers and some older forums show the pipes and dashes as text, so check the target before pasting.

Frequently asked questions

How do I create a Markdown table?

Set the number of rows and columns, then type into each cell of the grid. The Markdown code updates as you type. Each column has L, C, and R buttons to set left, center, or right alignment. Click Copy code to paste the result into a README, wiki, or any Markdown document.

How do I add or remove rows and columns?

Use Add row or Add column to grow the grid, or Remove row and Remove column to shrink it, up to a limit of 10 in each direction. You can also type an exact number into the Rows or Columns field and click Resize grid, which keeps the values you already entered.

Can I import data from Excel or Google Sheets?

Yes. Select and copy a range of cells in Excel or Google Sheets, paste it into the import box, and click Import. Tab-separated data from a spreadsheet and comma-separated CSV text both work, and the first row becomes the table header.

What does the colon in the alignment row mean?

Colons in the separator row control alignment for that column. A colon on the left only (:---) means left-align, colons on both sides (:---:) mean center, and a colon on the right only (---:) means right-align. The L, C, and R buttons on each column set this for you.

Can I export the table as HTML or CSV instead of Markdown?

Yes. The format buttons above the output box switch between Markdown, an HTML table, CSV, and tab-separated plain text that pastes cleanly back into a spreadsheet. Copy code or Download file both use whichever format is selected.