CSV to Markdown
Turn CSV rows into a GitHub-Flavored Markdown table with safe cell escaping.
CSV input
Markdown table
Paste CSV to build a table
Quoted fields, commas and line breaks are handled locally.
Details
CSV to Markdown parses RFC 4180 CSV in the browser — quoted fields, doubled quotes, embedded newlines, CRLF, BOM and comma/semicolon/tab/pipe delimiters — and emits a GitHub-Flavored Markdown table. The first row becomes the header (or generated Column N names), short rows are padded to the widest row, and cells are escaped so pipes and backslashes cannot break the layout. Line breaks inside cells become <br> because GFM tables are single-line. Choose left, center or right alignment, preview the result and download a .md file. Nothing is uploaded.
More examples
Simple table
name,role
Ann,Admin
Ben,EditorThe header row becomes the table header and each following line becomes one GFM row.
Quoted commas
title,note
"Hello, world","She said ""hi"""Quoted commas stay inside one cell and doubled quotes collapse to a single quote.
Cells that break tables
id,text
1,"code | pipe
next line"The pipe is escaped and the embedded newline becomes <br> so the table remains valid.
Examples
Simple table
name,role
Ann,Admin
Ben,Editor| name | role |
| --- | --- |
| Ann | Admin |
| Ben | Editor |The header becomes the first row and each CSV record becomes one row.
Quotes and pipes
title,note
"Hello, world","code | path"| title | note |
| --- | --- |
| Hello, world | code \| path |Quotes are removed and the pipe is escaped so the GFM table stays valid.
About this tool
CSV to Markdown converts spreadsheet exports into GitHub-Flavored Markdown tables that render on GitHub, GitLab and most documentation sites. The converter is dependency-free and runs in your browser, so customer data in a CSV never reaches a server.
It follows RFC 4180 for quoted fields, doubled quotes, embedded line breaks and CRLF, detects comma, semicolon, tab or pipe delimiters, and escapes pipes and backslashes so a single cell cannot break the table layout.
What this tool does not do
- GitHub-Flavored Markdown has no column widths or cell alignment beyond the separator row.
- Line breaks inside a cell are rendered as <br>, not as a real table row break.
- Very wide files produce wide tables that may need horizontal scrolling in the renderer.
- The parser targets RFC 4180; unusual dialect extensions such as backslash escapes are not supported.
How to use this tool
Paste or upload CSV
Type into the input panel, choose a .csv/.tsv file, or click an example chip.
Set the options
Pick a delimiter when auto-detection is wrong, toggle the header row and choose an alignment.
Review warnings
Ragged rows, skipped blank lines and replaced line breaks are reported above the result.
Copy or download
Copy the Markdown or download table.md for your README, issue or docs site.
Use cases
README tables
Turn a spreadsheet export into a table you can paste into a README or wiki page.
Issue descriptions
Share tabular data in GitHub issues without hand-writing pipe separators.
Documentation
Convert generated reports into docs-site tables while keeping quoting correct.
CSV input to GFM output
| CSV | Markdown |
|---|---|
| first row | header row |
| quoted comma | one cell |
| doubled quote | single quote |
| embedded newline | <br> |
| pipe or backslash | escaped |
| short row | padded row |
Detected delimiters other than a comma are reported in the warnings so you can confirm the choice.
Common mistakes
Mistake:Leaving the header switch on for headerless data.
Fix:Turn off 'First row is header' so your first data row is not consumed as column names.
Mistake:Assuming semicolons are always commas.
Fix:Check the delimiter warning; auto-detection scans the first lines and can be overridden.
Mistake:Expecting multi-line cell content to survive.
Fix:GFM tables are single-line, so embedded newlines are written as <br>.
Frequently asked questions
Is my spreadsheet data uploaded?
No. Parsing and table generation happen in your browser tab. No file is sent anywhere and nothing is stored.
Why is my file one big column?
Auto-detection found no delimiter in the first lines, or chose a different one. Select the actual delimiter (comma, semicolon, tab or pipe) in the options row.
Why does my cell show a backslash before a pipe?
GitHub-Flavored Markdown needs \| to keep a pipe inside a cell. The table renders with a plain | character.
What happens to line breaks inside a cell?
They are written as <br> because GFM tables cannot contain raw newlines. A warning tells you how many cells were affected.
Why are my columns shifted?
The file has rows with different column counts. Short rows are padded to the widest row so no cell is silently dropped; the warning confirms the width used.
Related guides
From Spreadsheet Rows to SQL INSERT Statements
How to turn a CSV export into typed, quoted, and safe SQL INSERT statements — and why the naive string-concatenation approach breaks on quotes, NULLs, and dates.
CSV and Markdown Tables: Bridging Spreadsheets and Documentation
How to convert CSV rows to clean GFM tables, handle pipes and newlines inside cells, and avoid the most common escaping mistakes.
References & standards
Related tools
Base32 Encoder / Decoder
Encode and decode Base32 (RFC 4648) with hex input mode and Crockford variant. Handles TOTP secrets. Runs in-browser.
Base58 Encoder / Decoder
Convert hex or text to Base58 and back, with Base58Check validation (version byte + checksum). IPFS CIDs too. In-browser.
Base64 Toolbox
Professional Base64 workspace for text, files and images with Base64URL, MIME, Data URI, strict validation, image preview and ready-to-use snippets.
BibTeX to JSON Converter
Parse .bib bibliographies into structured JSON with authors, months, macros and LaTeX cleanup, all in-browser.
C# to VB.NET Converter
Convert a subset of C# — classes, methods, variables, loops — into VB.NET
CSV Data Viewer
Paste CSV and inspect it as a sortable, searchable table with delimiter detection and inline export.