PUBLIC.INTERNET

Markdown Table ⇄ CSV Converter

Documentation lives in Markdown tables and spreadsheets live in CSV, and moving data between them by hand means a lot of pipes and commas. Paste a table into the box, choose a direction, and the converter produces the other format. Going to CSV, you pick the delimiter and whether to keep the header row. Going to Markdown, the cells are padded into aligned columns with a separator row. The result comes with row and column counts, a Copy button, and a Download button that saves converted.csv or converted.md.

Conversion Direction

CSV Options

How to convert a table

  1. Under Conversion Direction, choose Markdown → CSV or CSV → Markdown. The label above the box and the output heading update.
  2. Paste your data into the large box. A Markdown table needs a header row and a separator row such as |---|---|, with a pipe at the start and end of each line.
  3. In CSV Options, choose a Delimiter (Comma, Semicolon, Tab, or Pipe). It sets the separator of the CSV you produce, and the one used to read your CSV in the other direction. Include Headers applies only when producing CSV: unchecking it drops the first row.
  4. Click Convert. The result appears in a read-only box with Rows and Columns counts.
  5. Use Copy to put the output on your clipboard, or Download to save it as converted.csv or converted.md.

What the parser handles, and what it does not

Markdown to CSV follows the usual quoting rule: a cell that contains the delimiter, a double quote, or a newline is wrapped in quotes, and inner quotes are doubled, so a cell like He said "hi" survives a round trip into a spreadsheet. The separator row is detected and skipped, and alignment colons such as :---: are dropped, since CSV has no alignment.

The CSV reader is deliberately simple. It splits each line on the delimiter, so a quoted field that contains a comma becomes two columns, and quoted fields spanning several lines are not supported. Markdown rows need a pipe at both ends, otherwise the separator row is not recognized and shows up as data. A literal pipe inside a cell, even an escaped \|, is read as a column break, and pipes in CSV cells are not escaped on the way back. For messy exports, clean those cells first or use a full spreadsheet import.