Last checked by the TextEditor.com team
How to make a Markdown table
- Fill the gridType into the cells, or paste cells from Excel, Google Sheets, a CSV file or another Markdown table.
- Shape itAdd or move rows and columns. Select a column and pick left, center or right.
- CopyThe Markdown under the grid updates as you type. Click Copy and paste it into GitHub, a README file or your notes.
The preview shows how the table will look once it is rendered. Your table is saved in this browser, so it is still here when you come back.
Markdown table syntax
Tables are not part of the original Markdown or of CommonMark. They come from GitHub Flavored Markdown (GFM), and most sites copied that rule set. The GFM specification describes them in its tables section.
| Name | Price | Stock | | :---- | ----: | :---: | | Tea | 2.50 | 12 | | Scone | 1.90 | 7 |
- Header row. One line, cells split by pipes. It is required, even when it is empty.
- Alignment row. At least three dashes per column. The colons set the alignment.
- Body rows. As many as you like. A short row gets empty cells, a long row loses the extra.
The pipes at the start and end of a line are optional, and the spaces inside a cell do not matter. This tool pads the columns so the text lines up in a plain text editor too. Turn off "Padded columns" for the shortest form.
How the alignment row works
A colon on the left of the dashes aligns the column left, a colon on the right aligns it right, and one on each side centers it. With no colon, the reader's default applies, which is left on GitHub. The alignment applies to the header cell too. Try it below.
| Name | Price | Stock | | :---- | ----: | :---: | | Tea | 2.50 | 12 | | Scone | 1.90 | 7 |
| Name | Price | Stock |
|---|---|---|
| Tea | 2.50 | 12 |
| Scone | 1.90 | 7 |
Pipes, line breaks and other limits
The pipe splits cells, so a pipe inside a cell must be written as \|. This tool does that for you. A cell cannot hold a line break. Pressing Enter in a cell ends the row. To show two lines in one cell, write <br> between them. GitHub renders it, and so do most other sites.
Cells can hold inline Markdown: bold, italics, code and links. They cannot hold lists, headings or code blocks. Also, every row must sit on one line. A long table is easier to edit in the grid above than by hand.
Where Markdown tables work
| Place | Tables | Note |
|---|---|---|
| GitHub, GitLab, Bitbucket | Yes | In README files, issues and comments |
| Obsidian, Typora, Joplin, Notion import | Yes | Notion turns the pasted text into its own table |
| Yes | In Markdown mode. The rich text editor has its own table button. | |
| Stack Overflow | Yes | Added in 2021 |
| Discord, Slack, WhatsApp | No | They read only bold, italics and code. Paste a text table inside a code block instead. |
Checked October 2026. For chat apps, switch to the Text table tab. It draws the table with box lines, and inside a code block the columns stay lined up. The text frames page has more boxes for single lines of text.
Paste from Excel or Google Sheets
Select the cells in your spreadsheet and copy them. Click a cell in the grid above and press Ctrl+V. Copied cells arrive as tab separated text, so each one lands in its own cell. Number columns are aligned right by default when you paste. If the first row of your copy is not a header, add a row above it and type the names.
For a whole file, open it in the CSV editor or the table editor and export it as Markdown there. To write the text around the table, use the Markdown editor with its live preview.
Other table and Markdown tools
- Write in Markdown
**bold**→ boldThe Markdown editor shows a live preview as you type. - Edit a CSV file
a,b,cThe CSV editor puts each value in its own cell. - Edit a spreadsheet
.xlsx▦The table editor opens Excel files and cells you paste. - Clean up a web page
<b>Hi</b>→ HiThe visual HTML editor tidies code from Word and Google Docs.