Markdown table generator
Paste CSV, TSV, an HTML table or cells copied from Excel or Google Sheets, or open an .xlsx file, and get a GitHub Flavored Markdown table. Or build one in the grid.
Everything runs in your browser and nothing you paste is uploaded.
Table generator
| Item | Qty | Price |
| :------- | :-: | -----: |
| Notebook | 2 | $4.50 |
| Pens | 10 | $12.00 || Remove row | |||
|---|---|---|---|
Enter moves down and adds a row at the end. Type <br> for a line break inside a cell. Pipes are escaped for you.
| Item | Qty | Price |
|---|---|---|
| Notebook | 2 | $4.50 |
| Pens | 10 | $12.00 |
Jotura, a free notes app, edits tables like this natively and saves them as the same plain Markdown. Download Jotura
How to use the Markdown table generator
- Add your data. Paste CSV, TSV, an HTML table or cells copied from Excel, Google Sheets, LibreOffice Calc or Numbers into the box. Opening a
.csvor.xlsxfile works too, and so does typing straight into the grid. - Shape the table. Set each column to left, center or right with the buttons above it. Add and remove rows and columns, or swap the rows with the columns.
- Copy the Markdown. The output updates as you type, and the rendered table sits under the grid. Paste it into a README, an issue, a wiki page or a note.
Format an existing Markdown table
Paste a Markdown table into the same box. The generator reads the cells and the alignment row, then writes the table back with every column padded to its widest cell, so the pipes line up. Chinese, Japanese and Korean characters and emoji count as two columns.
|Item|Qty|Price|
|:-|:-:|-:|
|Notebook|2|$4.50|
|Pens|10|$12.00|That table comes back as:
| Item | Qty | Price |
| :------- | :-: | -----: |
| Notebook | 2 | $4.50 |
| Pens | 10 | $12.00 |Tick Compact above the output for the reverse: one space around each cell and three hyphens in each separator cell.
Markdown table questions
How do I create a table in Markdown?
Write a header row, a separator row of hyphens, then one line per row, with a pipe character (|) between cells. Leave a blank line above the table and give the separator row one cell per header cell. The generator on this page writes all of it from cells you type or paste.
| Task | Owner | Due |
| --------------- | ----- | ---------- |
| Draft the brief | Priya | 2026-10-02 |
| Book the room | Sam | 2026-10-05 |How do I align a column in a Markdown table?
Add colons to that column's cell in the separator row. :--- aligns left, ---: aligns right and :---: centers. The setting covers the whole column, header included. In the generator, press one of the alignment buttons above a column, and press it again to clear it.
| Item | Qty | Price |
| :------- | :-: | -----: |
| Notebook | 2 | $4.50 |
| Pens | 10 | $12.00 |Can a Markdown table have no header row?
GitHub Flavored Markdown requires a header row. Leave the header cells empty and the table renders with a thin blank band on top. Untick First row is the header and the generator writes that empty row for you.
| | |
| ---- | ------------ |
| Name | Ada Lovelace |
| Born | 1815 |How do I add a line break inside a Markdown table cell?
A table row has to stay on one line of source, so use the HTML tag <br>, as in First line<br>Second line. GitHub, GitLab, VS Code and Jotura render it. MDX files, which include Docusaurus pages, need <br />. A spreadsheet cell that holds a line break arrives here with <br> already in place.
Can I put a list inside a Markdown table cell?
Markdown list syntax does not work inside a cell. GitHub renders HTML list tags there, as in <ul><li>Download the file</li><li>Run the installer</li></ul>. The shorter route is <br> between the items.
How do I add a caption to a Markdown table?
GitHub Flavored Markdown has no caption syntax. Put a line of bold or italic text directly above the table. Pandoc reads a paragraph that starts with Table: beside the table as its caption, and a table written in HTML accepts a <caption> element.
How do I convert Excel or Google Sheets cells to a Markdown table?
Select the cells in Excel, Google Sheets, LibreOffice Calc or Numbers, copy them, and paste into the box at the top of this page. The first row becomes the header, and a comma inside a cell stays inside it. To convert a whole sheet, press Open a file and pick the .xlsx; the Excel to Markdown page covers dates, formulas and sheets.
How do I convert CSV to a Markdown table?
Paste the CSV text into the box, or open the file with Open a file. The separator is detected, and you can set comma, tab or semicolon yourself. Quoted fields keep their commas and line breaks, and pipes in the data are escaped. From a terminal, pandoc -f csv -t gfm sales.csv -o sales.md converts a file on disk.
How do I put a pipe character inside a Markdown table cell?
Write \|. In GitHub Flavored Markdown the escape works inside inline code too. The generator escapes every pipe in your cells for you.
Is my data uploaded?
No. The table is parsed and formatted by JavaScript in your browser, and an .xlsx file is read by a WebAssembly program in a background thread. Nothing you type, paste or open is sent to a server or saved.
The guide to Markdown table syntax goes further: where tables render, merged cells, wide tables and the editors that write them for you. For one source in particular, use CSV to Markdown, Excel to Markdown or HTML table to Markdown.