Markdown Table to CSV Converter
Paste a Markdown table or open a .md file, check the extracted rows, and download a clean CSV for Excel, Google Sheets, or your data workflow. The conversion happens in your browser—no file upload or sign-up.
How to Convert a Markdown Table to CSV
Use the converter above when a README, documentation page, Markdown note, or AI response contains a table you need in a spreadsheet. You do not need to remove the rest of the document first.
Paste the table or open a .md file
Paste Markdown into the editor, or choose a .md or .markdown file up to 5 MB. Files are read in your browser rather than uploaded for conversion.
Check the Markdown table syntax
A valid table needs a header row followed by a separator row, for example | Name | Price | and | --- | ---: |. Left, center, and right alignment markers are accepted. This structure follows the GitHub Flavored Markdown table specification.
Review the table preview
Confirm that the expected headers, rows, and columns were detected. If the preview looks wrong, check the separator row, escaped pipes, and the number of cells in each row.
Download the CSV
Choose Download CSV, then open or import the file in Excel, Google Sheets, Numbers, LibreOffice Calc, pandas, a database tool, or another CSV-compatible app.
What the Converter Keeps—and What It Leaves Out
CSV stores data in rows and columns, not Markdown styling. This converter extracts readable cell values from valid pipe tables and follows RFC 4180 conventions for comma-delimited records: fields containing commas or quotes are quoted, and embedded quotes are doubled. It does not attempt to turn an entire Markdown document into a spreadsheet.
Headers and data rows
The table header and every detected body row are included. Empty cells stay empty, and row order is preserved.
Commas and quotation marks
Cells containing commas or quotes are escaped according to CSV rules, so values such as Office, home remain in one column when the CSV is parsed correctly.
Multiple Markdown tables
All detected tables are written to one CSV in the order they appear. A blank line separates one table from the next; the converter does not create a separate file for each table.
Readable text, not Markdown formatting
Inline code and emoji remain as text. Runs of whitespace in extracted cell text are normalized to a single space. Markdown formatting, link destinations, and column alignment are not included because CSV has no equivalent formatting.
Non-table content
Headings, paragraphs, lists, blockquotes, and code blocks outside a valid table are skipped. This keeps prose from becoming unwanted spreadsheet rows.
Comma-delimited UTF-8 output
The download uses commas as delimiters and includes a UTF-8 BOM for better Excel character detection. Microsoft confirms that Excel can open UTF-8 CSV files normally when they are saved with a BOM. Tab- and semicolon-delimited output are not available.
From Markdown Table to Usable Spreadsheet Data
The most useful Markdown-to-CSV workflows start with an existing table and end with data that can be sorted, filtered, checked, or imported elsewhere.
Export a GitHub README table
Paste the raw Markdown for a compatibility matrix, API parameter list, release table, or project inventory. The surrounding README text will not be added to the CSV.
Move an AI-generated table into Excel
Copy the Markdown table from ChatGPT or another AI response, preview the detected cells, and download it as CSV before sorting or validating the data in a spreadsheet.
Open a Markdown export
If an exported .md file contains one or more pipe tables, open it directly and extract those tables without manually deleting headings, notes, or other prose.
Prepare data for analysis
Turn documentation tables into CSV before cleaning them in Google Sheets, loading them into pandas, or importing them into a reporting or database workflow.
Tested Markdown-to-CSV Behavior
The converter is tested against the cases below so you can see what is preserved and how special values are written. The examples describe the downloaded CSV after the UTF-8 BOM.
| Case | Markdown input | CSV output |
|---|---|---|
| Comma in a cell | Office, home | "Office, home" |
| Double quotes | Say "check size" | "Say ""check size""" |
| Escaped pipe | A \| B | A | B |
| Empty cell | | Ada | | | Ada, |
| Non-ASCII text | München / 東京 | München / 東京 |
| Two Markdown tables | Two valid pipe tables in one document | Both tables in source order, separated by one blank line |
Markdown to CSV FAQ
Can Excel open a Markdown table?
Excel does not treat Markdown table syntax as spreadsheet columns. Convert the table to CSV first, then open the download or use Data > From Text/CSV. If every value appears in one column, select comma as the delimiter during import.
Why was no Markdown table found?
If no table is detected, first check that a separator such as | --- | --- | appears directly below the header. If a table appears but its columns look wrong, check for unescaped pipes and compare the number of cells in each row.
What happens to pipes inside a table cell?
An unescaped pipe can be interpreted as a column boundary. Escape a literal pipe in the Markdown source as \|, then check the preview to make sure the row is split into the right columns.
Will commas in a cell break the CSV columns?
No. A cell containing a comma is wrapped in CSV quotes, and double quotes inside a value are escaped. CSV-aware spreadsheet and data tools will read the value as one field.
Will Excel preserve leading zeros and dates exactly?
The CSV contains the extracted text, but spreadsheet apps may automatically interpret values when opening the file. If IDs such as 00123 or date-like values must remain unchanged, import the CSV and set those columns to Text instead of opening it with automatic type detection.
Is my Markdown uploaded to a server?
No. Markdown-to-CSV conversion runs in your current browser tab, and a file you open is read locally for conversion. The tool does not send your Markdown to a conversion server.
Does this tool batch-convert Markdown files?
No. It accepts one pasted document or one file at a time. For a folder of Markdown files or a repeatable data pipeline, use a script or command-line workflow instead.