Markdown Table to CSV

Convert a Markdown table back to CSV. Handles the alignment marker row, escaped pipes inside cells, and HTML entities. Output is RFC 4180 CSV ready to drop into a spreadsheet.

How to use the Markdown Table to CSV

Paste a Markdown table. The tool finds the table boundaries (rows of | cell | cell |), strips the alignment marker row, and emits CSV. For mixed Markdown documents with non-table prose, only the table portion is converted.

Markdown tables back into data

Sometimes the data you need is locked inside a Markdown table in a README or doc, and you want it in a spreadsheet or a script instead. Copying cells out by hand is slow and error-prone, especially when the table has an alignment row, padded pipes, or cells containing escaped pipes and HTML entities.

This converter parses the table — finding the rows of | cell | cell |, dropping the alignment marker row, and unescaping \| and entities inside cells — and emits RFC 4180 CSV with proper quoting. Pick comma, semicolon, or tab as the delimiter and the result drops straight into a spreadsheet.

Common use cases

  • Spreadsheet import — pull a table out of a README into Excel or Google Sheets.
  • Data extraction — recover tabular data that only exists in a Markdown document.
  • Re-processing — convert a table to CSV so a script can read and transform it.
  • Content migration — move table data to a system that ingests CSV rather than Markdown.
  • Delimiter choice — emit comma, semicolon, or tab-separated output to match the target tool.

Frequently asked questions

What happens to escaped pipes inside cells?

A \| in a cell is an escaped pipe, not a column break. The converter unescapes it back to a literal | in the CSV output rather than splitting the cell.

How is this different from the table generator?

This goes the reverse direction — Markdown table to CSV. To build a Markdown table from spreadsheet data or a grid, use the Markdown table generator.

Which delimiters can the output use?

Comma, semicolon, or tab. Comma is the default and standard CSV; semicolon suits locales where comma is the decimal separator; tab produces TSV.

Is the output valid CSV?

Yes — it follows RFC 4180, quoting any field that contains the delimiter, a quote, or a line break so spreadsheets parse it correctly.
Embed this tool on your site

Free to embed, no attribution required (but appreciated). Paste this where you want the tool to appear: