RichMarkdown › Markdown tables

Markdown tables

Updated

A Markdown table is rows of text separated by pipes, with a divider row under the header. It is easy to read once written and tedious to type. This page shows the syntax, then three ways to avoid typing it.

In short

The syntax

| Name  | Role     | Start |
| ----- | -------- | ----- |
| Ann   | Editor   | 2024  |
| Bruno | Designer | 2025  |

Column alignment

| Item   | Price | Status |
| :----- | ----: | :----: |
| Coffee |  3.50 |   ok   |
| Tea    |  2.80 |   ok   |
DividerAlignment
:---Left
---:Right, the usual choice for numbers
:---:Centre

What a cell can hold

Three ways not to type it

1. Build it visually

In the RichMarkdown editor, click the table button in the toolbar, choose the size, and type in the cells. View Markdown shows the finished pipe table, and Export .md saves it.

2. Paste it

Copy a table from Google Docs, Word or a web page and paste it into the editor. It arrives as a real table and is exported as a pipe table. Colours and cell borders are dropped, because Markdown has no way to write them.

3. Convert a spreadsheet

Save the sheet as CSV and use CSV to Markdown table. Commas inside quotes, and pipes inside cells, are handled. To tidy a table you already have, Markdown table formatter lines up the columns.

Tables on the way out

ExportWhat happens to tables
Word (.docx)Real Word tables you can edit.
PDFPrinted as tables. A table is kept in one piece, so a very long one may start on a new page; very wide ones are cut at the page edge.
Shared linkShown as a table on the page.

Common problems

Related guides

FAQ

Does standard Markdown have tables?

The original Markdown does not. Tables come from GitHub-flavoured Markdown, which almost every current tool supports.

How do I merge cells in a Markdown table?

You cannot. Markdown tables have no merged cells. Use an HTML table, or repeat the value in each cell.

How do I put a line break in a cell?

Write <br> where the line should break. A real new line ends the table row.

Do the columns need to line up?

No. Alignment of the source text is only for readability. The pipes and the divider row are what matter.

Can I convert an Excel sheet to a Markdown table?

Yes. Save it as CSV and use the CSV to Markdown table tool, or copy the cells from a document and paste them into the editor.

Open the free editor