Skip to content
Jellykit

Markdown Table Generator

Turn CSV or cells pasted from a spreadsheet into a Markdown table, with aligned columns and the alignment you choose.

  • Runs on your device
Loading tool

About Markdown Table Generator

Writing a Markdown table by hand means counting bars and dashes. Here you paste the data instead: copy a range of cells from a spreadsheet, or type or paste comma-separated values, and get a table ready for a README, a pull request, a wiki or any editor that reads GitHub-style Markdown.

The columns are padded so the table reads well as plain text too, with Chinese, Japanese, Korean and emoji counted at their real width. Bars inside a cell are escaped and line breaks become <br>, so the table never falls apart. Rows with missing cells are filled out, and you are told when that happens.

How it works

  1. The text is read as CSV: quoted cells may hold commas and line breaks, and the delimiter (comma, tab, semicolon or bar) is detected from the first lines unless you choose one. Rows with no text in any cell are left out.
  2. Each cell is trimmed, a bar in it is written as \| and a line break as <br>, which is how GitHub-style Markdown keeps them inside one cell.
  3. Every row gets as many cells as the widest one. The second line of the table sets the alignment with colons, and with lining up on, cells are padded with spaces to the widest entry in their column.

Questions

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

Select the cells, copy them and paste them here. Spreadsheets copy cells separated by tabs, which the tool detects; the first row becomes the header.

What if my data has no header row?

Turn off "First row is the header". Markdown tables must have a header, so the columns are then headed "Column 1", "Column 2" and so on, ready for you to rename.

Can each column have its own alignment?

The alignment you choose applies to every column. To change one column, edit the colons in the second line of the result: :--- is left, :---: is center and ---: is right.

How big a table can it make?

It takes up to 2 MB of text, which is tens of thousands of rows. Most Markdown viewers become slow long before that.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.