← All Tools

HTML Table to JSON / CSV — Scrape Tables from Any Webpage

Paste HTML from any webpage and extract tables as clean JSON or CSV. Works with Wikipedia, sports stats, financial data, and any HTML source. Handles multiple tables and nested headers. No upload needed.

Free, no sign-up — one of the SaaSQuickStart Data & Analytics tools.

How it works

The tool parses your pasted HTML using the browser's built-in DOMParser API, which creates a completely inert document — no scripts in the pasted HTML execute, and no network requests are made. It then queries all <table> elements, extracts each row's cell text content, and serialises the result as a JSON array of objects (using column headers as keys) or as RFC 4180 CSV. All processing happens in your browser; nothing is uploaded to any server.

Frequently asked questions

Why can't I just paste a URL instead of HTML?

Browsers enforce Cross-Origin Resource Sharing (CORS) — a security policy that prevents a web page from fetching content from a different domain without that domain's permission. Most websites do not grant this permission, so fetching a URL directly from the browser would fail. Pasting the HTML is the reliable alternative. For Wikipedia specifically, their REST API does allow CORS, so a Wikipedia-specific tool could work differently.

How do I get the HTML from a webpage?

Right-click the table on the page → Inspect (or Inspect Element) → right-click the highlighted <table> element in the developer tools panel → Copy → Copy outerHTML. Paste that directly into the input above. Alternatively, use Ctrl+U (Cmd+U on Mac) to open the full page source and paste the whole thing — the extractor will find all tables in it.

What happens to cells that span multiple columns (colspan)?

The extractor reads the raw cell elements, not their rendered positions. A cell with colspan="2" appears as a single cell in the output rather than being duplicated across two columns. For complex merged-cell tables, the column alignment in the output may not match the visual layout.

Can I extract tables from a PDF?

Not directly — PDFs are not HTML and do not contain <table> elements. To extract tables from a PDF, open it in a browser (drag and drop onto the tab bar), use Adobe Acrobat's Export to Excel feature, or copy the table text into a spreadsheet manually. Once you have the data in a spreadsheet, use File → Download as CSV and then use the CSV Column Stripper tool on this site.

All free tools · SaaSQuickStart