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.

No server upload CSV, TSV and spreadsheet cells GitHub-ready tables
Free online CSV tool

Convert CSV to a Markdown Table

Paste CSV text, choose a file, or paste cells copied from Excel or Google Sheets.

Files stay on your device

CSV Input

Markdown Output

Your Markdown table will appear here after conversion.
Read your CSV data
Format your Markdown table
Quick answer

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.

Three steps

How to Convert a CSV File to Markdown Online

1

Paste or upload CSV

Paste comma- or tab-separated text, copy cells from a spreadsheet, or choose a .csv, .tsv or .txt file.

2

Choose table options

Confirm the separator, select whether the first row contains column names, and choose left, center or right alignment.

3

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.

Example

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 &lt;script&gt; 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.

Features

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.

Spreadsheet paste

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.

Choose settings

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.

SettingWhen to use itWhat changes
Column separator: Auto detectOrdinary CSV or cells copied from a spreadsheetDetects common comma, semicolon, tab or pipe separators; choose one manually if the columns look wrong
First row contains column namesYour first row is a heading such as id,nameUses those names in the Markdown header and starts data below them
Turn off column namesYour first row is actual dataCreates Column 1, Column 2, etc., and keeps the first row as data
Skip empty rowsYou do not need completely blank CSV rowsRemoves rows where every cell is empty or whitespace; other rows and empty individual cells remain
Column alignmentYou want text centered or right-alignedApplies the same alignment to every column; individual columns cannot be aligned separately
Line breaks inside cellsYour CSV contains notes with multiple linesUses <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 |
Table formatting

Markdown Table Alignment, Pipes and Line Breaks

CSV data or optionMarkdown outputWhat 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 spaceChoose whether to retain visual line breaks
Empty header cellColumn 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.

Where to use it

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.

1

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.

2

Generate and check Markdown

Select headers and alignment, click Convert CSV to Markdown, then review the code and the small table preview.

3

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.

Data accuracy

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 structureResult in MarkdownImportant detail
00127 or a long numeric IDSame textIDs are kept as text, including their leading zeros
Names such as João or 陈Same charactersThe downloaded Markdown file uses UTF-8
Research | QAResearch \| QAThe vertical bar becomes an escaped character, not a new column
<script> or Markdown formatting charactersEscaped textCharacters appear as text instead of changing the table's formatting
Quoted CSV field containing two linesLine 1<br>Line 2 or one line with a spaceDepends on the line-break setting; the source newline is represented differently
CSV quote marks and commas separating cellsMarkdown pipes and divider rowQuotes used only for CSV formatting are not kept as literal cell content
Empty header or completely blank rowGenerated column name or skipped blank rowDepends 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.

Formats and limits

Supported CSV Formats and Converter Limits

InputCSV, TSV, TXT and pasted spreadsheet cells
OutputGitHub Flavored Markdown table (.md)
Input file sizeUp to 5 MB
RowsUp to 10,000 rows (including the header when used)
ColumnsUp to 100 columns
Total cellsUp to 500,000
Markdown outputUp to 10 MB
Input encodingUTF-8, UTF-8 BOM, UTF-16 BOM; manual UTF-16 LE, Windows-1252 and ISO-8859-1
ExportCopy text or download a UTF-8 .md file
PrivacyConversion 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.

Format comparison

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.

Common problems

Why Does My Markdown Table Look Wrong?

ProblemLikely reasonWhat to try
All content appears in one columnWrong CSV delimiterChoose comma, semicolon or Tab explicitly
Columns shift unexpectedlyUnclosed CSV quotes or uneven rowsFix quoting and check the warning
A pipe splits a Markdown cellAn unescaped vertical barUse the generated Markdown code, which escapes pipes
Cells appear on multiple linesCSV contains line breaks inside quoted fieldsChoose Keep line breaks or Replace with spaces
Text has strange charactersInput file encoding differs from UTF-8Select the correct input encoding and reload
The first data row becomes a headingFirst row contains column names is selectedTurn it off if your file has no headings. The converter will use Column 1, Column 2, etc.
The table shows as Markdown code on GitHubIt may be inside a fenced code block, lack a blank line above it, or appear in a viewer without table supportPaste it outside code fences, leave a blank line above it, and use a Markdown page with table support
Copy contains more rows than the previewThe preview shows up to 20 rows and 12 columnsCopy and download include the full converted table within the stated limits
The table is too large to readMarkdown is intended for smaller display tablesFilter your CSV data before converting
Privacy

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.

Questions

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.

Related tools

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.

Convert CSV to Markdown