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 → CSV reads the usual header, separator, and data-row structure, with optional outer pipes. It recognizes escaped pipes instead of treating \| as a column boundary. The shared CSV library generates the output.

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

A row scanner recognizes escapes and delimiters, then validates the separator row and column counts. Extra cells cause an error by default rather than being silently dropped. For an unescaped A | B, an explicit compatibility option merges extra cells into the last column. This repair is ambiguous; the standard form remains \|. This tool processes one table, not an arbitrary full 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

Text processing, file reading, conversion, and previews all run locally in this browser. Input is not uploaded or automatically saved. No backend, database, online API, or third-party CDN is used. Copying and downloading also happen locally.

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