Markdown Table Generator

Share:
Developer Tools

Markdown Table Generator

Turn CSV or pasted data into a clean Markdown table

By Checked against sources by Last reviewed DEVELOPER TOOLS DOCUMENTATION MARKDOWN WRITING
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

Markdown Table Generator

    Advertisement
    After tool · AD-W1Responsive

    How to Use the Markdown Table Generator

    Paste your data

    CSV, tab-separated, or copy from a spreadsheet.

    Check the delimiter

    It is detected for you; the note under the table says which one and why.

    Get the table

    A neat Markdown table is built instantly.

    Copy it

    Paste into a README, issue or docs.

    Advertisement
    After how-to · AD-W2Responsive

    Tabular Data, the Markdown Way

    A Markdown table is fiddly to write by hand: line up the pipes, get the delimiter row right, and pad every cell so the source stays readable. This generator does that from data you already have. Paste comma-separated text, tab-separated cells copied from a spreadsheet, or semicolon- or pipe-separated rows, and it writes a GitHub Flavored Markdown table you can drop into a README, an issue or any documentation that renders GFM.

    The part most generators skip is reading the input correctly. Splitting each line on commas breaks the moment a value contains one, so this tool reads the text with the CSV quoting rules of RFC 4180: a field in double quotes may hold commas, line breaks and quote characters written twice. In the sample above, "Tan, Arjun" stays one name. The delimiter is detected by trying comma, semicolon, tab and pipe on the first rows and keeping the one that splits them most consistently, and the note under the output says which it chose. Then each cell is made safe for a table row: a pipe becomes \|, which GFM requires even inside a code span, and a line break becomes <br>.

    Alignment is set by colons in the delimiter row. The default here right-aligns the columns that hold only numbers, so figures line up on their last digit, and leaves text columns unset. Padding is measured in display columns rather than characters, so a column of Chinese or Japanese names stays aligned in an editor that draws those characters double width. Everything runs in your browser.

    Copy a range from any spreadsheet and paste it straight in — tab-separated data becomes a clean Markdown table in one step.

    The GFM table rules this generator writes to, from the delimiter row to escaped pipes

    01

    GFM needs a delimiter row of hyphens under the header, with as many cells as the header, or no table is recognised at all.

    02

    Colons in that row set alignment: :--- left, :---: centre, ---: right; plain --- sets none.

    03

    A literal pipe in a cell is written \|, and GFM splits on an unescaped pipe even inside a code span. This tool escapes them for you.

    04

    A body row with more cells than the header loses the extras: the GFM spec says the excess is ignored. This tool adds header columns instead, and says so.

    05

    A Markdown table row is one line, so a line break inside a quoted CSV field is written as <br>.

    Frequently Asked Questions

    • Paste rows of data, one record per line. The text is split with the CSV quoting rules of RFC 4180, so a quoted field such as "Tan, Arjun" stays one cell and a doubled quote becomes one quote. Each cell is then trimmed, its pipes escaped, and the columns padded so the source lines up, and the result is a GitHub Flavored Markdown table with a header row, a delimiter row and the body.
    • On Auto-detect, comma, semicolon, tab and pipe are each tried on the first 50 rows, ignoring anything inside quotes, and the one that splits the most rows into the same number of cells is used. The note under the output names the delimiter it chose and why. Copying a range from Excel, Google Sheets or Numbers gives tabs, which this picks up without a setting. If the guess is wrong, choose the delimiter yourself.
    • Colons in the delimiter row set it: :--- left, :---: centre, ---: right, and plain --- sets none, which a renderer shows in its default alignment, usually left. The default here, "Numbers right", right-aligns every column whose cells are all numbers and leaves the rest unset, which is how most READMEs want figures. You can also apply one alignment to every column.
    • A pipe inside a cell is written as \| so it does not start a new column, and the note under the output counts how many were escaped. Quoted CSV fields are unwrapped, with "" read as one quote. A line break inside a quoted field cannot sit in a one-line table row, so it is written as &lt;br&gt;. GFM passes inline HTML through, and its tag filter does not remove &lt;br&gt;, so a renderer that follows the spec shows a line break inside the cell.
    • Yes. With the delimiter on Pipe (or detected as pipe), the outer pipes on each row are dropped and an existing delimiter row under the header is recognised rather than treated as data. To keep that table's own alignment, tidy it in the Markdown Table Formatter instead, which is built for re-padding an existing table.
    • So the raw Markdown lines up and is easy to edit by hand. GFM trims the spaces between pipes and cell content, so the rendered table is the same either way. Padding is counted in display columns, so Chinese, Japanese and Korean characters count as two and the pipes still line up in an editor that draws them double width.
    • GFM tables cannot merge cells, nest tables or hold block-level content such as lists or paragraphs, and every table needs a header row: with "First row is header" off, the tool writes Column 1, Column 2 and so on. For anything more complex, use an HTML table.
    • No. Splitting and formatting happen in your browser and nothing you paste is transmitted, logged or stored.

    Method & sources

    How it computes

    Input split (RFC 4180 quoting; comma, semicolon, tab or pipe chosen by consistency over the first 50 rows, reason shown). Table written to GFM 0.29 §4.10: cells trimmed, unescaped pipes written \|, line breaks <br>, delimiter row with colons for alignment (default: right for all-number columns), padding in display columns (East Asian Width).

    What this tool implements

    • GitHub Flavored Markdown Spec 0.29-gfm §4.10 Tables: a delimiter row of hyphens with optional colons, the same number of cells as the header; a literal pipe escaped as \| including inside inline spans; spaces between pipes and content trimmed; excess body cells ignored, so the tool widens the header instead and says so.
    • RFC 4180 §2 quoting for the pasted text: a quoted field may hold the delimiter, a line break and "" for one quote. The delimiter is detected by consistency and the page names the one used.
    • GFM §6.11: the tagfilter extension filters only title, textarea, style, xmp, iframe, noembed, noframes, script and plaintext, so a line break inside a cell is written as <br>.
    • Corrected 2026-11-06: naive split broke quoted fields; first-character delimiter guess; UTF-16 padding; a pasted Markdown delimiter row read as data.

    Sources

    What can make this go out of date

    • None at runtime; nothing pasted leaves the browser.
    Advertisement
    Pre-footer · AD-W3 728 × 90