CSV to Markdown Table Converter
Convert CSV files into Markdown table syntax (`| col1 | col2 |`). Choose the delimiter, whether to use the first line as a header, and column alignment (left, center, right). The result can be copied or downloaded. Conversion runs entirely in your browser; no data is sent to a server.
| Delimiter |
|
|---|---|
| Use first line as header | |
| Column alignment |
|
Enter CSV data to see the generated Markdown table here.
How a CSV row maps to a Markdown table
| One CSV row | name,age,city |
|---|---|
| Resulting Markdown syntax | | name | age | city | |
When the first line is used as a header, it becomes the header row, followed by a delimiter row (---) that indicates alignment, and then each subsequent row becomes one data row.
Tips
- Any pipe character (|) inside a cell is automatically escaped as \| so it is not mistaken for a column separator.
- Line breaks inside quoted multi-line cells are replaced with a single space, since a Markdown table row must fit on one physical line.
- Choosing "Left", "Center", or "Right" alignment inserts `:---`, `:---:`, or `---:` into the delimiter row, so renderers like GitHub display the columns with the intended alignment.
- Combine this with the sister tools CSV to JSON and CSV to SQL to convert a single CSV into whichever of the three output formats you need.
Frequently Asked Questions
Side Note — Why Markdown tables need nothing but pipes and hyphens
Markdown was devised in 2004 by John Gruber and Aaron Swartz as a lightweight markup language built around the idea that plain text should still make sense when read as-is. Table syntax is no exception: because rules are drawn with nothing but pipes and hyphens, there is no need for opening and closing tags like HTML's `