Markdown Table Generator
Add rows and columns, set alignment, and copy a Markdown table with a live preview.
Your data stays in your browser. This tool processes your input locally and does not upload it to a server.
Markdown
| Name | Category | Local | | --- | --- | --- | | JSON Formatter | Formatters | Yes | | QR Code | Generators | Yes |
Preview
| Name | Category | Local |
|---|---|---|
| JSON Formatter | Formatters | Yes |
| QR Code | Generators | Yes |
How do you make a table in Markdown?
A Markdown table uses pipe characters to separate columns and a row of hyphens under the header to mark it. Colons in that row set alignment. Typing it by hand is tedious, so this tool gives you an editable grid, column alignment controls and a live preview, then outputs the Markdown for you to copy.
How Markdown tables are built
A table has a header row, a delimiter row and body rows. Each row starts and ends with a pipe. The delimiter row holds hyphens for each column. A colon on the left (:---) means left-aligned, on both sides (:---:) means centered, and on the right (---:) means right-aligned.
The generator writes the delimiter row for you from the alignment you choose for each column. Add or remove rows and columns in the grid and the Markdown updates as you type.
Where Markdown tables work
Tables are part of GitHub Flavored Markdown, so they render in GitHub READMEs, issues and pull requests. Many other tools support them too, including static site generators and note apps. The original Markdown specification has no tables, so a few renderers show raw pipes. Check the preview in your target platform.
The generator does not pad columns to equal width. The output is valid, but the source may look uneven in a text editor. Rendered output is unaffected.
Special characters and privacy
A pipe typed inside a cell is escaped as \| so it does not split the column. Backslashes are escaped as well, and line breaks inside a cell become spaces, since a table row must stay on one line. Everything runs in your browser and nothing is uploaded.
Examples
Two columns, second one right-aligned
Input
Rows: Name | Qty / Apple | 3 / Pear | 12. Alignment: left, rightOutput
| Name | Qty |
| --- | ---: |
| Apple | 3 |
| Pear | 12 |A pipe inside a cell
Input
Rows: Command | Use / a | b | pipe. Alignment: left, leftOutput
| Command | Use |
| --- | --- |
| a \| b | pipe |The escaped pipe stays in one cell.
Common mistakes and edge cases
- The first row is always the header. A Markdown table cannot omit its header row.
- Multi-line cell content is not supported in pipe tables. Line breaks become spaces; use <br> only if your renderer allows inline HTML.
- Rows with fewer cells than the header are padded with empty cells so the table stays rectangular.
- Some renderers need a blank line before the table. Without it, the table may be parsed as part of the paragraph above.
- Merged cells, column widths and captions are not available in standard Markdown tables. Use HTML for those.
- Alignment is a hint to the renderer. Plain-text viewers show no alignment.
How to use this tool
- Edit the header and body cells.
- Set each column to left, center, or right.
- Copy the Markdown or download it as a .md file.
Frequently asked questions
How do I align columns in a Markdown table?
Put colons in the delimiter row, the line of hyphens under the header. A colon on the left (:---) aligns left, colons on both ends (:---:) center the column, and a colon on the right (---:) aligns right. With this tool you choose left, center or right for each column and the delimiter row is generated for you.
How do I put a pipe character inside a Markdown table cell?
Escape it with a backslash, written \|. Without the backslash the pipe is read as a column separator and splits your cell in two. This generator escapes pipes automatically when you type them into a cell, and it escapes backslashes too so the text stays literal.
Do Markdown tables work on GitHub?
Yes. GitHub Flavored Markdown supports pipe tables in READMEs, issues, pull requests and comments. They also work in many other tools, such as static site generators and documentation platforms. The core Markdown specification does not define tables, so support depends on the renderer. If a table shows as plain text, check that it has a header and a delimiter row.
Can I add line breaks or merge cells in a Markdown table?
Not in standard pipe tables. Each row must stay on one line, so this tool turns line breaks inside a cell into spaces. Merged cells, row spans and captions are not part of the syntax. If you need them, write the table in HTML, which most Markdown renderers accept.
Is my table data uploaded anywhere?
No. The grid, the Markdown output and the preview are all produced in your browser. Nothing is sent to a server. You can copy the result or download it as a .md file.
References
Last reviewed