What is a Markdown table generator?
A Markdown table is the grid syntax of GitHub Flavored Markdown (GFM): a header row, a row of dashes, then the data rows, with cells separated by pipes. It works in README files, issues, pull requests, wikis, documentation sites and many note apps. Writing one by hand is slow, because every pipe has to line up and one missing separator turns the whole table into plain text.
This tool gives you a grid you edit like a small spreadsheet. Add or remove rows and columns, type in the cells, and choose left, center or right alignment for each column. The Markdown appears next to the grid as you type. You can also copy the same table as HTML or as a LaTeX tabular environment.
You do not have to type everything. Select a range in Excel, Google Sheets or LibreOffice, copy it and paste into any cell of the grid: the table is filled in. CSV, TSV and HTML tables work too. The way back works as well: paste a Markdown table, and it opens in the grid so you can change a cell, add a column or swap rows and columns, then copy the result again.
Everything happens in your browser. The table is never uploaded, and nothing you type is stored or placed in the address. Only your choices (output format, header, spacing) are remembered between visits.
How to use it
- Open the page. A small example table with three columns and right-aligned numbers is already loaded, so you see the result at once.
- Click a cell and type. Press Enter to go to the cell below (on the last row it adds a new row), and use the arrow keys up and down to move between rows.
- Use the buttons above each column to align it left, center or right. Click the active one again to remove the alignment. The plus button at the end of the header row adds a column, and the cross removes one.
- To import data, paste a range from a spreadsheet into any cell. Pasting several cells always replaces the whole table, and a line below the grid says how many rows and columns were read and in which format. Use "import text" to type or paste CSV, TSV, HTML or a Markdown table in a text box and pick the format by hand if the automatic guess is wrong.
- Choose the output format at the top: Markdown, HTML or LaTeX. In Markdown you can switch on "align columns" (pads the source so the pipes line up), "escape pipes" and "header row".
- Click copy, or use the download button to save a
.md,.htmlor.texfile.
Examples
A price list from Excel
Copy three columns from a spreadsheet and paste them into the first cell. With "align columns" on, you get:
| Item | Unit price | Stock |
| :--------- | ---------: | ----: |
| Notebook | 4.50 | 120 |
| Pen \| blue | 1.20 | 48 |The pipe inside "Pen | blue" is escaped as \|, so it stays inside its cell.
A cell with two lines
Markdown cells cannot hold a real line break. If a spreadsheet cell contains a line break, the tool writes it as the HTML tag <br>, which GitHub and most renderers show as a new line inside the cell.
Editing a table you already have
Paste the Markdown of a table from your README into the "import text" box. It is read with the same rules GitHub uses: outer pipes are optional, escaped pipes become literal pipes, and alignment comes from the colons in the dash row. Change what you need and copy it back.
LaTeX for a paper
Switch to LaTeX and choose booktabs, grid or no rules. The header is bold, and characters such as &, %, $, # and _ are escaped. The tool does not compile LaTeX, so paste the result into your document and compile it there.
Common mistakes
- Forgetting the header. GFM always needs a header row. If you turn "header row" off, the tool writes an empty header above your first row so the table still renders.
- Unescaped pipes. A bare pipe splits the cell. Leave "escape pipes" on unless you know the pipes are already escaped.
- Expecting multi-line cells. Use the
<br>tag. Lists and paragraphs inside cells are not part of GFM. - Pasting one cell and expecting a table. A single value is pasted as text. A range with tabs or line breaks replaces the table.
- Wide tables in the source. Aligned columns look tidy in an editor but make the diff noisier when one cell changes. Turn alignment off for tables that change often.
- Wrong alignment after an import. HTML tables take alignment from the
alignattribute or atext-alignstyle of the first rows. Set it again with the column buttons if it was not there.
Frequently asked questions
Does it work with every Markdown flavor?
It writes GFM tables, the form used by GitHub, GitLab, most static site generators and many editors. Original Markdown has no tables, and some renderers need a plugin.
Is the HTML or LaTeX output checked by a compiler?
No. The Markdown is checked against a GFM parser, and the HTML is read back to the same cells, but LaTeX is only generated as text. Compile it in your own setup.
What is the size limit?
Up to 2000 rows and 100 columns. Larger pastes are refused with a message.
Can I turn the Markdown into a rendered page?
Yes. Use Markdown to HTML to see it rendered, or compare two versions of a table before committing.
Can I convert a whole web page of tables?
Use HTML to Markdown for full pages. This tool reads the first table it finds in pasted HTML.