Markdown table generator

Paste Excel, CSV or Markdown tables, edit cells and alignment, then export Markdown or CSV.

  • Runs locally
  • Free

Use the tool

Your files are processed in your browser and are not uploaded to a server.

About this tool

Paste Excel, CSV or Markdown tables, edit cells in a grid, add or remove rows and columns, set alignment, and generate a Markdown table or export CSV. Great for READMEs, docs and blogs.

Typical uses

  • Turn Excel data into a Markdown table for a README
  • Edit an existing Markdown table
  • Quickly create aligned tables for documentation

How to use

  1. Paste Excel TSV, CSV or a Markdown table, or import a UTF-8 text file and choose whether the first row is a header.

  2. Edit headers and cells, add or remove rows and columns, choose alignment, then preview and copy or download Markdown or CSV.

Example

Copy rows and headers from Excel, import as TSV, right-align numeric columns and copy the Markdown. Pipes and line breaks in cells are handled automatically.

Good to know

Up to 200 data rows, 30 columns and 2000 cells including headers; 1 MB input and 2 MB output. Plain text is escaped for Markdown/HTML, with line breaks written as <br>. Markdown import preserves displayed text rather than emphasis or link formatting. CSV protects formula-like text.

Produces safe plain-text table cells without executing HTML. Import preserves displayed text rather than original Markdown syntax or styles. CSV export protects formula-like content.

What the generated Markdown looks like

The tool writes GitHub Flavored Markdown (GFM) tables: every line starts with “| ” and ends with “ |”, cells are separated by “ | ”, and the second line is the delimiter row that carries the alignment. Here is the complete export of a three-column table with the city left-aligned, the population right-aligned and the notes centred:

Exported line
| City | Population | Notes |
| :--- | ---: | :---: |
| Leeds | 536,280 | West Yorkshire &#124; UK |
| Austin | 974,447 | &#42;&#42;state capital&#42;&#42; |

Two things to notice. First, cells are not padded with spaces to line the columns up in the source, and wide CJK characters are not padded by display width either. Renderers such as GitHub, GitLab or Typora lay the table out themselves, and compact rows mean that editing one cell never forces you to re-pad the whole table. Second, the pipe and the asterisks inside cells have become character references (see the next section), so “West Yorkshire | UK” stays one cell and “**state capital**” shows its asterisks instead of turning bold.

Column header drop-downDelimiter cellNotes
Default---No colon; the renderer decides, usually left. The tool’s “Live preview” also shows these columns left-aligned.
Left:---Colon on the left.
Center:---:Colons on both sides.
Right---:Colon on the right; useful for amounts and counts.

How cell content is escaped

Every cell is treated as plain text: what you type is exactly what the rendered table shows, never interpreted as Markdown or HTML. The tool achieves this by replacing characters that could start syntax with HTML character references, for example | becomes &#124;. The middle column is the tool’s real output for the cell on the left (↵ marks a line break, ␣ a space):

Cell contentMarkdown sourceWhy
A | BA &#124; BA raw pipe would end the cell.
<b>x</b>&#60;b&#62;x&#60;/b&#62;Tags are neither run nor rendered.
**bold**&#42;&#42;bold&#42;&#42;Does not turn bold.
[x](y)&#91;x&#93;(y)Does not turn into a link.
~~x~~&#126;&#126;x&#126;&#126;Does not turn into strikethrough.
C:\tempC&#58;&#92;tempColons and backslashes are escaped.
user@example.comuser&#64;example&#46;com@ and . are escaped so renderers do not auto-link the e-mail address.
https://doc80.comhttps&#58;//doc80&#46;com“:” and “.” are escaped so the URL is not auto-linked.
␣␣indented␣&#32;&#32;indented&#32;Edge spaces become &#32;, otherwise the table syntax trims them.
Tom & JerryTom &amp; Jerry& is written as &amp;.
&copy;&amp;copy;An existing entity stays visible as “&copy;” instead of becoming ©.
Line 1↵Line 2Line 1<br>Line 2Line breaks become <br>, the only line break GFM tables allow.
# h# h# has no meaning inside a cell, so it is left alone.
+1+1+, - and = are not escaped here; only the CSV export treats them.

The escaped source is harder to read by eye, but it imports back cleanly: paste the exported Markdown into the tool, choose “Markdown / GFM”, and you get exactly the same headers, cells and alignments. If you want a link or bold text to work inside a cell, edit the source after exporting, or write that table by hand in a Markdown editor.

Rules for importing Markdown, Excel and CSV

In “Paste / import a table”, with “Input format” set to Markdown / GFM, the tool accepts exactly one complete table. The GFM spec says that a body row with fewer cells than the header gets empty cells, and that extra cells are ignored. The tool is stricter about extra cells and refuses the import, so nothing is dropped silently. Real results (¦ separates cells, / separates rows):

Pasted textImported tableNotes
| a | b |↵|---|:-:|↵| **x** [link](https://e.com) `c` | y<br>z |↵| only |a ¦ b / x link c ¦ y↵z / only ¦ ∅Bold, links and inline code keep only their display text; <br> becomes a line break again; the short second row is padded; the centre alignment is read.
| a | b |↵|---|---|↵| 1 \| x | 2 |a ¦ b / 1 | x ¦ 2An escaped \| becomes an ordinary pipe.
| a | <b>x</b> &lt; |↵|---|---|↵| ![alt](u.png) | ~~d~~ |a ¦ <b>x</b> < / alt ¦ dHTML tags stay as text and &lt; decodes to <; an image gives its alt text; strikethrough is dropped.
| a | b |↵|---|---|↵| 1 | 2 | 3 |“A Markdown row has more cells than its header. Import was cancelled to avoid losing data. Add headers or escape | inside cells.”The third cell has no header.
Intro↵↵| a |↵|---|↵| 1 |“Paste exactly one complete GFM table with a header and --- separator row, without code fences or surrounding text.”No paragraphs before or after the table, and no code fence.

Cells copied from Excel arrive tab-separated (TSV). When a cell contains a line break, Excel wraps it in double quotes, and the tool reads it back as one cell with a line break. Short rows are padded at the end. With “First row is the header” unticked, headers are named Column 1, Column 2 and so on:

Pasted textImported tableNotes
Name⇥City↵"Line1↵Line2"⇥Tokyo↵Only↵Name ¦ City / Line1↵Line2 ¦ Tokyo / Only ¦ ∅The quoted line break is kept; the “Only” row gets an empty City.
a,b↵1,2↵Column 1 ¦ Column 2 / a ¦ b / 1 ¦ 2The first line becomes data.
a;b↵"1,5";2a ¦ b / 1,5 ¦ 2With “CSV (;)”, the comma inside quotes is just a decimal comma.
a,"b↵1,2“Invalid CSV / TSV quoting. Check the quotes and delimiter.”The quote is never closed.

Every import is a “Replace current table” step and goes into the undo history, which keeps 20 steps. File import accepts .csv, .tsv, .txt, .md and .markdown in UTF-8 only; .md files are always parsed as Markdown, .tsv files as TSV.

Size limits, error messages and CSV export

Three limits apply together: at most 200 data rows, 30 columns, and 2,000 cells including the header row. The more columns a table has, the fewer rows fit:

ColumnsMost data rowsCells incl. header
1200201
52001,005
92001,809
101992,000
20992,000
30651,980
MessageWhen it appears
Limit: 200 data rows, 30 columns and 2,000 cells including headers. Split the table before importing.Any limit in the table above is exceeded. Checked on import and when adding rows or columns.
A cell cannot exceed 10,000 characters.One cell is longer than 10,000 characters (JavaScript string length).
Input or total cell text cannot exceed 1 MB.The paste box or imported file is over 1 MB, or all cell text together is over 1 MB of UTF-8.
Escaped output exceeds 2 MB. Reduce the content before exporting.The escaped Markdown or CSV is over 2 MB. Escaping makes text longer: one “|” becomes six characters.
The file must use UTF-8 encoding.The imported file is not valid UTF-8, for example a CSV saved as Windows-1252 or GBK.
Remove NUL characters before importing; they cannot be reliably exported.The content contains the U+0000 NUL character.

“Download CSV” writes CSV with a UTF-8 byte order mark and CRLF line endings, so Excel opens it with the right characters. Text starting with =, +, - or @ gets a leading apostrophe so a spreadsheet will not run it as a formula; plain numbers such as -5 are left as they are. A real export (the BOM is not shown):

CSV line
SKU,Formula,Delta,Owner
001,'=SUM(A1:A3),-5,'@ops

Sources

Frequently asked questions

How are line breaks in cells handled?

They are written as <br>, and special characters are escaped.

Does importing Markdown keep bold and links?

Only the displayed text is kept, not emphasis or link formatting.

Table size limits?

Up to 200 data rows, 30 columns and 2000 cells.