Markdown Table to CSV Converter
Example
Input:
| name | age | | --- | --- | | Ali | 30 |
Output:
name,age Ali,30
About this converter
Markdown tables live in READMEs, docs and issue comments; the data inside them regularly needs to escape into a spreadsheet. The converter splits rows on pipes (handling the optional outer pipes), recognizes and discards the --- alignment row (including :--- and ---: variants), trims cell padding, and writes proper CSV with quoting where a cell contains a comma or quote. Its honest limitation is Markdown's own: a literal pipe inside a cell must be escaped as \| in the source, and merged/multi-line cells do not exist in Markdown tables, so nothing is lost that was ever there.
Frequently Asked Questions
What happens to the |---|---| row?
It is the alignment definition, not data, and is removed.
Can a cell contain a comma?
Yes — the CSV writer quotes it ("a, b") so spreadsheet tools keep it in one cell.