HomeMarkdown → Tables

How to make tables in Markdown

Tables are part of GitHub-Flavored Markdown (GFM). You build them with pipes | for columns and a divider row of dashes - under the header.

Basic table

The header row comes first, then a divider row, then your data rows:

| Name  | Role     |
| ----- | -------- |
| Ada   | Engineer |
| Grace | Admiral  |
NameRole
AdaEngineer
GraceAdmiral

The outer pipes and extra spaces are optional — they just keep the source readable.

Column alignment

Add colons to the divider row to align a column: :--- left, :--: center, ---: right.

| Left | Center | Right |
| :--- | :----: | ----: |
| a    | b      | c     |
| dd   | ee     | ff    |
LeftCenterRight
abc
ddeeff

Good to know

Related: full cheat sheet · live editor.

Have a document instead of text?

Convert PDFs, Word, PowerPoint, Excel, and images into clean Markdown — free, no signup.

Convert a file to Markdown →