M|
Runs in your browserNothing is uploadedData, CSV & JSON

CSV to Markdown Table

Convert CSV or spreadsheet rows into a neat Markdown table for GitHub, docs and notes, with column alignment.

Loading tool…
Short answer

CSV to Markdown Table converts CSV or cells copied from a spreadsheet into a Markdown table for GitHub, GitLab, docs and notes. Columns are lined up so the source is readable, pipes are escaped, and numbers can be right-aligned automatically.

What is a Markdown table?

Markdown table

Rows written with | between cells and a line of dashes under the header. Colons in that line set alignment: :--- left, :---: centre, ---: right.

Escaping

A | inside a cell would split it, so it is written as \|. Line breaks inside a cell become <br>, which GitHub renders as a new line.

Why use CSV to Markdown Table?

  • Paste straight from a spreadsheet. Copying cells from Excel or Google Sheets gives tab-separated text, which is detected automatically.
  • Readable source. Padded columns make the table easy to edit later in a plain text editor.
  • Private. Nothing is uploaded.

How to use CSV to Markdown Table, step by step

CSV to Markdown Table in PrintxPDF with a file loaded, options on the right and the run button below
CSV to Markdown Table with a file loaded: the steps below follow this screen.
  1. Paste data into CSV to Markdown Table. CSV, semicolon or tab separated text all work.
  2. Choose the alignment. Automatic puts numbers on the right and text on the left.
  3. Copy the Markdown. Paste it into a README, issue, wiki page or note.

Frequently asked questions

Does it work on GitHub?

Yes. The output uses the GitHub Flavored Markdown table syntax, which most Markdown editors and static site generators also support.

Why line up the columns?

It only affects how the source looks. Turn it off for shorter output; the rendered table is the same.

What if my data has no header?

Untick the header option and the columns are titled Column 1, Column 2 and so on, because Markdown tables need a header row.

Looking for the long version? The guides cover each of these jobs in depth.