AnyTool
Your files never leave your device. All processing happens locally in your browser.

How do I convert a Markdown table to CSV?

Paste your Markdown (or drop a .md file) into AnyTool's Markdown to CSV tool and it extracts every table in real time and shows the CSV instantly. It uses a GFM-compliant parser, so tables with or without outer pipes, escaped pipes (\|), alignment rows, and inline formatting (**bold**, links, `code`) all convert correctly. You can keep cells as markdown or flatten them to plain text, pick a delimiter (CSV/TSV/semicolon/pipe), export JSON, and download multiple tables as a zip — all in your browser, nothing uploaded.

  • Extracts every table, in real time
  • GFM-correct: escaped pipes, alignment, loose pipes
  • Plain-text or keep-markdown cells · CSV / TSV / JSON
  • 100% in your browser — no upload, no signup

What is

Markdown table

A Markdown (GFM) table is written with pipe characters separating columns and a row of dashes separating the header from the body, optionally with colons to set column alignment. Converting it to CSV turns that text table into comma-separated values that spreadsheets, databases and BI tools can import.

File Tools

Related terms

GFM tableCSVTSVpipe tabledata export

How to Convert Markdown to CSV

Extract tables from Markdown and export CSV/TSV/JSON in your browser.

10 secWeb browser
  1. 1

    Add Markdown

    Paste Markdown, drop a .md file, or load the sample. Tables are detected live.

  2. 2

    Choose options

    Pick CSV/TSV/JSON, a delimiter, plain-text vs markdown cells, and headers.

  3. 3

    Copy or download

    Copy the output, download a single table, or download all tables as a zip.

Result: CSV / TSV / JSON extracted from your Markdown tables

Frequently Asked Questions

Not with AnyTool — the Markdown is parsed in your browser and never sent to a server.

Table extraction and CSV generation run entirely client-side, so even private documentation tables stay on your device.

Yes — it uses a GFM parser, so inline formatting and escaped pipes (\|) are handled correctly.

You can flatten cells to plain text (dropping **bold**, [links](url) and `code`) or keep the raw markdown; escaped pipes are treated as literal characters, not column separators.

Yes — it finds every table in the document and can download them all as a zip.

Each table is listed separately; pick one to preview, or download all tables at once as CSV/TSV/JSON in a single zip file.

Detailed Explanation

Methodology

How the Markdown to CSV Tool Works

AnyTool extracts tables using marked's GitHub-Flavored-Markdown lexer rather than a hand-rolled line parser, so it correctly handles tables with or without outer pipes, escaped pipes (\|) inside cells, alignment rows (:--:), ragged rows, and tables nested inside blockquotes or lists. Each cell can be flattened to plain text — dropping inline markdown such as bold, links and inline code while keeping the content — or kept as raw markdown. CSV/TSV is generated with papaparse so quoting and escaping are RFC-4180 correct, and JSON output (array of objects keyed by header) is also available. Extraction runs in real time as you type, every table in the document is found, and multiple tables can be exported together as a zip. Everything runs client-side; the Markdown is never uploaded.

  • Runs client-side — Markdown is never uploaded
  • GFM lexer (marked): escaped pipes, alignment, loose/outer-pipe tables, nested tables
  • Plain-text flattening or keep-markdown cell modes
  • RFC-4180 CSV/TSV via papaparse + JSON output
  • Real-time extraction of every table; multi-table zip export
  • No CDN, no backend
How It Works

Why a Real Parser Matters

Many online converters split on the pipe character with string operations, which breaks on escaped pipes, tables without outer pipes, and inline links that contain characters like commas. Using a GFM-compliant lexer means the same structure GitHub renders is the structure exported, so the CSV matches the table you see. The tool also normalizes ragged rows to the header width and can skip blank rows.

Markdown→CSV: AnyTool vs typical online converters
CapabilityAnyToolTypical converters
ParserGFM lexer (spec-correct)Often string split on |
Escaped pipes / loose tablesHandledOften broken
Cell formattingPlain-text or keep-markdownUsually raw only
OutputCSV / TSV / JSON + zipUsually CSV only
Data handlingParsed in your browserSometimes uploaded

Capabilities reflect the live AnyTool tool; competitor behavior varies by service.