DevTools Logo

CSV to Markdown

CSV to Markdown

Turn CSV rows into a GitHub-Flavored Markdown table with safe cell escaping.

Runs in your browser
Try an example

CSV input

Markdown table

Paste CSV to build a table

Quoted fields, commas and line breaks are handled locally.

Details

CSV to Markdown parses RFC 4180 CSV in the browser — quoted fields, doubled quotes, embedded newlines, CRLF, BOM and comma/semicolon/tab/pipe delimiters — and emits a GitHub-Flavored Markdown table. The first row becomes the header (or generated Column N names), short rows are padded to the widest row, and cells are escaped so pipes and backslashes cannot break the layout. Line breaks inside cells become <br> because GFM tables are single-line. Choose left, center or right alignment, preview the result and download a .md file. Nothing is uploaded.

More examples

Simple table

name,role
Ann,Admin
Ben,Editor

The header row becomes the table header and each following line becomes one GFM row.

Quoted commas

title,note
"Hello, world","She said ""hi"""

Quoted commas stay inside one cell and doubled quotes collapse to a single quote.

Cells that break tables

id,text
1,"code | pipe
next line"

The pipe is escaped and the embedded newline becomes <br> so the table remains valid.

    Examples

    Simple table

    Input
    name,role
    Ann,Admin
    Ben,Editor
    Output
    | name | role |
    | --- | --- |
    | Ann | Admin |
    | Ben | Editor |

    The header becomes the first row and each CSV record becomes one row.

    Quotes and pipes

    Input
    title,note
    "Hello, world","code | path"
    Output
    | title | note |
    | --- | --- |
    | Hello, world | code \| path |

    Quotes are removed and the pipe is escaped so the GFM table stays valid.

    About this tool

    CSV to Markdown converts spreadsheet exports into GitHub-Flavored Markdown tables that render on GitHub, GitLab and most documentation sites. The converter is dependency-free and runs in your browser, so customer data in a CSV never reaches a server.

    It follows RFC 4180 for quoted fields, doubled quotes, embedded line breaks and CRLF, detects comma, semicolon, tab or pipe delimiters, and escapes pipes and backslashes so a single cell cannot break the table layout.

    What this tool does not do

    • GitHub-Flavored Markdown has no column widths or cell alignment beyond the separator row.
    • Line breaks inside a cell are rendered as <br>, not as a real table row break.
    • Very wide files produce wide tables that may need horizontal scrolling in the renderer.
    • The parser targets RFC 4180; unusual dialect extensions such as backslash escapes are not supported.

    How to use this tool

    1. Paste or upload CSV

      Type into the input panel, choose a .csv/.tsv file, or click an example chip.

    2. Set the options

      Pick a delimiter when auto-detection is wrong, toggle the header row and choose an alignment.

    3. Review warnings

      Ragged rows, skipped blank lines and replaced line breaks are reported above the result.

    4. Copy or download

      Copy the Markdown or download table.md for your README, issue or docs site.

    Use cases

    README tables

    Turn a spreadsheet export into a table you can paste into a README or wiki page.

    Issue descriptions

    Share tabular data in GitHub issues without hand-writing pipe separators.

    Documentation

    Convert generated reports into docs-site tables while keeping quoting correct.

    CSV input to GFM output

    CSVMarkdown
    first rowheader row
    quoted commaone cell
    doubled quotesingle quote
    embedded newline<br>
    pipe or backslashescaped
    short rowpadded row

    Detected delimiters other than a comma are reported in the warnings so you can confirm the choice.

    Common mistakes

    Mistake:Leaving the header switch on for headerless data.

    Fix:Turn off 'First row is header' so your first data row is not consumed as column names.

    Mistake:Assuming semicolons are always commas.

    Fix:Check the delimiter warning; auto-detection scans the first lines and can be overridden.

    Mistake:Expecting multi-line cell content to survive.

    Fix:GFM tables are single-line, so embedded newlines are written as <br>.

    Frequently asked questions

    Is my spreadsheet data uploaded?

    No. Parsing and table generation happen in your browser tab. No file is sent anywhere and nothing is stored.

    Why is my file one big column?

    Auto-detection found no delimiter in the first lines, or chose a different one. Select the actual delimiter (comma, semicolon, tab or pipe) in the options row.

    Why does my cell show a backslash before a pipe?

    GitHub-Flavored Markdown needs \| to keep a pipe inside a cell. The table renders with a plain | character.

    What happens to line breaks inside a cell?

    They are written as <br> because GFM tables cannot contain raw newlines. A warning tells you how many cells were affected.

    Why are my columns shifted?

    The file has rows with different column counts. Short rows are padded to the widest row so no cell is silently dropped; the warning confirms the width used.

    References & standards