Markdown table generator
Type or paste your data into the grid below and copy it as a GitHub Flavored Markdown table, an HTML table or CSV. Paste a range from Excel or Google Sheets straight into a cell, or paste an existing Markdown or HTML table to edit it. Set left, centre or right alignment per column; the Markdown output pads the columns so the pipes line up, even with Chinese, Japanese, Korean or emoji in the cells, and escapes pipes as \|.
| H | |||||
|---|---|---|---|---|---|
| 1 | |||||
| 2 | |||||
| 3 |
Enter goes down a row and adds one at the end; Tab in the last cell adds a row. Paste a range from Excel or Google Sheets into any cell. The first row is the header.
Paste an existing table to edit it
| Plan | Projects | Price per month | Support |
|---|---|---|---|
| Starter | 3 | €0 | Community |
| Pro | Unlimited | €29 | Email | chat |
| Team | Unlimited | €79 | Priority |
| Plan | Projects | Price per month | Support |
| :------ | :-------: | --------------: | ------------- |
| Starter | 3 | €0 | Community |
| Pro | Unlimited | €29 | Email \| chat |
| Team | Unlimited | €79 | Priority |GFM table syntax
The rules from the GitHub Flavored Markdown spec (version 0.29-gfm, section 4.10, "Tables (extension)"). The parser in this tool follows them when you paste a table.
| Plan | Projects | Price per month | Support |
| :------ | :-------: | --------------: | ------------- |
| Starter | 3 | €0 | Community |
| Pro | Unlimited | €29 | Email \| chat |
| Team | Unlimited | €79 | Priority || Part | Rule |
|---|---|
| Header row | Required. A table always has one, and its cell count sets the number of columns. |
| Delimiter row | Cells of hyphens, at least one each, with an optional colon at either end. It must have exactly as many cells as the header row, or the text is not a table. |
:--- | Left aligned |
:---: | Centred |
---: | Right aligned |
--- | No alignment set; the renderer's default |
| Body rows | A row with fewer cells gets empty ones; extra cells are ignored. |
| Outer pipes | Optional at the start and end of a line. |
| A pipe in a cell | Escape it as \|, also inside inline code. |
| End of the table | The first blank line, or the start of another block such as a heading or list. |
What Markdown tables can't do
When you need one of these, use the HTML output instead: GitHub, GitLab and most Markdown renderers accept an HTML table in a Markdown file.
- No merged cells. There is no colspan or rowspan. When you paste an HTML table with a colspan, the tool keeps the text and adds empty cells after it.
- No multi-line cells. A row is one line of text. Use
<br>for a line break; the tool writes it for you. - No block content. Lists, code blocks, headings and quotes don't work inside a cell. Inline code, links, bold and images do.
- No table without a header. If your data has none, leave the first row empty, or put column names in it.
- No widths or styles. Column width comes from the content and the renderer's CSS.
HTML table generator
The same grid writes an HTML table. The first row goes into <thead> as <th scope="col"> cells, the rest into <tbody>. Text is escaped, so a < in a cell stays a character. Plain HTML gets alignment as a text-align style; with Tailwind on, it gets text-center or text-right and a wrapper that scrolls sideways on a phone instead of squeezing the columns.
CSV follows RFC 4180: a field with a comma, a quote or a line break is wrapped in double quotes, quotes inside are doubled, and lines end in CRLF. Pasted CSV with semicolons, as Excel writes it in many European locales, is read too.
The first two rows of the sample, with Tailwind classes:
<div class="overflow-x-auto">
<table class="w-full border-collapse text-left text-sm">
<thead>
<tr>
<th scope="col" class="border-b border-gray-300 px-4 py-2 font-semibold text-gray-900 text-left">Plan</th>
<th scope="col" class="border-b border-gray-300 px-4 py-2 font-semibold text-gray-900 text-center">Projects</th>
<th scope="col" class="border-b border-gray-300 px-4 py-2 font-semibold text-gray-900 text-right">Price per month</th>
<th scope="col" class="border-b border-gray-300 px-4 py-2 font-semibold text-gray-900">Support</th>
</tr>
</thead>
<tbody>
<tr>
<td class="border-b border-gray-200 px-4 py-2 text-gray-700 text-left">Starter</td>
<td class="border-b border-gray-200 px-4 py-2 text-gray-700 text-center">3</td>
<td class="border-b border-gray-200 px-4 py-2 text-gray-700 text-right">€0</td>
<td class="border-b border-gray-200 px-4 py-2 text-gray-700">Community</td>
</tr>
</tbody>
</table>
</div>Building a table into an app or a pricing page? See our 13 data table blocks and 24 comparison tables on shadcn/ui.
Tables and comparisons, finished
5 of 83 free, no account. All of them in UI Pro.
01Comparison table
comparison-01 · Free. An honest strong/weak box over a three-way table: your column shaded with its call to action, ticks, real figures.
Open comparison-01
02Pricing
pricing-01 · Free. Three plan cards under a monthly/yearly switch, the middle one framed with a tab, beside a photo card for schools.
Open pricing-01- 03
All free blocks
Every one with a live preview, filtered to the ones you can use for free first.
See them all
Questions
How do I make a table in Markdown?
Write the header row with pipes between the cells, then a delimiter row of hyphens, then one line per row: | Name | Price | on the first line, | --- | --- | on the second, | Pro | €29 | below. The pipes at the start and end of a line are optional, and the columns don't need to line up. The table ends at the first blank line. This is the GitHub Flavored Markdown table extension, which GitHub, GitLab and most docs tools support.
How do I align a column in a Markdown table?
With colons in the delimiter row: :--- aligns left, ---: aligns right and :---: centres the column. Without a colon no alignment is set, and the renderer's own styles decide. In this generator, use the three alignment buttons above each column.
How do I put a pipe character in a table cell?
Escape it with a backslash: \|. That is needed inside inline code too, because the table is split into cells before the code span is read. The generator escapes pipes for you, and when you paste a Markdown table it reads \| back as a plain pipe.
Can a Markdown table have merged cells or line breaks?
Not merged cells: GFM tables have no colspan or rowspan, so an HTML table is the only way. Each cell is one line of inline content, so no lists or code blocks either. For a line break inside a cell, GitHub accepts the HTML tag <br>, which is what the generator writes for a line break in a pasted cell.
How do I turn an Excel or Google Sheets range into a Markdown table?
Select the cells in the spreadsheet, copy, click a cell in the editor here and paste. Both programs copy a range as tab-separated text, which the editor splits into rows and columns, growing the table if it needs to. The first row becomes the header. CSV text and existing Markdown or HTML tables paste the same way.
How do I make an HTML table?
Switch the output to HTML. You get a <table> with the header row in <thead> as <th scope="col"> cells and the rest in <tbody>, so screen readers can announce the column for each cell. Text is escaped, alignment is a text-align style, and the Tailwind option swaps the styles for Tailwind 4 classes and wraps the table in overflow-x-auto for small screens.
Is it free?
Yes. No sign-up, and nothing leaves your browser: the table is built and converted on your own device. Nothing is saved either, so copy the output before you close the tab.
More free tools
- Free icons150 free SVG icons in one style, with the same names as Lucide. Copy the SVG or JSX, or install the npm package for React. MIT licensed.
- Placeholder logos188 free made-up company logos for mockups and client logo rows, as SVG or PNG in any colour. No attribution, no sign-up.
- shadcn theme generatorMake a shadcn/ui theme from a primary colour, a grey, a radius and fonts, see it on real blocks in light and dark, contrast-checked, and install it with npx shadcn add.
- Dashboard color palette generatorTurn one brand color into a full admin palette for light or dark dashboards, contrast-checked to WCAG AA, with a live preview and a Tailwind v4 export.
UI Pro
Build your next site from finished blocks
Every block, page template and website theme from €199, paid once, with every update and everything we add later. Not ready? The free blocks are open to everyone.
- blocks
- 1401
- page templates
- 55
- website themes
- 29

This card is a UI Pro block: Rooilijn (call-to-action-07).