Convert CSV to a Markdown table
Turn CSV into a GitHub-flavored Markdown table.
- Nothing is uploaded
- Free · no account
- Tested on 400k-row files
Reference
CSV to Markdown: how it works
The tool is above. Below: a short overview, optional step-by-step detail, honest browser limits, and answers to common questions.
Last updated 2 min read
About this tool
PrivateCSV converts a CSV file or pasted CSV text into a GitHub-flavored Markdown table, ready for a README, a GitHub or GitLab issue, Notion, Obsidian or any static site. Columns are padded so the table is readable as plain text, number columns are right-aligned, and pipes and line breaks inside values are escaped so the table never breaks. Copy the result with one click; the conversion runs in your browser.
Read the step-by-step guideHow-to, example and use cases (~2 min)
How to convert CSV to a Markdown table
- Paste the CSV text, or drop a CSV file on the picker. Data copied from Excel or Google Sheets works too.
- Keep “First row is a header”: Markdown tables always start with a header row.
- Click Convert to Markdown.
- Click Copy and paste the table into your README, issue, wiki or note.
Example
Three rows with a price column, right-aligned.
Product,Price
Desk lamp,24.90
Office chair,149.00| Product | Price |
| ------------ | -----: |
| Desk lamp | 24.90 |
| Office chair | 149.00 |When you need it
- README files and documentation
- Document configuration options, API fields, price tiers or benchmark results as a table that GitHub, GitLab and documentation generators render.
- Issues, pull requests and chat
- Share a few rows of data in a GitHub issue, a pull request description or a Discord or Slack message that renders Markdown.
- Notes in Notion, Obsidian and Joplin
- Paste the table into a note; Notion turns pasted Markdown tables into native tables.
What the converter takes care of
- Pipes (|) inside values are escaped as \|, so they do not split the cell.
- Line breaks inside a value become <br>, which GitHub renders as a line break inside the cell.
- Columns that only contain numbers, prices or percentages are right-aligned with ---:.
- Cells are padded with spaces so the raw table lines up in a code editor. Untick the option for the most compact output.
- Rows shorter than the header are completed with empty cells, so every row has the same number of columns.
Browser and file limits (not a trial)
These are technical limits of running in your browser—device memory, encoding and what this tool does not do. They are not a free trial, account quota or paid plan. There is no subscription.
- Markdown tables cannot merge cells or hold several lines without <br>.
- Up to 100,000 rows. Markdown tables that large are hard to read; split the file first.
Frequently asked questions
How do I convert CSV to a Markdown table?
Paste the CSV or choose the file above and click Convert to Markdown. The first row becomes the header, a separator row is added, and every value is escaped. Click Copy and paste the table where you need it.
How do I make a table in GitHub Markdown?
Write a header row with cells separated by pipes, then a separator row such as | --- | --- |, then one line per row. Add a colon to align a column: :--- for left, ---: for right, :---: for center. This converter writes that syntax for you from a CSV.
Can I convert an Excel table to Markdown?
Yes. Copy the cells in Excel or Google Sheets, choose Paste CSV data above and paste: the copied cells are tab-separated, which is detected. Or convert the workbook with Excel to CSV first and continue here with one click.
Why does my Markdown table not render?
The separator row is missing or has fewer cells than the header, a blank line is missing before the table, or a value contains an unescaped pipe. Tables made here always have a matching separator row and escaped pipes.
Related tools
Go further
Your files never leave your device
PrivateCSV runs this tool in your browser. No upload, no account, no trial and nothing to install.