Skip to content

Markdown to CSV Converter

Convert a Markdown table into CSV format. Paste a GitHub-flavored Markdown table and export the data for Excel, Google Sheets, or databases.

Category: data
Use Case: Data Extraction, Spreadsheet Export, Documentation to Data
Privacy: 100% browser-based

Conversion Options

Recommended Settings

Pro Tips

  • The separator row (the line of dashes under the header) is detected automatically and skipped
  • Escaped pipes (\|) inside cell values are converted back to literal pipe characters
  • Rows with fewer cells than the widest row are padded with empty values
  • Disable 'Include header row' if you only want the data rows in your CSV
  • Values containing commas, quotes, or line breaks are automatically quoted per CSV spec

Most Popular

Most users keep the header row included and whitespace trimming enabled

When to Use This Tool

Documentation to Data

Extract tabular data from README files, wikis, or technical documentation written in Markdown, and convert it back into CSV for spreadsheets or databases.

Spreadsheet Export

Pull a Markdown table out of a note or report and export it as CSV for opening directly in Excel or Google Sheets.

Data Migration

Convert Markdown-based data tables from static site generators or knowledge bases into CSV for import into other systems or databases.

Content Review & QA

Turn a Markdown table into CSV to quickly scan it in a spreadsheet, checking for duplicates, missing values, or formatting issues.

How It Works

1

Split the Markdown input into lines and detect the separator row (the line of dashes under the header)

2

Parse each remaining row by splitting on unescaped pipe (|) characters

3

Unescape any \| sequences back into literal pipe characters within cell values

4

Pad rows with fewer cells than the widest row so every row has the same column count

5

Escape CSV special characters (commas, quotes, line breaks) and join cells with commas

100% Private

Files never leave your device. All processing happens locally in your browser.

Lightning Fast

Powered by Pure JavaScript for optimal performance on modern browsers.

Secure

No data collection, no tracking, no sign-up required.

Frequently Asked Questions

What Markdown table format does this tool expect?

Standard GitHub-flavored Markdown tables: a header row, a separator row of dashes (optionally with colons for alignment), and one or more data rows, all using pipe (|) characters to separate columns.

Do I need the separator row for this to work?

The separator row is automatically detected and skipped if present, but the tool doesn't strictly require it - it will still parse rows correctly as long as they use pipe-separated columns.

What happens to escaped pipe characters?

A backslash-escaped pipe (\|) inside a cell is converted back into a literal pipe character in the CSV output, since CSV doesn't need pipes to be escaped.

What if my table rows have different numbers of columns?

Rows with fewer cells than the widest row in the table are padded with empty values, so the resulting CSV always has a consistent number of columns.

Can I exclude the header row from the CSV?

Yes. Uncheck 'Include header row in CSV' if you only want the data rows in your output, for example when appending to an existing CSV file that already has headers.