Markdown Table Generator

Build a table visually and get correctly formatted, aligned Markdown code instantly.

Live Preview

How to Build a Markdown Table

  1. Set the number of rows and columns.
  2. Type directly into the grid cells — headers on top, data below.
  3. Pick an alignment for each column if you'd like.
  4. Copy the generated Markdown code.

Frequently Asked Questions

Do the pipe characters need to line up visually in the source?

No — Markdown renderers only care about the pipe characters marking column boundaries, not visual alignment in the raw text. This tool does pad the columns neatly anyway, purely to make the raw source easier for a human to read while editing.

What does the column alignment option actually do?

It adds colons to the separator row under each header — a colon on the left, right, or both sides tells the renderer to left-align, right-align, or center that column's content. Without any colon, most renderers default to left alignment.

Can a table cell contain a pipe character or a line break?

A literal pipe inside a cell needs to be escaped as \| or it will be misread as a new column boundary. Markdown tables also don't support real line breaks inside a cell — some renderers accept an HTML <br> tag as a workaround, but that isn't part of core Markdown table syntax.

Will this table render correctly everywhere, including plain CommonMark?

Tables are a GitHub Flavored Markdown (GFM) extension, not part of core CommonMark, so they render correctly on GitHub, GitLab, and most modern Markdown viewers, but may not render as a table on a strictly CommonMark-only parser.