Text Tools

CSV to Markdown table converter.

Paste CSV, TSV, semicolon-separated data or cells copied straight from Excel and get a GitHub Flavored Markdown table, with column alignment and pipes escaped. Nothing leaves your browser.

Advertisement

Input

Pasting from Excel or Google Sheets gives tab-separated text, which auto-detect picks up. Quoted fields (RFC 4180) are handled, and line breaks inside a cell become <br>.

Markdown table

Paste data to see the Markdown table.

About this CSV to Markdown table converter

A GitHub Flavored Markdown (GFM) table has one header row, a delimiter row, and zero or more data rows, with cells separated by pipes. This tool builds that structure from delimited text and applies the rules from the GFM specification.

Worked example

Input (comma-separated, one quoted field containing a comma and a pipe):

Item,Qty,Price
Widget,4,9.99
"Gadget, Pro | v2",12,129.50

Output with auto alignment (numeric columns right-aligned, text columns left unspecified):

| Item              | Qty |  Price |
| ----------------- | --: | -----: |
| Widget            |   4 |   9.99 |
| Gadget, Pro \| v2 |  12 | 129.50 |

Rules applied (GFM spec, section 4.10)

Delimiter detection

Auto-detect looks at the first non-empty line, ignoring anything inside double quotes. If it contains a tab, tab wins (this is what Excel and Google Sheets put on the clipboard). Otherwise the most frequent of comma, semicolon and pipe wins, with comma winning ties. Semicolons are common in CSV exported from locales that use a decimal comma. Pick the delimiter manually if a one-column file confuses detection.

Limits

FAQ

How do I turn an Excel sheet into a Markdown table?

Select the cells in Excel, copy, and paste here. The clipboard text is tab-separated and is detected automatically.

Why is my table showing as plain text?

Usually the header and delimiter rows have different cell counts, or there is no blank line before the table. Some renderers (strict CommonMark without the table extension) do not support tables at all.

Is my data uploaded?

No. Conversion runs in your browser and nothing is sent to a server.

Source

Advertisement
Advertisement
Listening…