CSV to Markdown converter
Paste CSV or open a .csv file and get a GitHub Flavored Markdown table with its columns lined up.
Everything runs in your browser and nothing you paste or open is uploaded.
Converter
| 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 it
- Add the CSV. Paste it into the box, drop a
.csvfile on it, or press Open a file. Comma, tab and semicolon files are detected. - Shape the table. Set each column to left, center or right, fix a cell in the grid, or untick First row is the header for data with no header.
- Copy the Markdown. Copy Markdown puts the table on the clipboard and Download saves it as
table.md.
Questions
How do I convert CSV to a Markdown table?
Paste the CSV into the box at the top of this page, or press Open a file and pick the .csv. The first row becomes the header, every column lines up, and Copy Markdown copies the table. Set the alignment of a column with the buttons above it.
| Name | Role |
| ------ | -------- |
| Ada | Engineer |
| Grace | Admiral |My CSV uses semicolons or tabs. Does that work?
Yes. The separator is detected from the first lines of the file, so a semicolon file saved by Excel in a European locale and a tab-separated .tsv both read correctly. Choose Comma, Tab or Semicolon under Separator to set it yourself.
What happens to commas, quotes and line breaks inside a field?
A field in double quotes keeps its commas and line breaks, and a doubled quote ("") inside it becomes one quote mark. A line break becomes <br>, because a table row has to stay on one line of Markdown. Pipe characters in the data are escaped as \| so they do not split the cell.
How do I convert CSV to Markdown on the command line?
Pandoc reads CSV and writes GitHub Flavored Markdown in one line. The first row of the file becomes the header row.
pandoc -f csv -t gfm sales.csv -o sales.mdCan I edit the table before copying it?
Yes. The grid under the output holds every cell. Type into it, add or remove rows and columns, or swap rows with columns, and the Markdown updates as you go.
Is there a size limit?
Files up to 50 MB. Every cell gets its own box in the grid, so a CSV with thousands of rows makes the page slow to scroll. For a file that large, pandoc on the command line is the better route.
Is my CSV uploaded?
No. The CSV is parsed and formatted by JavaScript in your browser. Nothing you paste or open is sent to a server or saved.
Other table tools: Markdown table generator, Excel to Markdown and HTML table to Markdown. The guide to Markdown table syntax covers alignment, line breaks and where tables render.