Skip to content
wonderstacked

Markdown Table Generator

Turn CSV or spreadsheet cells into an aligned Markdown table.

Runs in your browser
Loading Markdown Table Generator…

How do I make a Markdown table?

A Markdown table generator turns CSV, TSV, spreadsheet cells or an existing table into a neatly aligned Markdown table. This Markdown table generator also sets column alignment and exports CSV or HTML, in your browser.

Markdown tables use pipes and a dashed header row, and aligning them by hand is tedious. Copy cells from Excel or Google Sheets, or paste CSV or TSV, and the tool builds the table with tidy padding.

You can set alignment per column (left, centre or right), and paste an existing Markdown table to realign or edit it. The table can also be exported as CSV or HTML. Pipes inside cells are escaped, and the first row is treated as the header.

Plain Markdown tables cannot merge cells or hold multi-line content in all renderers, and support for extensions varies between platforms. Everything is processed in your browser. For converting a CSV to another format use [CSV to JSON](/tools/csv-to-json).

Page updated .

How to use the Markdown Table Generator

  1. Paste cells from a spreadsheet, or CSV, TSV or an existing Markdown table.
  2. Set the column alignment.
  3. Copy the Markdown, or export CSV or HTML.

Examples

From CSV
Input
Name,Qty
Tea,2
Coffee,10
Output
| Name | Qty |, a separator row and two data rows aligned
Right align
Input
A numeric column set to right
Output
Separator ---: and numbers lined up

Tips

  • Copy a range straight from a spreadsheet: tabs are detected automatically.
  • Right-align number columns so digits line up.
  • Keep cell text short; long text makes source tables hard to read.

Specs & limits

Inputs
CSV, TSV, spreadsheet cells, Markdown table
Alignment
Left, centre, right per column
Exports
Markdown, CSV, HTML
Escaping
Pipes escaped
Processing
In your browser

Troubleshooting

›Table does not render

Cause: The header separator row is missing.

Fix: Include a row of dashes under the header.

›Columns misaligned in source

Cause: Different font widths.

Fix: Rendered output is still correct.

›Extra columns appear

Cause: Delimiters inside cells.

Fix: Quote those cells in the CSV.

Frequently asked questions

›How do I align columns?

Use a colon in the separator row: :--- left, :---: centre, ---: right. The tool sets these for you.

›Can I paste from Excel?

Yes. Copied cells are tab-separated and detected as a table.

›How are pipe characters handled?

They are escaped so they do not break the table.

›Can I edit an existing table?

Yes, paste it in to realign or change it.

›Can I export to HTML or CSV?

Yes, both are available.

›Is my data uploaded?

No. Everything runs in your browser.

More text tools

See all
esc