Markdown Table to CSV Converter

Convert Markdown tables to correctly quoted CSV for spreadsheets and data tools

Name,Department,Salary
John Doe,Engineering,95000
Jane Smith,Marketing,78000
Bob Johnson,Engineering,88000
Name Department Salary
John Doe Engineering 95000
Jane Smith Marketing 78000
Bob Johnson Engineering 88000

How to Use This Tool

  1. Paste a Markdown table into the input box on the left
  2. The CSV output appears instantly on the right, with a live preview of the parsed table below it
  3. Click Copy to put the CSV on your clipboard, or Download to save a .csv file
  4. Open the file in Excel, Google Sheets, Numbers, or feed it to any data tool that reads CSV

About Markdown Table to CSV Conversion

Markdown tables are great for documentation, but the pipe-and-dash syntax is useless the moment you need to analyze the data. CSV (Comma-Separated Values) is the lingua franca of spreadsheets, databases, and scripting languages, so converting a table out of a README, wiki page, or pull request description into CSV is a common chore.

This converter parses the first Markdown table it finds in your input — surrounding prose is ignored, so you can paste a whole document section. It understands escaped pipes (\|) inside cells and converts <br> tags back into real line breaks, two details that naive find-and-replace conversions get wrong.

The output follows the CSV standard: any cell containing a comma, a quote, or a line break is wrapped in double quotes, and embedded quotes are doubled. Everything runs locally in your browser, so your data never leaves your machine.

Frequently Asked Questions

How are commas and quotes in cells handled?

Cells containing commas, quotes, or line breaks are quoted and escaped according to the CSV standard, so spreadsheets import them correctly. You never need to clean up the output by hand.

Can I paste text that contains more than just a table?

Yes. The parser scans your input for the first valid Markdown table — a header row followed by a separator row like | --- | --- | — and converts that. Headings and paragraphs around the table are simply ignored.

Is my data uploaded anywhere?

No. Parsing and conversion happen entirely in your browser using JavaScript. Nothing is sent to a server, which makes the tool safe for confidential data.

Related Tools