# CSV to Markdown table converter

> Open a .csv or .tsv file and get a GitHub-flavored Markdown table: the first row becomes the header, quoted cells with commas stay intact, and nothing is uploaded.

Source: https://markdownlens.ayushdev.com/csv-to-markdown · Updated 2026-11-12 · Markdown Lens, free and open source: https://github.com/ayushhagarwal/markdown-lens

Conversion runs locally and reports malformed rows instead of silently discarding parsing problems.

Open the converter: https://markdownlens.ayushdev.com/csv-to-markdown (drop a CSV or TSV file on the page; it is processed in your browser and not uploaded).

## Steps

1. Choose a .csv or .tsv file.
2. Review any row-level parsing warnings.
3. Edit or copy the generated GFM table.

## Example: CSV converted to a Markdown table

Input: `team.csv` (CSV input)

- `name,role,city`
- `"Lee, Ana",Engineer,Berlin`
- `Sam,Designer,New York`

Markdown output:

```markdown
# team

| name | role | city |
| --- | --- | --- |
| Lee, Ana | Engineer | Berlin |
| Sam | Designer | New York |
```

The quoted value "Lee, Ana" stays in one cell instead of splitting at the comma.

## What the converter preserves

- Quoted cells and embedded delimiters
- Header row and source row order
- Blank values and Unicode text
- CSV and tab-separated input

## Limitations

- Very wide datasets may be easier to read in a spreadsheet.
- Markdown tables do not support merged cells.
- Cell formatting and data types are represented as text.
- Tables are limited to 10,000 rows and 250,000 cells.

## How to make a Markdown table from CSV

1. Export your data as CSV (or TSV) from a spreadsheet, database, or script.
2. Drop the file on this page or choose “Open or convert CSV or TSV”.
3. Check the warnings panel for rows with the wrong number of columns.
4. Copy the table into your README, docs, or issue, or download the .md file.

## Markdown table syntax, explained

A Markdown table is a header row, a divider row of dashes, and one line per data row, with vertical bars between columns. The converter writes plain --- dividers; add colons to align a column: :--- for left, :---: for center, ---: for right.

```
| name | score |
| :--- | ---: |
| Ana | 92 |
| Sam | 87 |
```

- [More table examples in the Markdown cheat sheet](https://markdownlens.ayushdev.com/markdown-cheatsheet)

## Frequently asked questions

### Does it support commas inside cells?

Yes. Standards-compliant quoted cells and escaped quotes are handled.

### Is the data uploaded?

No. Parsing and table generation happen in the browser.

### Can I convert TSV (tab-separated) files?

Yes. Open a .tsv file and it is converted the same way as CSV.

### Can it convert a Markdown table back to CSV?

Not in this release. Markdown Lens converts CSV into Markdown tables, not the other way around.

## Related

- [Excel to Markdown converter](https://markdownlens.ayushdev.com/excel-to-markdown): Convert visible XLSX worksheets into Markdown tables.
- [JSON to Markdown converter](https://markdownlens.ayushdev.com/json-to-markdown): Format JSON locally as a reviewable Markdown code block.
