๐Ÿ“‹ Markdown Table Generator

Automatically generate a Markdown table โ€” ready for GitHub or any Markdown renderer โ€” from tab-separated data copied out of a spreadsheet, or from comma-separated data. Choose column alignment (left, center, or right) too.

How to use

  1. Enter your data, one record per line (cells separated by commas or tabs).
  2. Choose a column alignment (left, center, or right).
  3. Copy the generated Markdown table with the "Copy" button.

How the calculation works

Markdown tables use the GitHub Flavored Markdown (GFM) syntax: rows of cells separated by "|". The first row is the header, the second the delimiter row, and the rest the data. The delimiter row sets each column's alignment: ":---" left, ":---:" centre, "---:" right. The GFM specification requires each delimiter cell to be an optional colon, one or more hyphens, and an optional colon; adding hyphens outside the colons stops the table being recognised. With "align columns" on, spaces and hyphens are added so each column matches its longest value, making the table easier to read as plain text. The rendered result is the same either way.

Worked example

"Name,Age,City / Alice,30,Tokyo / Bob,25,Osaka", right-aligned with column alignment on | Name | Age | City | | ----: | --: | ----: | | Alice | 30 | Tokyo | | Bob | 25 | Osaka | The delimiter cells such as "----:" are widened with extra hyphens while the right-alignment colon stays at the end.

Things to be aware of

  • A "|" inside a cell is not escaped. Replace it with "\|" if your values contain one.
  • Column alignment counts characters, so columns containing full-width characters such as Japanese may still look misaligned even in a monospace font.
  • All columns get the same alignment. To vary it per column, edit the delimiter row afterwards.
  • How the table looks (borders, colours) depends on the service rendering it.

FAQ

Can I paste directly from Excel or Google Sheets?

Yes โ€” cell ranges copied from a spreadsheet are tab-separated, so pasting them straight into the input box is automatically recognized.

Can I set a different alignment per column?

No โ€” the current version applies the same alignment (left, center, or right) to every column.

What does turning off "Align columns" do?

It skips padding each cell to match column width, producing shorter Markdown text. The rendered result looks identical either way.