CSV to Markdown Table Converter
This CSV to Markdown table converter turns CSV into a GitHub Flavored Markdown table. It finds the separator, whether commas, semicolons, tabs or pipes, handles quoted values with commas and quotes inside, lines up the columns and aligns numbers to the right.
- Comma, semicolon or tab
- Stays on your device
How to convert CSV to a Markdown table
Paste, check the options, copy.
-
Paste your CSV
Paste it into the box, or click Open a file and choose a .csv or .tsv file.
-
Check the options
The separator is found for you; pick one if it guessed wrong. Say whether the first row is the header, and whether number columns align right.
-
Copy the table
Click Copy Markdown and paste it into a README, an issue or a note.
This CSV has 4 products in 4 columns. Two values are quoted because they contain a comma, and one has quotes inside, written as "". The table shows them as Notebook, A5 and Pen "Gel", black, and the Price and Stock columns align right.
From CSV to a Markdown table
What the converter does with each part of the data.
| In the CSV | In the table |
|---|---|
| The first row | The header row, unless you choose Is data; then the columns are named Column 1, Column 2… |
| A value in quotes, like "Notebook, A5" | One cell, with the comma kept and the quotes removed |
| Doubled quotes inside a quoted value: ""Gel"" | One quote character: "Gel" |
| Rows with fewer values than the header | Filled with empty cells |
| A number column, like 4.50 or -7.3% | Aligned right, with ---: under its header |
A | inside a value | Escaped as \|, so it doesn’t split the cell |
| A line break inside a value | <br>, since a Markdown table row is one line |
| Empty rows and empty columns at the end | Left out |
Markdown tables, briefly
A Markdown table is a header row, a row of dashes, and one line per row, with | between the cells:
```
| Product | Price |
| --------- | ----: |
| Desk lamp | 29.99 |
```
A colon on the right of the dashes, ---:, aligns the column right, and :---: centres it. Tables are part of GitHub Flavored Markdown, which GitHub, GitLab, Obsidian, VS Code and most Markdown apps read. A cell can hold bold, italic, links and inline code, but not lists or line breaks.
Lined up pads the cells with spaces so the table is easy to read as text. Compact leaves them out, which makes the Markdown shorter and renders the same.
CSV to Markdown Table Converter FAQ
How do I convert CSV to a Markdown table?
Paste the CSV into the box or open the file. The table appears as you paste, ready to copy.
My CSV uses semicolons. Does that work?
Yes. The separator is found from the data: commas, semicolons, tabs or pipes. Excel saves CSV with semicolons in many European countries.
What if a value contains a comma?
Values with a comma, a line break or a quote must be in double quotes in CSV. The converter reads them as one cell.
Can I make the table without a header row?
Markdown tables always have a header. Choose Is data under First row, and the header becomes Column 1, Column 2 and so on.
How big a table can it make?
Thousands of rows work, though a very long Markdown table is hard to read as text.
Is my text uploaded?
No. The conversion runs in your browser, on this page, so nothing you paste is sent to a server or saved. Closing the page clears it.
Sources and references
More markdown converters tools
- Convert Excel to Markdown Table Converter Turn Excel or Google Sheets cells into a Markdown table. Open tool
- Convert JSON to Markdown Table Converter Turn a JSON list of objects into a Markdown table. Open tool
- Convert HTML to Markdown Converter Turn HTML code or copied web pages into clean Markdown. Open tool
- Convert Notion to Markdown Converter Clean Markdown from Notion: no page IDs in links, callouts as quotes. Open tool