←
Developer

Markdown Table Generator

Loading the tool…

Ready when you are.Runs in this browser · nothing is uploaded

Grid editor for Markdown & HTML tables

  • Free
  • No sign-up
  • No upload
  • Works offline

Tool facts

Opens
CSVTSVTXTMDHTML
Saves as
MDHTMLTEXTXT
Price
Free, no sign-up, no watermark
Are files uploaded?
No. Everything is processed in this browser, on your device.
Batch processing
One file at a time
Offline use
Works without a connection once this page has loaded
Browser
A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Limits
The grid holds up to 200 rows and 30 columns; files over 5 MB are refused.

Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.

About Markdown Table Generator

Markdown Table Generator lets you build a table in a spreadsheet-like grid and gives it to you in four formats: a GitHub-flavored Markdown table, an HTML table, a LaTeX tabular, and a plain-text table drawn with ASCII +-| or Unicode box lines. Click a cell and type; Tab, Enter and the arrow keys move around. Right-click a row number or column letter (long-press on a phone) to insert, move or delete it, or drag it elsewhere. The left, center or right alignment you set per column carries into every format. The grid holds up to 200 rows and 30 columns and is kept in this browser between visits.

Copy a block of cells in Excel, Google Sheets, Numbers or LibreOffice and paste it into the grid: the tab-separated rows are split into cells, and cells that contain line breaks come through intact. You can also drop a .csv, .tsv, .md or .html file, or paste Markdown or HTML table code; merged HTML cells are split, with the text kept in the top-left cell. In the Markdown output, a pipe inside a cell is escaped as \| and columns are padded by display width, so Chinese, Japanese, Korean and emoji count as two characters and the pipes line up in a monospace editor. Nothing is uploaded.

Markdown Table Generator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.

How to use Markdown Table Generator

  1. Type into the grid, paste cells copied from a spreadsheet, or drop a .csv, .tsv, .md or .html file on the box at the top.
  2. Set each column's alignment with the ⇤ ⇔ ⇥ buttons in its header. Right-click or long-press a row number or column letter to insert, move or delete it.
  3. Switch First row is header on or off, then choose Markdown, HTML, LaTeX or Text table above the output.
  4. Adjust the options for that format, such as Align pipes, Inline style or class for HTML, and booktabs rules for LaTeX.
  5. Click Copy, or Download to save table.md, table.html, table.tex or table.txt.

Frequently asked questions

How do I paste a table from Excel or Google Sheets?

Select the cells in the spreadsheet and copy them, click the cell in the grid where the top-left value should go, and press Ctrl+V (Cmd+V on a Mac). Spreadsheets put copied cells on the clipboard as tab-separated text, with any cell that holds a line break, tab or quote wrapped in double quotes; the grid reads that format, adds rows and columns as needed, and stops at 200 rows and 30 columns. Copying a block from the grid works the other way round, so it lands cell for cell when you paste it back into a spreadsheet. Pasting outside the grid replaces the whole table instead, and Ctrl+Z undoes it.

Why do the pipes line up in my editor but look slightly off on this page?

The Markdown and text-table outputs pad each column to the same display width. CJK characters, full-width forms and emoji count as two columns, combining accents as zero, and everything else as one, following the Unicode East Asian Width property as terminal libraries such as wcwidth do. That lines up in fonts where a CJK character is exactly twice as wide as a Latin letter, as in VS Code, most terminals or Sarasa Gothic. Many browser and system fonts don't keep that 2:1 ratio, so the preview can look uneven while the file itself is aligned. Turn off Align pipes for the compact |a|b| form; it renders exactly the same.

Which characters are escaped in each format?

Markdown: a | inside a cell becomes \|, and a line break becomes <br> because a GFM table row has to stay on one line. HTML: &, < and > become &amp;, &lt; and &gt;, and line breaks become <br>. LaTeX: \ { } & % $ # _ ~ ^ | < and > are replaced with their LaTeX forms, such as \_ and \textbar{}, and a cell with a line break becomes a small one-column tabular, which needs no extra package. Other Markdown in a cell, such as **bold** or a link, is copied as you typed it, and in the HTML output it stays plain text.

What does the LaTeX output need in the preamble?

With booktabs rules on, the table uses \toprule, \midrule and \bottomrule, so add \usepackage{booktabs}. With it off you get vertical lines and an \hline under every row, which needs no package. Column alignment becomes l, c or r in the column spec. If the table contains Chinese, Japanese or Korean text, load ctex or xeCJK and compile with XeLaTeX or LuaLaTeX; the page shows that reminder above the output. The output is the tabular environment only, so wrap it in a table environment if you need a caption or a label.

How are HTML, Markdown and CSV files read?

From HTML, the first table is read. Cells with colspan or rowspan are split into single cells with the text in the top-left one, and the status line says how many were split. White space is collapsed the way a browser shows it, <br> and paragraphs become line breaks, and alignment comes from text-align styles, align attributes or text-left, text-center and text-right classes. Rows in thead, or a first row made only of th cells, become the header. From Markdown, the first GFM table is read with its alignment row. Text with tabs is read as TSV; otherwise the comma, semicolon or pipe that splits the lines most consistently is used. Files are read as UTF-8, or as GBK, Big5, Shift_JIS, EUC-KR or Windows-1252 when they are not valid UTF-8, and files over 5 MB are refused.

· Free · Runs in this browser · nothing is uploaded

Drop any file here
Drop it to see which tools can open it