Markdown Table Generator
Type in the grid or paste cells from a spreadsheet, then copy the Markdown table into a GitHub README, an issue or your documentation.
- HTML table generator
- CSV table generator
- LaTeX table generator
- JSON table generator
- SQL table generator
- MediaWiki table generator
- Plain Text table generator
- reStructuredText table generator
- Balsamiq table generator
- Mathematica table generator
- Typst table generator
- YAML table generator
- AsciiDoc table generator
How to create your table
- Type in the grid, or paste cells copied from Excel or Google Sheets.
- To align a column, select the whole column and choose Format › Align left, Align center or Align right.
- Copy the Markdown from the output panel. The first row is used as the table header.
Example output
| Item | Qty | Price |
| ------ | --: | ----: |
| Widget | 4 | 3.00 |
| Gadget | 12 | 5.50 |
Markdown table syntax
A Markdown table is a set of lines where cells are separated by pipes (|). The first line holds the column headers. The second line is the delimiter row: one cell of hyphens (---) per column, which tells the renderer that the lines form a table.
Every row after that is a table row. The pipes at the start and end of a line are optional, and the columns do not need to line up in the source. Aligned columns only make the raw text easier to read.
| Name | Role |
| ----- | --------- |
| Ada | Engineer |
| Grace | Admiral |
Aligning columns
Alignment is set in the delimiter row. A colon on the right (---:) aligns the column to the right, colons on both sides (:---:) center it, and a colon on the left or no colon aligns it to the left.
Markdown can only align whole columns. In the editor, select a whole column and choose Format › Align; the output then gets the matching colons.
What Markdown tables cannot do
GitHub Flavored Markdown tables have exactly one header row and no merged cells. Cells hold inline content only: text, links, emphasis and inline code, but not lists, headings or code blocks.
For a line break inside a cell, use <br>, which GitHub accepts. If you need merged cells or several header rows, write the table in HTML instead. GitHub renders HTML tables in Markdown files, and the HTML format here keeps merged cells.
Escaping pipes and other characters
A pipe inside a cell ends the cell unless it is escaped as \|. In GFM this also applies inside inline code: to show the code a|b in a cell, write a\|b between the backticks. The editor escapes pipes for you and turns line breaks in a cell into <br>.
Converting Excel, Google Sheets or CSV to Markdown
Copy the cells in your spreadsheet and paste them into the grid, or open a .csv, .xlsx or .ods file with File › Import. The Markdown output updates as you edit. You can also import an existing Markdown table to change it and copy it back. The same table can be copied as LaTeX or CSV from the output panel.
What the editor can do
- Merge and split cells
- Paste cells from Excel, Google Sheets or an HTML table
- Import CSV, TSV, Excel (
.xlsx), OpenDocument (.ods), Markdown, HTML, LaTeX, Typst, JSON, MediaWiki and plain text tables - Copy the table as one of 14 text formats, or download it as an Excel, OpenDocument or Word (
.docx) file - Header rows and columns, borders, and bold, italic and alignment per cell
- Number formats for numbers, percentages and currencies
- Checkboxes, and one link per cell. Links stay links in Markdown, HTML, LaTeX, Typst, Excel, Word and the other formats that have them
- Sort, transpose, fill down or right, and find and replace with regular expressions
- Undo and redo, keyboard shortcuts and a command palette (
Alt+Q) - Save tables in the browser, reopen recent tables and share a table as a link
- Also available as a Windows app
Table Editor for Windows
The same editor as a Windows app, with what a browser tab can't do.
- Tabs. Keep several tables open at once. Tabs with unsaved changes come back when you start the app again.
- Your own files. Open Excel, CSV, Markdown, LaTeX and other files directly, also from Windows Explorer, and save back to the same file.
- Offline, without ads. Works without an internet connection. No ads, no analytics, and nothing leaves your computer.
A one-time purchase in the Microsoft Store.
Frequently asked questions
- How do I convert an Excel table to Markdown?
- Select the cells in Excel and copy them. Click the first cell of the grid and paste with
Ctrl+V; the grid grows to fit. You can also open the.xlsxfile with File › Import. Then copy the Markdown from the output panel. The first row becomes the Markdown header row. - Does the output work on GitHub?
- Yes. The output is a GitHub Flavored Markdown (GFM) pipe table. GitLab and most Markdown tools that support GFM tables read the same syntax.
- How do I align a column?
- Select the whole column and choose Format › Align. The line under the header then gets
---:for right or:---:for center; left-aligned columns have no colon. Markdown can only align whole columns, not single cells. - Can cells contain bold text, pipes or line breaks?
- Bold, italic and struck-through cells are written as
**bold**,*italic*and~~struck~~. Header columns, and header rows below the first, are written in bold unless you turn off Bold headers in the output panel menu. A pipe in a cell is escaped as\|, and a line break becomes<br>, which GitHub shows as a new line inside the cell. - What happens to links and checkboxes?
- Format › Link… (
Ctrl+K) gives a cell a web address, and the cell is written as[text](https://example.com). A cell that holds only an address such ashttps://example.comis written as<https://example.com>. Importing a Markdown table reads both forms back as links. A checkbox (Format › Number format › Checkbox) is written as✓when it is checked and as an empty cell when it is not. The Checkboxes as setting in the output panel menu (⋮) changes that to Yes and No, or true and false. - Can I merge cells?
- No. Markdown tables have no merged cells, so the cells a merge covers are left empty in the output. Use the HTML format if you need merged cells.