How to use this Markdown table generator
Set the number of columns and body rows at the top and press “Rebuild grid” — note that rebuilding starts the grid fresh, so pick your size before you start typing. The grid's first row is the header: give each column its title there. Underneath each header sits an alignment dropdown for that column. Then fill the body cells in any order you like. The Markdown underneath updates with every keystroke, so when the grid looks right, press “Copy Markdown” and paste the code into your document, README or wiki.
The sample table is loaded when the page opens, so you can see a finished grid — names, roles and hours, with the numbers column right-aligned — before you change anything. Change a cell, an alignment or the size, and watch the output follow along.
Example: the sample table and its code
The sample grid — three columns, the third right-aligned, three rows of people — generates exactly this:
Three things are worth noticing. The separator row is doing double duty: it ends the header and it encodes the alignment, with ---: marking the Hours column as numeric and right-aligned. The header row and body rows share one simple shape — a line of cells between pipes. And nothing in the code is padded to make the columns visually equal, because renderers do not need it: only the pipes matter.
Anatomy of a Markdown table
Every Markdown table is three parts wearing a trench coat. The header row names the columns and is required — a table without one is not a table most renderers will accept. The separator row of dashes is the contract: its cell count must match the header, and its colons declare alignment. The body rows are just more lines in the same format, which is why adding a row by hand later is trivial — copy any line and change the words. Two limits are worth knowing before you design around them: a cell must fit on one line, so multi-paragraph cells are out; and a literal pipe inside a cell must be escaped as \|, which this generator does for you automatically.
When a table is the wrong tool
Tables earn their place when readers need to compare values across rows — prices, scores, schedules, specifications. They struggle with prose: a table whose cells hold sentences is a document fighting its format, and on narrow phone screens wide tables force sideways scrolling no matter how they are built. If your content is mostly sentences, a list will serve readers better; if it is mostly numbers and short labels, you are in the right place. Keep tables narrow, keep cells short, and right-align the numbers — your readers' eyes will thank you.
Editing the table later, by hand
Sooner or later the table will need a change after it has left this page, and it helps to know that hand-editing is genuinely easy. To add a row, copy any body line, paste it below, and replace the words between the pipes — the renderer counts pipes, not intentions, so a copied line is a guaranteed-valid row. To add a column, the separator row must gain a cell too; that is the step people forget, and a header with four cells over a separator with three is the classic reason a table refuses to render. Deleting is the mirror image: remove the cell from every row including the separator. And if a table you paste somewhere renders as plain text with visible pipes, do not blame the table — check the platform first. Tables are a GitHub-flavoured extension, and a renderer without it will show the raw lines exactly as written, which is a platform setting to flip, not a table to rebuild.
Frequently asked questions
How do I use the Markdown table generator?
Choose how many columns and body rows you need and press Rebuild grid. Type your headers in the first row, pick an alignment for each column from the dropdowns under the headers, and fill in the cells. The Markdown code underneath updates with every keystroke — press Copy and paste it into your document.
What does the separator row do?
The second row of a Markdown table — the one made of dashes — tells the renderer where the header ends and also carries the alignment for each column. --- means default alignment, :--- means left, :---: means centre and ---: means right. The generator writes this row for you from the alignment dropdowns.
How many rows and columns can I make?
Up to 10 columns and 25 body rows, which covers the great majority of tables people put in documents. If you need more rows, generate the table with 25, paste it into your editor, and keep typing rows in the same pattern — every row is just a line of text between pipes.
What if a cell needs a pipe character in it?
The generator escapes it for you as \| automatically, which is how Markdown represents a literal pipe inside a table cell so it is not mistaken for a column divider. Line breaks inside a cell are converted to spaces, since a Markdown table row must live on one line.
Where can I use the generated table?
Anywhere GitHub-flavoured Markdown is rendered: GitHub and GitLab READMEs and issues, documentation sites, Hugo, Jekyll and other static site generators, Notion-style apps that import Markdown, and our own Markdown Preview if you want to check how it will look before publishing.
Do the columns need to line up neatly in the code?
No. Renderers only care about the pipes and the separator row, not about whether the text between them is padded to equal widths. Neatly padded tables are prettier to read as source, but a ragged one renders identically. This generator emits one space either side of each cell, which is the compact style most projects use.
Can I put formatting inside cells?
Yes — inline Markdown works inside cells on most renderers: **bold**, *italic*, `code` and [links](url) all behave as they do in a paragraph. Type the syntax straight into the grid cells and it will be copied into the output as written.
Is my data uploaded anywhere?
No. The grid and the generator live entirely in this page, in your browser. Nothing you type is sent to a server, stored or logged — close the tab and it is gone, so copy your table before you leave.
Why does plain Markdown (CommonMark) not show my table?
Tables are an extension, not part of the original Markdown or the CommonMark core. They work on GitHub, GitLab and most documentation tools, but a strict CommonMark renderer will show the raw pipe text instead. If your target platform shows pipes, check whether it has a tables extension you need to enable.