Skip to content

Free online tool · No signup

Convert CSV to Markdown

Turn your CSV into a clean Markdown table for READMEs and docs. See the code and the rendered result, then copy or download.

  • Runs in your browser
  • Edit before exporting
  • Copy or save .md

Add as many files as you need. Up to 1 GiB per file. Keep this tab open until your downloads finish.

Batch conversion uses the standard settings. Open Customize a file below to change them.

Conversion starts as soon as you choose files. Files download automatically when ready. Your browser may ask to allow multiple downloads.

Customize a file · settings, paste and edit

CSV → Markdown

Free conversion in your browser. Your file stays on this device.

Local processing
8 fictional sales rows · CC0
  1. Choose your CSV

    Open a file, paste CSV text, or try the sample.

  2. Review the preview

    Adjust available settings and check the output. Edit CSV lets you change source values.

  3. Copy or download

    Save your .md file with the current settings.

Output preview

Example output

Markdown (.md)

| Project | Status |
| :--- | :--- |
| Website | Ready |
| Docs | In progress |

First 20 rows · Up to 16,000 characters

Rendered Markdown

ProjectStatus
WebsiteReady
DocsIn progress

Preview: 20 rows · 40 columns · 1,000 characters per cell. Download includes every row within the tool limits.

Three simple steps

A table for your next README.

Skip the manual pipes and separator rows. Turn your existing CSV into a table you can use in documentation.

  1. 01

    Bring your data

    Choose your CSV files. Your first row becomes the table header. Customize a file also supports pasted text and samples.

  2. 02

    Make it yours

    Follow each file’s progress and use View for a preview. Customize a file lets you choose alignment or edit values.

  3. 03

    Put it to work

    Copy the Markdown into a README or documentation editor, or save a ready-to-use .md file.

CSV → Markdown → table

Small input. Ready-to-paste output.

The header and alignment row are generated for you. Here is a complete example using the same converter as your download.

example.csv · 2 columns · 2 rows

Your CSV

.csv
Project,Status
Website,Ready
Docs,In progress

Markdown source

.md
| Project | Status |
| :--- | :--- |
| Website | Ready |
| Docs | In progress |

Rendered table

Preview
Rendered Markdown example
ProjectStatus
WebsiteReady
DocsIn progress

Made for GitHub Flavored Markdown and editors with pipe-table support. The destination renderer controls the final appearance.

One document, start to finish

Fix the CSV. Keep your place.

A heading needs changing? A value looks wrong? Select Edit CSV in the converter to open your document in the full CSV editor.

  • Change column headings and cell values in the grid.
  • Return to the converter with your edits intact.
  • Check both previews and export without uploading again.
Try the converter
Your CSV stays with you
  1. Step 1

    Start in the converter

    Open the file once and inspect the result.

  2. Step 2

    Edit in the CSV workspace

    Work on the original document, with its rows and columns.

  3. Step 3

    Return and export

    The converter uses your updated document.

Other ways to convert CSV to Markdown

Prefer a script or command line? These examples run on your computer. They create separate files; review their output rules because external tools can handle types and empty values differently from this page.

Convert CSV to Markdown with Python

Run this on your own computer using Python 3. Save a UTF-8, comma-delimited input.csv in the same folder as the script. The first record must contain unique, nonempty headers; quoted commas and line breaks are parsed as fields.

Before you start

  • Python 3 installed. Package commands below use a local virtual environment on macOS/Linux; on Windows use .venv\Scripts\python.exe in place of .venv/bin/python.
  • Keep the original CSV. These examples read the complete table into memory and create separate output files.
  1. Save the Python code as convert_csv.py beside input.csv.
  2. Install the listed package when required, then run the script. Check the generated output before using it elsewhere.
Save as convert_csv.py
import csv
from pathlib import Path

with open("input.csv", encoding="utf-8-sig", newline="") as source:
    reader = csv.reader(source, strict=True)
    headers = next(reader)
    rows = list(reader)
if not headers or any(not h for h in headers) or len(set(headers)) != len(headers):
    raise ValueError("Use unique, nonempty column headers")
if any(len(row) != len(headers) for row in rows):
    raise ValueError("Every record must have the same number of fields as the header")

from html import escape
def cell(value):
    return escape(value).replace("|", "&#124;").replace("\r\n", "\n").replace("\r", "\n").replace("\n", "<br>").replace("*", "&#42;").replace("_", "&#95;").replace("\x60", "&#96;").replace("[", "&#91;").replace("]", "&#93;").replace("\\", "&#92;")
def table_row(row):
    return "| " + " | ".join(cell(value) for value in row) + " |"
lines = [table_row(headers), table_row(["---"] * len(headers)), *[table_row(row) for row in rows]]
Path("output.md").write_text("\n".join(lines) + "\n", encoding="utf-8")

Run the conversion
python3 convert_csv.py

Limits and output

  • Writes a GitHub Flavored Markdown table with a header separator. Pipes and inline markup characters are encoded as cell text; embedded newlines become <br>. Markdown renderers differ in their support for inline HTML and entities.

Documentation: Python CSV reader and writer; GitHub Flavored Markdown table specification

Plain answers

Markdown conversion questions

Can I use the table in a GitHub README?

Yes. The output uses pipe tables and an alignment row supported by GitHub Flavored Markdown. Paste the copied output into a README.md or another editor that supports Markdown tables. Plain CommonMark does not define tables, so check your destination's renderer.

How are commas, pipes and line breaks handled?

Quoted CSV commas stay within their original cell. Literal pipes become &#124; so they do not create extra columns. Cell line breaks become <br>, and Markdown punctuation is encoded to keep it as cell text. Your destination must support inline HTML to display those line breaks.

Does the first CSV row become the table header?

Yes. The first record supplies the column headings. Blank or duplicate headings receive stable display names. If your CSV has no header row, add column names with Edit CSV before exporting.

Can I align columns or edit values before downloading?

Open Customize a file to choose left, center or right alignment; the selection applies to every column. Use Edit CSV to change the source in the existing editor, then Return to converter. You keep the same document and do not need to upload it again.

Are identifiers and leading zeroes preserved?

Cells are treated as text rather than guessed numbers or dates, so values such as 00123 stay intact in the output. Markdown renderers can normalize whitespace around cell content; use a CSV download when exact CSV formatting is important.

Is conversion free, and is my CSV uploaded?

Your CSV is processed on this device. Convert several files together for free, then download each result. Choose files up to 1 GiB each. For pasted text, alignment or editing, open Customize a file.