Markdown Table to CSV
Paste a Markdown document and get its tables as CSV for a spreadsheet or database. The converter finds every GitHub-flavoured table in the text, even between paragraphs, reads cells correctly when they contain escaped pipes or code spans, optionally strips formatting such as bold, links and inline code, and turns <br> into real line breaks inside cells.
- Runs in your browser
- No sign-up
- Free to use
How to use Markdown Table to CSV
- Paste Markdown containing one or more tables.
- Choose which table, or all tables.
- Decide whether to keep Markdown formatting in cells.
- Copy or download the CSV.
Markdown Table to CSV features
Finds tables
Detects every pipe table in a document, with its line number.
Careful cell parsing
Escaped \| and pipes inside `code` stay in the cell.
Formatting removal
Strips **bold**, *italic*, ~~strike~~, links and code marks.
Line breaks
<br> becomes a line break inside the CSV cell.
Code blocks ignored
Tables inside fenced code blocks are skipped.
Local
Converted in your browser.
When to use Markdown Table to CSV
- Moving a table from a README into a spreadsheet.
- Analysing data published in a GitHub wiki.
- Importing tables from Markdown notes into a database.
- Converting AI-generated Markdown tables into CSV.
Markdown Table to CSV FAQ
What kind of tables are recognised?
GitHub-flavoured pipe tables: a header row, a separator line made of dashes with optional colons, and data rows. Leading and trailing pipes are optional.
What if the document has several tables?
All are listed in the Tables menu with their line numbers; convert one or all of them.
Why are some pipes kept inside cells?
Pipes escaped as \| or inside backtick code spans are part of the content, not cell separators, so they stay in the value.
What does removing formatting do?
It keeps the text of **bold**, links and `code` but drops the Markdown symbols and link URLs, which is usually what a spreadsheet needs.
Can I go the other way?
Yes, with the CSV to Markdown Table tool.
Is my text uploaded?
No. Everything runs in your browser.
Getting tables out of Markdown
A lot of tabular information lives in Markdown: feature comparisons in READMEs, schedules in wikis, results in notes and the tables AI assistants produce. Reading it is easy, but working with it in a spreadsheet requires CSV, and copying a rendered table rarely keeps the structure intact.
The converter scans the text for GitHub-flavoured pipe tables. A table starts with a header line containing pipes, followed by a separator line of dashes, optionally with colons for alignment, and continues until a line without pipes or a blank line. Tables inside fenced code blocks are ignored, since they are examples rather than data.
Splitting rows into cells follows the Markdown rules. Pipes escaped with a backslash and pipes inside backtick code spans belong to the cell content, and rows with too few or too many cells are padded or trimmed to the header width so the CSV stays rectangular.
Cells often contain Markdown formatting. With removal on, emphasis markers, strikethrough, inline code backticks and link syntax are stripped, leaving the visible text, and image syntax becomes its alt text. <br> tags, which Markdown tables use for line breaks, become real line breaks inside the quoted CSV value.
The CSV uses standard quoting, with a choice of comma, semicolon or tab, and an optional byte-order mark for Excel. When several tables are converted together, a blank line separates them.