Data Tools
CSV to Markdown Table Converter
Convert CSV or Excel data into an aligned GitHub Markdown table, with quoted fields kept intact and pipes escaped, or paste a Markdown table to get CSV back.
How to use CSV to Markdown Table Converter
Paste CSV with the header in the first row and the Markdown table appears as you type. Paste a Markdown table instead and it converts back to CSV. Adjust the alignment or padding, then press Copy result.
- Paste CSV or a Markdown tablePaste CSV, TSV or Excel cells. A pasted Markdown table is recognised and converted back to CSV.
- Set header and alignmentKeep First row is the header ticked, or untick it to add Column 1, Column 2 headers. Choose an alignment if needed.
- Copy the resultUntick Pad columns to line up for compact Markdown, then press Copy result.
Example: CSV with quoted commas
The sample has three lines: name,role,city, then Alice,"Engineer, backend",London and Bob,Designer,Shanghai. The quoted "Engineer, backend" stays in one cell, giving | Alice | Engineer, backend | London | under a | name | role | city | header and a separator row of hyphens. With Pad columns to line up ticked, cells are padded with spaces so the pipes line up in the source; untick it for the compact form with a | --- | --- | --- | separator. Short rows are padded with empty cells and flagged in a warning, and an unclosed quote is reported with its line number.
Markdown back to CSV and special characters
A pipe inside a cell would end the cell early in Markdown, so it is written as \| and a line break inside a quoted CSV field becomes a br tag. When you paste a Markdown table, the separator row and its alignment colons are removed, \| and br tags are turned back into pipes and line breaks, and fields containing commas, quotes or line breaks are quoted in the CSV output. Automatic delimiter means comma in this direction, or choose semicolon, tab or pipe. If your CSV has no header row, untick First row is the header: Markdown tables must have one, so Column 1, Column 2 and so on are added and your first row stays as data.
Accuracy and data handling
Keep the original data and spot-check fields, types and delimiters before using an important conversion. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
How do I convert CSV to a Markdown table?
Paste the CSV with column names in the first row. The Markdown table is generated as you type, with a header, a --- separator row and one row per record, ready for GitHub, GitLab or a wiki.
Will commas inside quotes break the table?
No. Quoted fields are parsed by CSV rules, so commas and line breaks inside quotes stay in one cell, and a doubled quote "" is restored to a single quote.
Can I convert a Markdown table back to CSV?
Yes. Paste the Markdown table and leave Direction on Detect automatically. The output is CSV, with cells containing commas wrapped in double quotes.
More Data Tools
Related toolsConvert tab-separated spreadsheet data to CSV, or CSV back to TSV.
Switch CSV delimiters between comma, semicolon, tab and pipe, with decimal options.
Sort JSON keys alphabetically at every level, with optional array sorting.
Deep merge JSON documents, apply a Merge Patch and see which values changed.
Compare two JSON documents and list every added, removed or changed value.
Remove duplicates from a list or JSON array and see how often each value repeats.