Skip to content
Back to Journal
GuideMay 4, 2026·2 min read

How to Make a Table in Markdown

Create markdown tables with column alignment, formatted content, and the table generator tool.

The quick answer: Use pipes (|) to separate columns and hyphens (-) in the second row to create the header separator.

Basic Table

| Name | Role | Team | | -------- | --------- | -------- | | Alice | Engineer | Backend | | Bob | Designer | Product |

The second row (hyphens) separates the header from the body. Every column needs at least one hyphen.

Column Alignment

Control alignment with colons in the separator row: | Left | Center | Right | | :------- | :-------: | -------: | | text | text | text |

  • :--- — left align
  • :---: — center align
  • ---: — right align

Formatting Inside Tables

You can use inline markdown inside table cells: | Feature | Status | | -------- | --------------- | | Bold | Supported | | Code | inline |

Don't Want to Write Tables by Hand?

Use the free Markdown Table Generator — add rows and columns visually, then copy the finished markdown.

Common Mistakes

Tables need the header separator row — a table without hyphens in row 2 won't render. Also, if your cell content contains a pipe character |, escape it with | or it'll break the table structure.

Platform Support

Tables are a GitHub Flavored Markdown (GFM) extension. They work on GitHub, GitLab, Notion, Obsidian, and most modern editors. They do not work in plain CommonMark.


Full reference: Markdown Tables.

Ready to put this into practice? Paste your markdown into the free MarkdownTools PDF exporter or HTML converter — no signup required.

Frequently Asked Questions

How do you create a table in markdown?

Use pipes (|) to separate columns and hyphens (-) in the second row as a header separator. Every column needs at least one hyphen in the separator row.

How do you align columns in a markdown table?

Use colons in the separator row: :--- for left, :---: for center, ---: for right alignment.

Does markdown support tables?

Tables are a GitHub Flavored Markdown (GFM) extension — not standard CommonMark. They work on GitHub, GitLab, Notion, Obsidian, and most modern editors.

Is there a tool to generate markdown tables?

Yes — the free Markdown Table Generator at allmarkdowntools.com/table-generator lets you build tables visually without writing the pipe syntax manually.

MT

MarkdownTools Team

May 4, 2026

Try it free

Make your AI output beautiful

Paste markdown from ChatGPT or Claude. Pick a theme. Export as PDF or HTML in seconds.

Open App — It's Free