HTML Table Extractor — HTML Tables to CSV, JSON & Markdown
Extract <table> elements from HTML into CSV, TSV, JSON, or Markdown. Picks individual tables when the page has more than one.
How to use
- 1 Paste HTML containing one or more <code class="font-mono text-xs"><table></code> elements.
- 2 If multiple tables are detected, pick which one to extract.
- 3 Choose output format — CSV, TSV, JSON (array of objects), or Markdown.
- 4 Copy or download the result.
Why use this tool
- Detects every table on the page and lets you pick by index.
- Output formats: CSV (RFC 4180 quoted), TSV, JSON (objects keyed by first row), or aligned Markdown.
- Cell whitespace is collapsed for clean rows.
- Pure client-side. No upload, no analytics on your content.
Frequently asked questions
What about rowspan / colspan?
Cells are emitted in the order they appear in the source. Spanning cells are not expanded — the cell appears once, attached to its first row/column position.
How is the JSON keyed?
The first row of each table is treated as headers. Subsequent rows become objects keyed by those header values. If the first row is empty, fallback keys `col1`, `col2`… are used.
Related tools?
See <a class="text-brand-600 hover:underline" href="/csv-to-json">CSV to JSON</a> for advanced CSV→JSON conversion, or <a class="text-brand-600 hover:underline" href="/markdown-table-generator">Markdown Table Generator</a> to build new tables.
What is HTML Table Extractor?
An HTML Table Extractor is a tool that pulls table elements out of HTML and exports them as CSV, TSV, JSON, or Markdown. It runs in the browser and, when a page contains more than one table, lets individual tables be selected for extraction, converting structured table rows and cells into a chosen plain-text data format.
Features
Four output formats
Export the table as CSV, TSV, JSON (array of objects), or an aligned Markdown table.
Multi-table picker
Choose which table to extract when the HTML contains more than one.
Header-aware JSON
Uses the first row as keys so JSON output is an array of labeled objects.
100% private
Parsed on the device — your HTML never leaves the browser.
Example
Input
<table><tr><th>Name</th><th>Role</th></tr><tr><td>Alice</td><td>Engineer</td></tr></table> (CSV)
Output
Name,Role
Alice,Engineer
Common use cases
-
1
Scrape a copied table
Turn a table copied from a web page into CSV for a spreadsheet.
-
2
Convert docs to data
Extract an HTML table into JSON to feed an API or script.
-
3
Reformat for Markdown
Convert an HTML table into a clean Markdown table for a README or wiki.
Zerethon's HTML table extractor parses <table> elements out of pasted HTML and exports them as CSV, TSV, JSON, or Markdown, all in your browser. When a page has multiple tables it lets you pick which one to extract, collapsing each cell's text and joining rows into the format you choose. Nothing is uploaded.
- Category
- Developer
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
References
- HTML Standard — Tabular data — WHATWG
- RFC 4180 — CSV Format — IETF
- <table> — MDN Web Docs — MDN
Privacy
Your data never leaves your browser unless explicitly stated. HTML Table Extractor runs entirely client-side — no server upload, no logging, no tracking of your input.
Related tools
JSON Formatter
Format, validate, and minify JSON online. Free, no signup — your data never leaves your browser.
Open toolSQL Formatter
Format SQL queries online — beautify MySQL, PostgreSQL, SQLite, SQL Server, Oracle, and BigQuery.
Open toolUUID Generator
Generate UUIDs online — v1, v4, v7, and Nil. Bulk generation up to 10,000. Free, no signup.
Open toolPassword Generator
Generate strong, cryptographically random passwords. Configurable length and character sets — runs in your browser.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.