Free CSV to Markdown converter
CSV to Markdown Table Converter
Turn CSV files, TSV data or copied spreadsheet cells into clean GitHub-style Markdown tables. Choose table alignment, preview the results, then copy or download Markdown without uploading your file.
Convert CSV to a Markdown Table
Paste CSV text, choose a file, or paste cells copied from Excel or Google Sheets.
CSV Input
Markdown Output
Your Markdown table will appear here after conversion.
Table Preview
Showing up to 20 rows and 12 columns. Copy and download include the full table.This is a table layout preview. GitHub or your Markdown editor may display it slightly differently. The Markdown Output above is exactly what you copy or download.
How Do I Convert CSV to Markdown?
To convert CSV to a Markdown table, upload a CSV file or paste CSV data, including cells copied from Excel or Google Sheets. Choose whether the first row contains headings and set the table alignment. Click Convert CSV to Markdown, check the table preview, then copy the Markdown code or download an .md file.
How to Convert a CSV File to Markdown Online
Paste or upload CSV
Paste comma- or tab-separated text, copy cells from a spreadsheet, or choose a .csv, .tsv or .txt file.
Choose table options
Confirm the separator, select whether the first row contains column names, and choose left, center or right alignment.
Copy or download Markdown
Click Convert CSV to Markdown, check the Markdown text and table preview, then copy the result or download a .md file.
CSV to Markdown Table Example
This sample shows what happens to IDs with leading zeros, vertical bars and values spanning more than one line. Try it in the tool above or download the example files below.
CSV input
id,name,note
00127,Alice,"Research | QA"
00128,Bob,"Line 1
Line 2"
00129,陈,"A <script> tag"
00130,João,"Says ""hello""" Download sample CSV Markdown output
| id | name | note |
| :--- | :--- | :--- |
| 00127 | Alice | Research \| QA |
| 00128 | Bob | Line 1<br>Line 2 |
| 00129 | 陈 | A <script> tag |
| 00130 | João | Says "hello" | Download sample Markdown The value Research | QA becomes Research \| QA so the pipe stays inside one cell. The line break in Bob's note becomes <br>, while text such as <script> is displayed as text.
CSV to Markdown Converter Features
Paste Excel or Google Sheets Data
Copy a rectangular range from your spreadsheet and paste it into the input. The converter reads tab-separated rows directly.
Choose Markdown Table Alignment
Choose Left, Center or Right to change how your table columns line up. The Markdown output includes the selected alignment.
Preserve Text and Special Characters
Keep leading zeros in IDs such as 00127. Pipes and formatting characters are escaped so values appear correctly in your Markdown table.
Copy or Download a Markdown Table
Copy the complete code into a README, issue or documentation page, or save it as a UTF-8 .md file.
Convert Excel or Google Sheets Cells to a Markdown Table
Copying a table from Excel or Google Sheets usually creates text with tabs between cells and newlines between rows. Paste that selection in CSV Input and leave Column separator on Auto detect. You can then convert the pasted cells just as you would a CSV file.
If the copied range contains merged cells, formulas or unusual spreadsheet formatting, check the input before copying the result. The converter works with the copied text, not with the original workbook structure, and it does not accept .xlsx files directly. If you have a workbook instead of copied cells, first use our XLSX to CSV converter.
Example: Paste cells copied from a spreadsheet
Select these two columns in Excel or Google Sheets, copy, and paste into the converter. The copied text uses tabs between cells. You do not need to save a separate CSV file first.
Product Quantity
Notebook 12
Pencil 25 With Auto detect and First row contains column names enabled, the result is a two-column Markdown table with Product and Quantity headings.
Which CSV to Markdown Settings Should You Use?
Start with the default settings for a typical CSV with column headings. Change only the options that match your source data or where you plan to paste the Markdown.
| Setting | When to use it | What changes |
|---|---|---|
| Column separator: Auto detect | Ordinary CSV or cells copied from a spreadsheet | Detects common comma, semicolon, tab or pipe separators; choose one manually if the columns look wrong |
| First row contains column names | Your first row is a heading such as id,name | Uses those names in the Markdown header and starts data below them |
| Turn off column names | Your first row is actual data | Creates Column 1, Column 2, etc., and keeps the first row as data |
| Skip empty rows | You do not need completely blank CSV rows | Removes rows where every cell is empty or whitespace; other rows and empty individual cells remain |
| Column alignment | You want text centered or right-aligned | Applies the same alignment to every column; individual columns cannot be aligned separately |
| Line breaks inside cells | Your CSV contains notes with multiple lines | Uses <br> by default or replaces line breaks with spaces |
Example: Your CSV has no header row
If the first line is 00127,Alice, turn off First row contains column names. The converter generates headings and keeps 00127 as the first data value.
| Column 1 | Column 2 |
| :--- | :--- |
| 00127 | Alice |
| 00128 | Bob | Markdown Table Alignment, Pipes and Line Breaks
| CSV data or option | Markdown output | What it means |
|---|---|---|
| Left alignment | :--- | Align table content to the left |
| Center alignment | :---: | Center the table content |
| Right alignment | ---: | Align table content to the right |
| Pipe inside a value | \| | Keep the pipe inside one table cell |
| Multiline value | <br> or a space | Choose whether to retain visual line breaks |
| Empty header cell | Column 1, etc. | Provide a usable heading when the source does not |
GitHub Markdown tables need a heading row followed by a row of at least three hyphens per column. A pipe inside a value must be escaped. Lists and separate paragraphs cannot be placed inside table cells. Markdown tables are best for reading data in documentation, not for preserving every detail of a CSV file. See GitHub's table formatting guide for the official syntax.
Add a CSV Table to a GitHub README or Markdown Document
Use Markdown tables to show a concise list of products, configuration settings, test results or other structured data directly in a README.md, GitHub issue or documentation page. Unlike CSV, the table is readable when the Markdown file is displayed by a compatible renderer.
Prepare only the rows you need
Paste CSV or copied spreadsheet cells above. Long or very wide datasets are usually easier to read in a CSV viewer than inside a Markdown page.
Generate and check Markdown
Select headers and alignment, click Convert CSV to Markdown, then review the code and the small table preview.
Paste it as table syntax
Use Copy Markdown and paste the result into your README or document, leaving a blank line above the table. Do not surround it with triple backticks: that would display code instead of a table.
The preview above shows the table layout. Your GitHub README or Markdown editor may display alignment and line breaks differently, so check the result where you plan to publish it. You can confirm the final appearance in your destination editor. For reference, see the GitHub Flavored Markdown table specification.
What Stays the Same When You Convert CSV to Markdown?
The converter keeps values such as dates, IDs and amounts as text. It changes CSV formatting into Markdown table syntax, so the result is readable but is not an identical copy of your original CSV file.
| Original CSV value or structure | Result in Markdown | Important detail |
|---|---|---|
00127 or a long numeric ID | Same text | IDs are kept as text, including their leading zeros |
Names such as João or 陈 | Same characters | The downloaded Markdown file uses UTF-8 |
Research | QA | Research \| QA | The vertical bar becomes an escaped character, not a new column |
<script> or Markdown formatting characters | Escaped text | Characters appear as text instead of changing the table's formatting |
| Quoted CSV field containing two lines | Line 1<br>Line 2 or one line with a space | Depends on the line-break setting; the source newline is represented differently |
| CSV quote marks and commas separating cells | Markdown pipes and divider row | Quotes used only for CSV formatting are not kept as literal cell content |
| Empty header or completely blank row | Generated column name or skipped blank row | Depends on the column names and Skip empty rows settings |
Keep your original CSV file if you need to preserve its exact contents and formatting. This tool converts text, not Excel formulas, styles or merged cells. To inspect the original CSV values before converting, open the file in our CSV Viewer Online.
Supported CSV Formats and Converter Limits
| Input | CSV, TSV, TXT and pasted spreadsheet cells |
|---|---|
| Output | GitHub Flavored Markdown table (.md) |
| Input file size | Up to 5 MB |
| Rows | Up to 10,000 rows (including the header when used) |
| Columns | Up to 100 columns |
| Total cells | Up to 500,000 |
| Markdown output | Up to 10 MB |
| Input encoding | UTF-8, UTF-8 BOM, UTF-16 BOM; manual UTF-16 LE, Windows-1252 and ISO-8859-1 |
| Export | Copy text or download a UTF-8 .md file |
| Privacy | Conversion runs in the browser; the file is not uploaded to a server |
The visible preview shows at most 20 data rows and 12 columns to keep the page responsive. Copy and download contain the complete generated Markdown table within the limits above.
CSV vs Markdown Tables: When Should You Use Each?
CSV is better for importing and processing structured data in spreadsheet software, databases and scripts. A Markdown table is better for showing a small dataset in a GitHub README, issue, documentation page or note. This converter turns CSV values into readable Markdown table syntax; it does not replace the original CSV file or preserve workbook formulas.
For datasets you want to search or inspect instead, use our CSV Viewer Online. To create a spreadsheet workbook from CSV, use the CSV to Excel Converter.
Why Does My Markdown Table Look Wrong?
| Problem | Likely reason | What to try |
|---|---|---|
| All content appears in one column | Wrong CSV delimiter | Choose comma, semicolon or Tab explicitly |
| Columns shift unexpectedly | Unclosed CSV quotes or uneven rows | Fix quoting and check the warning |
| A pipe splits a Markdown cell | An unescaped vertical bar | Use the generated Markdown code, which escapes pipes |
| Cells appear on multiple lines | CSV contains line breaks inside quoted fields | Choose Keep line breaks or Replace with spaces |
| Text has strange characters | Input file encoding differs from UTF-8 | Select the correct input encoding and reload |
| The first data row becomes a heading | First row contains column names is selected | Turn it off if your file has no headings. The converter will use Column 1, Column 2, etc. |
| The table shows as Markdown code on GitHub | It may be inside a fenced code block, lack a blank line above it, or appear in a viewer without table support | Paste it outside code fences, leave a blank line above it, and use a Markdown page with table support |
| Copy contains more rows than the preview | The preview shows up to 20 rows and 12 columns | Copy and download include the full converted table within the stated limits |
| The table is too large to read | Markdown is intended for smaller display tables | Filter your CSV data before converting |
Convert CSV to Markdown Without Uploading Your Data
CSV reading, conversion, preview, copying and downloading happen on your device. Your source file, its name, cell values and resulting Markdown are not sent to our server or site analytics. General interaction events may be counted without including file contents.
CSV to Markdown Frequently Asked Questions
How do I convert CSV to a Markdown table?
Paste CSV text, upload a CSV file, or copy a table from Excel or Google Sheets. Check the column separator, header and alignment settings, then click Convert CSV to Markdown. Copy the resulting table or download it as an .md file.
Can I convert CSV to Markdown online for free?
Yes. This free CSV to Markdown converter works in your browser without an account or installation. It does not upload your source file to a server.
Can I paste cells from Excel or Google Sheets?
Yes. Copy the cells in your spreadsheet and paste them into the CSV Input box. Tab-separated values are detected automatically. Tables with merged cells or unusual spreadsheet formatting may need adjustment.
Does this converter support TSV files?
Yes. It accepts CSV, TSV and TXT files, along with pasted text. Choose Auto detect or set the column separator to comma, semicolon, tab or pipe.
How are vertical bars escaped in Markdown tables?
The converter adds a backslash before each vertical bar, keeping the value in one table cell. It also handles characters that Markdown might otherwise treat as formatting.
What happens to line breaks inside CSV cells?
By default, line breaks inside a cell become HTML line breaks, written as <br>, which GitHub Flavored Markdown tables support. You can also replace line breaks with spaces. The original CSV text is not modified.
Can I change Markdown table alignment?
Yes. Choose left, center or right alignment before converting. The same alignment is applied to every column. The preview lets you check how the table will look.
Does the tool preserve leading zeros and Unicode?
Yes. CSV cells remain text, so IDs such as 00127 and names with international characters are preserved. The converter does not turn these values into numbers, so their original spelling and leading zeros remain.
Is my CSV file uploaded to a server?
No. File reading, CSV parsing, Markdown generation, preview and downloads happen on your device. General site analytics may count actions but do not receive your file names, cell values or output text.
Can I upload an Excel .xlsx file directly?
No. This converter accepts CSV, TSV and TXT files, not Excel workbooks. Open your workbook in Excel or Google Sheets and copy the cells into CSV Input, or first convert the workbook using our XLSX to CSV tool.
Why does GitHub show Markdown table text instead of a table?
Paste the generated Markdown into a place that supports GitHub Flavored Markdown tables, such as a README.md file. Leave a blank line before the table and do not wrap it in a fenced code block. Other Markdown editors may handle table syntax or HTML line breaks differently.
Does Copy Markdown include the entire table?
Yes. The preview shows up to 20 data rows and 12 columns, but Copy Markdown and Download .md include the full converted table within the stated limits.
More CSV Tools and Guides
Ready to create your Markdown table?
Paste CSV or spreadsheet cells, then copy clean Markdown for GitHub or your documentation.