Table Generator
Build tables and export them as HTML, Markdown, or CSV.
Click any cell to type. Set each column's alignment from the row above it — alignment is applied in the HTML and Markdown output.
| Product | Units sold | Revenue |
|---|---|---|
| Desk lamp | 128 | $4,992 |
| Wireless mouse | 341 | $8,355 |
Clean semantic <table> markup with <thead>/<tbody> when the header is on. Cell text is HTML-escaped.
How to use Table Generator
What this tool does
The Table Generator is a small visual spreadsheet for building a table by hand and exporting it as HTML, Markdown or CSV. You set how many rows and columns you need, type directly into each cell, choose how each column should be aligned, and the tool produces the same table in whichever format you pick. It opens with a short three-by-three sample table already filled in, so you can see exactly how it behaves before changing anything.
The point of the tool is portability. You enter your data once, and you can hand it to a developer as HTML, drop it into a README or wiki page as Markdown, or open it in a spreadsheet as CSV — without retyping it for each destination. A live preview above the export panel shows the finished table as it will look.
Why and when you’d use it
People reach for this tool whenever a table needs to live in more than one place. A marketer assembling a campaign-results table might paste the HTML into an email template, the Markdown into a project wiki and the CSV into a spreadsheet for the finance team — all from the same grid. A writer documenting a process can build a comparison table here and paste clean Markdown straight into their notes app or static-site post. An operations analyst can sketch a quick reference table and export it as CSV to seed a pivot table.
It is also handy when you have a table in your head but no spreadsheet open: typing six cells into this grid is faster than launching Excel. And because it produces hand-written, predictable markup, it is a reliable way to get a clean table when copy-pasting from a document has left you with messy formatting.
If you are starting from data you already have rather than building from scratch, the companion tools CSV to Table and CSV to Markdown convert an existing CSV file into the same outputs. And if you specifically need styled web markup, the HTML Table Generator is the developer-focused counterpart to this tool.
How to use it
- Set the Rows and Columns counts, or use the + Row, − Row, + Column and − Column buttons to adjust the grid as you work.
- Click into any cell and type its value. Cells can hold text, numbers, currency — anything.
- Use the small menu above each column to set its alignment to left, centre or right.
- Leave First row is the header on if your top row holds column titles; turn it off if every row is data.
- Check the Live preview to confirm the table looks right.
- In the export panel, pick HTML, Markdown or CSV, then use Copy or Download to take the result with you.
Common pitfalls and tips
A few things are worth knowing. When you export as CSV and open the file in Excel, the spreadsheet may turn values like ZIP codes or product SKUs that begin with a zero into plain numbers, dropping the leading zero. If that matters, store those values as text in the spreadsheet after importing, or keep them in a format Excel will not reinterpret.
In Markdown, the pipe character has special meaning — it separates columns. If a cell genuinely needs a pipe in its text, this tool escapes it for you automatically, so the table will not break. Line breaks inside a cell are collapsed to spaces in Markdown, because GitHub-flavoured tables cannot contain real line breaks; if you need multi-line cells, use the HTML output instead.
The HTML output escapes the characters that would otherwise be interpreted as markup, so a cell containing a less-than sign or an ampersand stays as plain text rather than breaking the page. Alignment is written as an inline style in HTML and as colon markers in Markdown; CSV stores only the raw values, so the alignment choice does not appear there.
Privacy
Everything in this tool happens inside your browser. The grid you edit, the HTML and Markdown generators and the CSV serializer are all JavaScript running on your own device. Nothing you type is uploaded, stored or logged, which means you can safely build tables containing internal figures, draft pricing or other private data — when you close the tab, it is gone.
Frequently asked questions
How is this different from the HTML Table Generator?
What is a GitHub-flavoured Markdown table?
Will my table open correctly in Excel or Google Sheets?
Does column alignment work in every format?
Is anything I type uploaded or saved?
Related tools
CSV to Table Converter
Convert CSV data into an HTML table.
CSV to Markdown Table
Convert CSV data into a Markdown table.
HTML Table Generator
Build HTML tables with a visual editor.
CSV Viewer & Editor
View and edit CSV files in a clean table.
Markdown Table to CSV
Convert a Markdown table back into CSV.
List to CSV Converter
Convert a plain list into CSV rows.