How do I make a table in Markdown?
Write the header cells between pipes, add a row of dashes under it, then one line per row: | Name | Role |, | --- | --- |, | Ana | Designer |. This generator writes that for you from a grid.
FREE MARKDOWN TABLE GENERATOR
Edit cells in a grid, or paste rows from Excel, Google Sheets or a CSV file, and get a clean Markdown table with the alignment you choose. Free, no signup, and nothing leaves your browser.
| Feature | Free tier | Pro |
|---|---|---|
| Projects | 3 | Unlimited |
| Offline access | No | Yes |
| Support | Community | Email, 24h |
Runs in your browser: the table is not uploaded or stored. Pipes in cells are escaped as \| and line breaks become <br>. The first row is always the header, as Markdown requires.
A Markdown table is rows of cells separated by pipes (|). The first row is the header, and the second row of dashes separates it from the body. Colons in that separator row set each column's alignment.
Tables are part of GitHub Flavored Markdown (GFM), so they render on GitHub, GitLab, in VS Code and in most Markdown apps. The columns don't need to line up in the source, but aligned columns are easier to read and review.
| Part | Syntax | What it does |
|---|---|---|
| Header row | | Name | Role | | First row; always required |
| Separator | | --- | --- | | Separates the header from the body |
| Left align | | :--- | | Colon on the left |
| Center | | :---: | | Colons on both sides |
| Right align | | ---: | | Colon on the right |
| Pipe in a cell | \| | Escapes a literal | character |
| Line break | <br> | New line inside a cell |
WHEN TABLES LIVE IN YOUR DOCS
This page builds one table at a time. Aero Markdown for Mac renders every table in your Markdown files, next to code, Mermaid diagrams and math, and keeps wide tables readable. It works offline, with no account.
7-day free trial · no payment details · macOS 14+
Write the header cells between pipes, add a row of dashes under it, then one line per row: | Name | Role |, | --- | --- |, | Ana | Designer |. This generator writes that for you from a grid.
Select the cells in your spreadsheet, copy them, paste them into the import box under the grid and choose Import into the grid. Spreadsheet cells are copied as tab-separated text, which the generator detects.
Paste the CSV text into the import box and choose Import into the grid. Commas, semicolons, tabs and quoted fields are detected automatically, and the first row becomes the header.
Add colons to the separator row: :--- aligns left, :---: centers and ---: aligns right. In the generator, use the menu above each column.
No. GitHub Flavored Markdown requires a header row. If your data has none, leave the header cells empty or use short column labels.
Escape a pipe as \| and use <br> for a line break. The generator does both automatically when you type a pipe or paste multi-line cells.