Text and Data Tools

Markdown → CSV

Extract the fields of one Markdown table and convert them to CSV for copying or downloading.

Markdown Table

CSV Output

Table Preview

Recognize Markdown headers, alignment rows, and escaped pipes to generate correctly quoted CSV.

Your input is processed only in your browser and is never uploaded to a server.

About This Tool

Markdown to CSV converts a table with a header, separator row, and data rows into CSV. Outer pipes are optional. An escaped pipe (\|) stays inside its cell instead of starting a new column. You can copy or download the converted data.

How to Use It

  1. Paste a complete Markdown table, including the header and --- separator row.
  2. Choose the output CSV delimiter.
  3. Click Convert. If column counts differ, fix escaping or explicitly enable compatibility mode.
  4. Check the CSV, then copy it or download converted.csv.

Examples

  • | name | age | and | --- | --- | followed by | Tom | 20 | become name,age followed by Tom,20.
  • | :--- | ---: | defines alignment and is excluded from CSV records.
  • | Tom | A \| B | becomes Tom,A | B, preserving the pipe inside the field.

Rules and Limits

Include a valid header separator row and use the same number of columns in each row. Extra cells cause an error by default and are never silently discarded. For an unescaped A | B, compatibility mode can merge extra cells into the last column. Check the merged result; \| remains the standard way to write a pipe inside a cell. Convert one table at a time, not an entire Markdown document.

Common Uses

  • Import a README table back into data tools.
  • Extract small tables from documentation.
  • Preserve cell content containing commas, quotes, or pipes.

Privacy

Your text, files, and previews are processed in your browser. Your input is never uploaded or automatically saved. Save anything you need to keep before leaving the page.

FAQ

Are the outer pipes required?

No. Both | a | b | and a | b are supported, but a valid header separator row is required.

Is the alignment row included in CSV?

No. The markers ---, :---, ---:, and :---: define alignment and are removed from the data.

How do I write a pipe inside a cell?

Use \|. An unescaped pipe normally starts a new column and can produce a column-count error.

Why offer a last-column merge option?

It explicitly repairs some tables containing unescaped pipes. The tool cannot infer the intent of every extra pipe, so this mode is off by default and asks you to check the result.

Does it support arbitrarily complex Markdown?

No. It cannot losslessly convert nested tables, merged cells, or entire documents. It focuses on a single conventional Markdown table.

Back to Developer Tools