Markdown Table to CSV Converter

Pull a table out of Markdown and turn it into CSV or JSON, handling escaped pipes and line breaks.

Processed on your device. Files are not uploaded

How to turn a Markdown table into CSV

  1. Paste your Markdown table

    Paste or type it into the box, or press Try an example.

  2. Choose CSV or JSON

    Pick the format you want back.

  3. Copy or download

    Open it in a spreadsheet or use it in code.

Worked example

This is what Markdown Table to CSV Converter gives for its own sample values. Open the tool above and change anything to try your own.

Markdown table

| Name | Role |
| :--- | :--- |
| Ada | Engineer |
| Grace | Admiral |
Output
CSV
CSV delimiter
Comma ( , )

Result

Name,Role
Ada,Engineer
Grace,Admiral

About Markdown Table to CSV Converter

Pull the data out of a Markdown table and turn it into CSV or JSON. Alignment colons, escaped pipes and line breaks are understood.

FAQs

Does the table need a divider row?

A normal table has one, such as | --- | --- |. Without it, the first row is still treated as the header.

Can I paste more than the table?

Only lines that contain pipes are read, so surrounding text is ignored.

Can I go the other way?

Use CSV to Markdown Table Converter.

Related tools