Markdown Table to CSV
Extract a Markdown table to CSV for spreadsheets and databases.
Extract a Markdown table to CSV for spreadsheets and databases. Paste your content and get an instant result.
Paste Markdown containing a table and this page extracts its cells as CSV, with a choice of comma, semicolon, tab or pipe as the delimiter.
It converts the first table it finds. When the input holds more than one, the page shows a warning naming how many tables were seen and still converts only the first, rather than merging unrelated grids into one file.
The extraction runs in the tab. The header row, the alignment row and the body rows are read from the Markdown grid, and quoting is applied where a cell contains the delimiter or a quote character.
Which table is converted
A table is recognised by a header row followed by a divider row of dashes and optional colons. The first such block in the document is the one that becomes the CSV file.
A document with no table is refused with a sentence explaining what a table looks like. An empty cell stays empty rather than being filled with a placeholder.
- The first Markdown table in the input
- Comma, semicolon, tab or pipe as the delimiter
- A warning when more than one table is present
How cells are quoted
A cell containing the chosen delimiter, a double quote or a line break is wrapped in quotes and its internal quotes are doubled. That is the CSV escaping a spreadsheet expects, and it is why a pipe in a cell does not break a comma-separated file.
Alignment markers from the divider row are not written into the CSV: they describe presentation, not data.
How to use the converter input
Paste the Markdown into the input workspace or drop the file onto the drop zone, pick the delimiter, comma, semicolon, tab or pipe, and read or Download the CSV. The page converts the first table it finds: a header row plus a divider row of dashes, and a page with a second table shows a warning naming how many were seen while still converting only the first.
Cells are quoted the way a spreadsheet expects: a cell holding the delimiter, a quote or a line break is wrapped in quotes with internal quotes doubled. Alignment markers are not written. A document with no table is refused with the sentence explaining what a table looks like.
What to Expect
Best for
- Getting a spreadsheet-ready file from a Markdown table
- Extracting one table out of a long document
- Choosing a delimiter that matches a regional spreadsheet setting
Not ideal for
- Documents with several tables that all need exporting
- Text that is not already a Markdown table
- Preserving cell formatting such as bold or links
What this tool keeps
- The header row as the first CSV record
- Every body row in its original order
- Cells that contain the delimiter, quoted rather than split
What may need cleanup
- Only the first table, when the document held several
- Inline Markdown inside a cell, which is written as its source text
- An empty trailing column, if the source grid was ragged
Common errors
- Pasting a table without its divider row and expecting a conversion
- Expecting all tables from a multi-table document
- Choosing a delimiter that already appears unquoted in the data
Example use cases
- Importing a README table into a spreadsheet
- Extracting one table from release notes
- Producing a semicolon-delimited file for a locale that expects one
Sample input
Paste a three-column region and revenue table and choose the comma delimiter.
Sample output
A CSV whose header record is Region, Revenue, Growth and whose body rows follow the Markdown table's order.
Who this is for
- Analysts moving documentation into a spreadsheet
- Developers extracting a table from a Markdown file
- Anyone who needs a delimiter other than a comma
Want the other direction? Use the CSV to Markdown Table.
Frequently asked questions
Which table does the Markdown-to-CSV converter read?
The first Markdown table in the pasted document, with a choice of comma, semicolon, tab or pipe as the delimiter.
Does it keep bold or links inside a cell?
No. Inline Markdown is written as its source text rather than rendered formatting.
What if my document has several tables?
Only the first table is extracted, so a document with several needs one run per table.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.