CSV ↔ Markdown Table.
Turn CSV into an aligned GitHub Markdown table, or extract a Markdown table back into CSV.
Runs in your browserAbout CSV ↔ Markdown Table
CSV ↔ Markdown Table converts spreadsheet data into the pipe tables used by GitHub, GitLab, Notion and most documentation generators, and extracts such a table back into CSV. The CSV side follows RFC 4180, so quoted cells with commas, quotes or line breaks are read correctly, and the delimiter is detected or chosen. In the Markdown output, pipe characters inside cells are escaped as \| so they do not split the column, line breaks become <br>, and short rows are padded with empty cells. With padding on, every column is widened to its longest value, counting wide characters such as CJK and emoji as two columns, so the raw table lines up in a code editor too. Alignment adds the colons to the separator row, for example | ---: | for right-aligned numbers. A CSV without a header row gets Column 1, Column 2 … as headers, because Markdown tables always have one. In the opposite direction the tool finds the first table in the pasted text, even when it is surrounded by other Markdown, reads the header and separator rows, unescapes \| and converts <br> back to line breaks, then writes properly quoted CSV. A frequent mistake when writing tables by hand is a missing separator row; without it the text is not a table, and the tool says so instead of guessing. Everything runs in your browser.
How to Use
- Paste CSV or a Markdown table and choose the direction.
- Pick alignment and padding for Markdown, or the delimiter for CSV.
- Copy the table into your README or the CSV into a spreadsheet.
Frequently Asked Questions
How are pipe characters in cells handled?
They are escaped as \| in Markdown, which GitHub renders as a literal pipe, and unescaped again when converting back to CSV.
Can a cell contain a line break?
Markdown table cells are single-line, so line breaks are written as <br>. When converting back, <br> becomes a line break in the CSV cell.
Does it work with tables inside a larger Markdown file?
Yes. Paste the whole file; the first table (a header row followed by a | --- | separator row) is extracted.
Is anything uploaded?
No. The conversion runs in your browser.
Related Tools
Turn spreadsheet, CSV or TSV data into an aligned Markdown table, or reformat an existing one.
Render Markdown to HTML with live preview.
Convert between CSV and JSON formats.
Edit CSV files in a spreadsheet-style grid, right in your browser.
Turn CSV rows into SQL INSERT statements for four dialects, or export INSERT statements as CSV.
Convert between HEX, RGB, and HSL formats.