About This Tool
CSV → Markdown first restores actual fields with the existing CSV parser, then generates headers, alignment separators, and data rows. Quoted commas stay in their fields, and pipes inside Markdown cells are escaped.
How to Use It
- Paste CSV and check the delimiter and header option.
- Choose one alignment setting for all columns.
- Click Convert and inspect the header, separator row, and escaped fields.
- Copy Markdown or download table.md, then check it in Markdown Preview.
Examples
- name,age / Tom,20 becomes a two-column Markdown table with a --- separator row.
- The CSV field A | B becomes A \| B in Markdown, without creating an extra column.
- Quoted CRLF, CR, and LF line breaks become <br> rather than extra data rows.
Rules and Limits
CSV parsing reuses Papa Parse. Markdown output escapes backslashes, pipes, and formatting characters; entities preserve leading and trailing whitespace and HTML characters. Cell line breaks always become <br>. Platforms allowing raw HTML may display a line break, while the local safe preview disables raw HTML and displays <br> as text. The shared alignment option controls the separator row, which is not treated as data.
Common Uses
- Add data summaries to README files and project documentation.
- Build Markdown tables from spreadsheet exports.
- Avoid manually escaping pipes in table fields.
Privacy
Text processing, file reading, conversion, and previews all run locally in this browser. Input is not uploaded or automatically saved. No backend, database, online API, or third-party CDN is used. Copying and downloading also happen locally.
FAQ
Will a comma inside a field split it into columns?
Not when the field is properly double-quoted. This page uses a CSV parser rather than splitting text at every comma.
Why is there a backslash before a pipe?
Pipes separate Markdown table columns. The sequence \| represents a literal pipe within a cell.
What happens to multiline fields?
Cell line breaks become <br> to preserve table rows. Raw HTML support varies between platforms; the local safe preview displays that tag as text.
Can HTML inside a field execute?
The tool produces Markdown text without executing HTML. Original HTML characters become entities; check the target platform’s Markdown behavior before publishing.