Extract Tables from HTML

Paste HTML, choose a table and a format — get clean CSV or JSON. Runs entirely in your browser, no upload, no sign-up.

Extracted table

Extract tables from HTML in your browser

Paste HTML that contains one or more <table> elements, pick which table and the output format, and get clean CSV or JSON. Everything runs locally in your browser — your HTML is never uploaded to a server.

Options

Notes

FAQ

The page has several tables — how do I pick the right one?

Use Table number: it's 0-based, so 0 is the first <table> in the HTML, 1 the second, and so on. If the index is past the end you get an explicit error telling you how many tables were actually found, so you can adjust rather than silently getting the wrong data.

How are merged cells (colspan/rowspan) handled?

They are not expanded: a cell that spans three columns comes out as a single value, so rows under a merged header can look shifted. If your source table uses heavy merging, expect to realign those columns after export — the extractor reads cells strictly in document order.

What does the header toggle change in JSON output?

With the toggle on (the default), the first row becomes the keys and you get an array of objects — [{"Name":"Alice","Age":"30"}, …]. Off, you get a plain array of arrays including the first row. CSV output always contains every row either way.

Do I need a full HTML page, or just the table snippet?

Either works — paste a whole page source or just the <table>…</table> fragment. Cell text is extracted with whitespace collapsed, and CSV values are quoted and escaped correctly when they contain commas or quotes. Nothing is uploaded; parsing happens in your browser.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool html-table-extractor "Paste HTML containing a <table>…"

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/html-table-extractor/?html=Paste%20HTML%20containing%20a%20%3Ctable%3E%E2%80%A6&format=csv&table_index=0&header=true

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.