About the Markdown Table Generator
Writing Markdown tables by hand means counting pipes and dashes. This Markdown Table Generator gives you an editable grid instead and turns it into a clean, column-aligned Markdown table that renders on GitHub, GitLab, and most documentation sites.
How it works
A Markdown table has a header row, a separator row of dashes, and one row per line of data, with cells separated by pipes. The generator measures the longest entry in each column (minimum three characters) and pads every cell in that column with spaces to the same width.
The separator row also sets alignment. Default writes plain dashes, Left starts with a colon (:---), Right ends with one (---:), and Center has colons on both ends (:---:). The alignment button in each header cycles through these four options and shows the first letter of the current setting: D, L, C, or R.
How to use
- 1
Edit the header cells at the top of the grid, and click + at the end of the header row to add a column or - next to a header to remove it.
- 2
Type your data into the body cells; use Add Row for more rows and the - at the end of a row to delete it.
- 3
Click the small D/L/C/R button in a header to cycle that column's alignment.
- 4
Or open Import from a spreadsheet or CSV and paste cells from Excel or Google Sheets. Copy the Markdown output, or Copy link to share the table.
Worked examples
The starter table
The default team table, with no alignment set.
Right-aligned prices
A price list where numbers should line up on the right.
Alignment only changes the separator row; renderers apply it when displaying the table.
Frequently asked questions
How does column alignment work in Markdown tables?+
Alignment is set with colons in the separator row under the header: :--- for left, ---: for right, and :---: for center. Plain dashes use the renderer's default, usually left.
Will this table render correctly on GitHub and other platforms?+
Yes. The output is standard GitHub Flavored Markdown table syntax, which GitHub, GitLab, and most Markdown renderers support.
Why is the output padded with spaces?+
Padding lines up the pipes so the table is readable in plain text. Renderers ignore the extra spaces, so it does not change how the table looks.
Can I use bold text or links inside a cell?+
Yes. Type Markdown such as **bold** or [text](url) in a cell and it will render in most viewers.
How do I include a | character in a cell?+
Just type it. The generator writes it as \| in the output so the renderer treats it as text instead of a column divider.