How to convert CSV to a Markdown table
- Paste CSV, open a file or drag one in. Check the rendered preview below the tool.
- Choose Markdown or HTML, and the column alignment you want.
- Copy the result into your README, pull request, wiki or page, or download it as a
.mdor.htmlfile.
Example
This CSV:
Plan,Price,Notes
Team,12,Shared workspaces
Business,29,"SSO | audit log" becomes this Markdown table:
| Plan | Price | Notes |
| -------- | ----- | ----------------- |
| Team | 12 | Shared workspaces |
| Business | 29 | SSO \| audit log | The pipe inside "SSO | audit log" is escaped, so it stays inside its cell instead of creating a new column.
Markdown or HTML?
Use Markdown for GitHub and GitLab READMEs, issues and pull requests, wikis, and Markdown-based documentation. Use HTML for web pages, CMS editors that accept HTML, email templates, or anywhere you need values with line breaks or alignment per column that some Markdown renderers do not support.
Alignment in Markdown is set with colons in the separator row: :--- left, :---: centre and ---: right. In HTML, an inline text-align style is added to each cell.
Limitations
- All columns use the same alignment.
- Large tables (thousands of rows) are valid but hard to read as Markdown; some renderers truncate them.
- Column padding counts characters, so wide characters such as Chinese or emoji may not line up perfectly in plain text. The rendered table is unaffected.
Frequently asked questions
Which Markdown table format is produced?
GitHub-flavoured Markdown (GFM) pipe tables, which are also supported by GitLab, Bitbucket, Obsidian, Notion imports, many static site generators and most documentation tools. Original Markdown has no table syntax.
What happens to pipes, asterisks and line breaks in my data?
A pipe (|) would end the cell, so it is written as \|. Characters that start formatting, links or HTML (* _ ` ~ [ ] < >) are escaped so they show literally. Line breaks inside a value become <br>, or a space if you turn that option off.
Do I need a header row?
Markdown and HTML tables are built around a header row. If your CSV has none, untick "First row contains headers" and the columns are labelled Column 1, Column 2 and so on.
Is the HTML safe to paste into a page?
Yes. Every value is HTML-escaped (&, <, >, ") so data cannot inject tags or scripts. The output contains only table, thead, tbody, tr, th and td elements, plus br if you keep line breaks.
Last updated .