Markdown Table Generator

Your input stays in your browser and is never sent.

Build a Markdown table by choosing rows and columns. Paste from Excel or Google Sheets, and export as HTML or CSV too.

  1. Enter
  2. See the result
The first row is the header. Use the menu above each column to set its alignment.

What the Markdown Table Generator Can Do (MD, HTML and CSV Output)

This tool builds a Markdown table: choose the number of rows and columns and type into the grid. You can also paste a range copied from Excel or Google Sheets, and set left, center or right alignment per column. The finished table can be written out as Markdown, HTML or CSV. Everything runs in your browser, and it's free.

Make a Markdown Table in 3 Steps

  1. Choose the number of rows (including the header) and columns. If you already have a table in Excel, paste it into the paste box and load it
  2. Type into the grid and choose the alignment for each column. The first row becomes the header
  3. Choose an output format (Markdown, HTML or CSV), then copy it or save it as a file

How to Write a Markdown Table, and Where It Breaks

A Markdown table has a header row like "| Heading 1 | Heading 2 |", a separator row "| --- | --- |", then content rows in the same shape. Without the separator row it isn't read as a table, and rows with a different number of "|" shift the columns. This tool always keeps the column count consistent and pads full-width characters as two half-width characters, so the vertical lines line up in a text editor too.

Putting "|" or line breaks in a cell

A "|" inside a cell can't be told apart from a column separator, so it must be written as "\|". For a line break inside a cell, use <br>. The tool converts any "|" and line breaks you type into these forms, so you never have to rewrite them by hand.

Exporting as an HTML Table or CSV

Choose HTML to get a table element with the first row as header cells (th), ready to paste into the HTML editor of a blog or CMS that doesn't support Markdown. Choose CSV to get cells containing commas or line breaks wrapped in quotes, so it goes straight back into Excel or a spreadsheet.

Turning Text With Tables Into HTML

Frequently Asked Questions About the Markdown Table Generator

How do I write a Markdown table?

Write the header row as "| Heading 1 | Heading 2 |", add a separator row "| --- | --- |", then list the content rows in the same shape. Here you just type into the grid and the Markdown is assembled for you.

Can I turn an Excel table into a Markdown table?

Yes. Select and copy a range in Excel or Google Sheets, paste it into the paste box and load it. It arrives tab-separated and is split into rows and columns in the grid. CSV and existing Markdown tables can be pasted too.

How do I right-align a column?

Choose "Right" in the selector above that column; center alignment is in the same selector. In Markdown the separator becomes "---:" or ":---:", and in HTML a text-align is added. Right-aligning amounts and quantities lines up the digits.

Is it OK to put "|" or line breaks in a cell?

Yes. "|" is converted to "\|" so it isn't read as a separator, and line breaks inside a cell become br tags. GitHub and most blogging services show both as the original character and a line break.

Is the table data sent to a server?

No. Building the table and loading pasted data both happen only in your browser, so internal figures or customer lists are safe to use.