Convert Markdown to CSV Online
Turn a Markdown table into a CSV file you can open in Excel or import anywhere. The table is read in your browser and never uploaded.
Drop a CSV or Excel file here
CSV · XLSX · XLS · XLSM · XLSB
Ready to download as a binary file.
How to convert a Markdown table to CSV
Three steps from limits.md to CSV.
1. Paste the table
Paste a Markdown pipe table or drop a .md file.
2. Check it in the grid
Strip the thousands separators if the CSV is going into a tool that should treat the limits as numbers.
3. Choose a delimiter
Comma, semicolon, tab or pipe. The text updates as you switch; copy it or download data.csv.
Example: Markdown in, CSV out
A usage-limits table with thousands separators, right-aligned columns and no outer pipes.
Limit | Free | Pro
-------------- | ----: | ------:
Requests / day | 1,000 | 100,000
Max file size | 5 MB | 2 GBLimit,Free,Pro
Requests / day,"1,000","100,000"
Max file size,5 MB,2 GB1,000 and 100,000 contain commas, so they are quoted in the CSV ("1,000"). The table has no outer pipes, which is fine: they are optional.
What changes between Markdown and CSV
Quoting
A value is put in double quotes only when it contains the delimiter, a double quote or a line break, and inner quotes are doubled. Here the value 1,000 is written as "1,000".
Encoding
The download is UTF-8 without a byte-order mark. If Excel shows accented characters wrongly after a double-click, open the file through Data > From Text/CSV and choose UTF-8.
Header and separator
The row above the separator line becomes the header (Limit, Free and Pro). The separator is dropped, along with its alignment colons.
When to convert Markdown to CSV
- Taking a table out of documentation and into a spreadsheet for analysis.
- Exporting a table from notes (Obsidian, a wiki) into a tool that imports CSV.
Markdown to CSV in JavaScript
A pipe table is easy to split by hand. Then each field is quoted only where CSV needs it.
import { readFile } from 'node:fs/promises';
const lines = (await readFile('limits.md', 'utf8')).split('\n').filter((l) => l.includes('|'));
const cells = (line) => line.trim().replace(/^\||\|$/g, '')
.split(/(?<!\\)\|/).map((c) => c.trim().replace(/\\\|/g, '|'));
const header = cells(lines[0]);
const rows = lines.slice(2).map(cells); // lines[1] is the separator
const field = (v) => {
const s = String(v ?? '');
return /[",\n]/.test(s) ? `"${s.replace(/"/g, '""')}"` : s;
};
console.log([header, ...rows].map((row) => row.map(field).join(',')).join('\n'));Like this page, the split skips the separator line and honours escaped pipes.
Frequently asked questions
Do the padding spaces end up in the CSV?
No. Each cell is trimmed when the table is read, so the extra spaces of a pretty-printed table disappear.
Can I open the result in Excel directly?
Yes. Download data.csv and open it. If your Excel uses semicolons as the list separator, pick Semicolon first so the columns split.
My file has several tables. Can I convert them all?
Paste one table at a time. Every line containing a | is treated as part of the table, so two tables pasted together would be merged into one.
Why do accented characters look wrong when I open the CSV in Excel?
The file is UTF-8 without a byte-order mark, and Excel on Windows may read it with a legacy code page on a double-click. Import it with Data > From Text/CSV and choose UTF-8 (65001).
Does limits.md get uploaded when I convert it to CSV?
No. The table is read in your browser and never uploaded.