Markdown Table Generator
Build a Markdown table in a spreadsheet-style editor or paste cells from Excel and Google Sheets. Set column alignment, preview the result and copy safely escaped GitHub Flavored Markdown.
Your text never leaves your browser.
Table editor
2 columns Ā· 1 body row
Scroll sideways for more columns. Swipe, or focus the grid and use the arrow keys. Tab moves through every control.
| Row | ||
|---|---|---|
| Header | ||
1 |
Paste from Excel or Google Sheets
Paste from Excel or Google Sheets
Tab-separated text, up to 256 KiB, 100 body rows and 20 columns. Replacing the table resets every column to Default alignment.
Output
Type in the table cells, load the sample or paste spreadsheet rows to generate a Markdown table.
Type in the table cells, load the sample or paste spreadsheet rows to generate a Markdown table.
How to use the Markdown table generator
Type into the header and body cells, or paste a copied range from a spreadsheet and choose Replace table. Add or remove rows and columns as you go, and pick an alignment for each column. The Markdown view updates as you type, and the Preview view shows the same cells as a rendered table. Copy Markdown copies the exact source, ready for a README, GitHub issue, pull request or documentation page.
Worked example: Excel to Markdown table
These three rows were copied from a spreadsheet. The columns are then set to Left, Right and Center. The pipe in A | B is escaped so it stays in one cell, the backslash in C\D becomes an entity, and <b> is written as text rather than HTML. The leading zero in 007 and the emoji skin tone are kept exactly.
Item Quantity Notes A | B 007 šš½ C\D 2 <b>
| Item | Quantity | Notes | | :--- | ---: | :---: | | A \| B | 007 | šš½ | | C\D | 2 | <b> |
How the Markdown table editor formats cells
The output is a GitHub Flavored Markdown pipe table with outer pipes, one space of padding inside each cell and no trailing newline. Line breaks and tabs inside a cell become one space and outer spaces are trimmed, while interior spaces, accents, emoji and joiners are untouched. Characters that Markdown would treat as formatting, such as *, _ and [, are escaped so the destination shows them literally. Some renderers still turn a bare URL into a link.
Need the HTML for a finished document instead? Use the Markdown to HTML converter.
Frequently asked questions
How do I convert an Excel table to a Markdown table?
Select the cells in Excel or Google Sheets and copy them. Paste into the spreadsheet field and choose Replace table. The first row becomes the header, shorter rows are padded with empty cells, and values such as 007, dates and formulas stay exactly as copied text.
Which spreadsheet formats can I paste?
Plain tab-separated text, which is what Excel and Google Sheets put on the clipboard. Quoted fields may contain tabs, line breaks and doubled quotes. An unclosed quote or extra characters after a closing quote is reported, and your current table is left unchanged.
How do I set column alignment?
Each column has an alignment control. Default writes ---, Left writes :---, Center writes :---: and Right writes ---: in the delimiter row. The preview shows the same alignment. Importing spreadsheet rows resets every column to Default.
How are pipes, backslashes and HTML escaped?
A pipe becomes \| so it does not split the cell, and a backslash becomes the entity \. The characters &, < and > become HTML entities, and *, _, ~, backticks and square brackets are backslash-escaped so they render as literal text instead of formatting. Line breaks and tabs inside a cell become a single space.
Is there a size limit?
Tables can have up to 100 body rows and 20 columns, and both the pasted text and the combined cell text are limited to 256 KiB of UTF-8. An over-limit paste is rejected as a whole, and an oversized grid produces no Markdown to copy.
Is my table data uploaded?
No. Editing, spreadsheet parsing and Markdown generation all run in your browser. Cell text, pasted rows and the generated Markdown are not sent over the network, logged, stored or added to the URL.