Markdown Table to CSV
Convert a Markdown table back into CSV.
| Product | Region | Units Sold | Revenue |
|---|---|---|---|
| Wireless Mouse | North | 1240 | 18600 |
| Mechanical Keyboard | South | 860 | 43000 |
| USB-C Hub | West | 2030 | 40600 |
| 4K Monitor | East | 415 | 124500 |
Fields are quoted only when they contain the delimiter, a quote or a line break — "like, this".
How to use Markdown Table to CSV
What this tool does
This tool takes a Markdown table and converts it back into CSV. You paste the
table — or drop a .md, .markdown or .txt file — and it produces clean
comma-separated values that you can open in Excel, Google Sheets, Numbers or
any database import wizard.
A Markdown table is a way of writing a table in plain text: each row is written
between vertical bars (|), the first row holds the headings, and a row of
dashes underneath separates the headings from the data. It looks tidy inside a
README, a wiki or a chat message — but it is not a format you can do maths on.
CSV (comma-separated values) is. This tool reverses the conversion, so numbers
trapped inside a document become a working dataset again. It loads with a sample
table so you can see exactly what valid input looks like.
A live preview shows the parsed table as a real grid, so you can confirm the columns lined up correctly before you copy or download the CSV.
Why and when you would use it
You will reach for this whenever useful data is “stuck” inside a document. A teammate posts a comparison table in a pull request, a product page lists pricing in a Markdown table, a wiki holds a table of results — and you need to sort it, total a column or chart it. None of that is possible while the data is Markdown.
Typical situations: pulling a results table out of a GitHub or GitLab README to analyse it, lifting figures from a Notion or Obsidian note into a spreadsheet, turning a table someone pasted into chat into an importable file, or extracting a data sample from documentation to merge with a larger export. It is the natural companion to the CSV to Markdown Table tool, which goes the other way. If you instead need to display a table on a web page, the CSV to Table tool and the Table Generator handle that, and the Markdown to HTML tool converts a whole Markdown document — tables and all — into HTML.
How to use it
- Paste your Markdown table into the input box, or drop a
.md,.markdownor.txtfile onto the dropzone. - The tool finds the first pipe table, skips the dashes separator row, and shows the result in the parsed-table preview. Check that the columns look right.
- Choose the output delimiter — comma is standard, but semicolon, tab and pipe are available for tools that expect them.
- Decide whether to include the header row in the output, and whether to quote every field (some strict importers prefer that).
- Use Copy CSV to copy the result, or Download .csv to save it.
Common pitfalls and tips
The most common problem is input that is not actually a Markdown table. If the dashes separator row is missing, or the lines have no vertical bars, the tool cannot recognise a table and will tell you so — add the separator row or fix the bars and try again.
Ragged rows are handled automatically: if one row has fewer cells than the header, it is padded with blanks; if it has more, the extras are dropped. Check the preview if a row looks wrong in your source.
Be careful once the CSV reaches a spreadsheet. Excel loves to “helpfully” reformat data on import — it strips leading zeros from ZIP codes and SKUs, turns long numbers into scientific notation, and may misread dates. If a column must stay exactly as written, import it as text rather than letting the spreadsheet guess. Smart quotes and other curly punctuation copied from a document survive into the CSV unchanged; clean them up in the spreadsheet if a downstream system is fussy. Finally, if your document has several tables, only the first is converted — the tool shows a note when that happens.
Privacy
This converter runs entirely inside your browser. The Markdown you paste or the file you drop is parsed and turned into CSV by JavaScript on your own device. It is never uploaded, never stored and never logged, and closing the tab erases it. You can safely convert tables that contain customer data, internal metrics or anything else confidential — it never leaves your computer.
Frequently asked questions
What does a Markdown table look like?
Why turn a Markdown table back into CSV?
What is the row of dashes in a Markdown table for?
What if my text contains more than one table?
Is my data private when I use this tool?
Related tools
CSV to Markdown Table
Convert CSV data into a Markdown table.
CSV to Table Converter
Convert CSV data into an HTML table.
Table Generator
Build tables and export them as HTML, Markdown, or CSV.
CSV Viewer & Editor
View and edit CSV files in a clean table.
Markdown to HTML
Convert Markdown into HTML.
HTML to Markdown
Convert HTML into clean Markdown.