Loading…
Extract HTML tables to JSON arrays for scraping. Use for <table> input only; for CSV to JSON use csv-to-json. Input: HTML with tables ≤10MB. Returns JSON array or NO_TABLE_FOUND error. 100% client-side.
HTML Table to JSON Converter is loading — interactive editor will appear here. Use examples below to try instantly once loaded.
Press ? for keyboard shortcuts
Parses HTML table markup into structured JSON in the browser. Paste a <table> snippet, choose whether the first row is a header, and the tool converts rows and cells into an array of objects keyed by header text. Supports multiple tables in one document.
HTML tables on the web are convenient to read but awkward to consume as data. Converting them to JSON makes them usable in spreadsheets, scripts, and data pipelines without manual transcription or fragile scraping.
This tool is part of the DevStackIO platform — a collection of free online developer tools from DevStackIO. Browse more free developer resources on DevStackIO.
Data analysts harvesting data from the web, developers building scrapers or migrations, and anyone who wants table data as JSON for further processing.
Paste the HTML table markup (a <table>…</table> snippet) into the input
Toggle 'First row is header' depending on your table
The JSON output updates automatically
Choose compact or pretty-printed output
Copy or download the resulting JSON
Review the keys once to confirm headers were detected as expected
<table><tr><th>Name</th><th>Age</th></tr><tr><td>Alice</td><td>30</td></tr></table>
→ [{"Name":"Alice","Age":"30"}]A table with no header row → array of row arraysMultiple <table> elements → one JSON object per tableCells with numbers stay as strings by default; toggle numeric coercion to convert themDoes this handle rowspan and colspan?
Yes, spanning cells are expanded to fill their covered columns.
Can I parse multiple tables at once?
Yes, each top-level table becomes a separate JSON object.
Is the HTML executed?
No, it is parsed as data only, never rendered or executed.
Is anything uploaded?
No, all parsing happens locally in your browser.
Authoritative specifications, standards, and in-depth reading for HTML Table to JSON Converter.
HTML is parsed as data only and never executed. Multiple tables produce one object per table. All processing happens locally in your browser.
Generate TypeScript interfaces from JSON with optional readonly and export. Use for TS types; for Go use json-to-go, for generic code use json-to-code. Input: JSON ≤10MB. Returns .ts interfaces or JSON error. 100% client-side.
Generate Go structs with json tags from JSON. Use for Go only; for TypeScript use json-to-typescript. Input: JSON ≤10MB. Returns Go code or JSON error. 100% client-side.
Generate code types from JSON. Use for boilerplate; for TS only use json-to-typescript, for Go use json-to-go. Input: JSON ≤10MB. Returns code. 100% client-side, files never leave browser.
Convert between TOML, JSON, and YAML in any direction. Use for multi-format configs; for single-pair JSON-YAML use json-to-yaml. Input: TOML/JSON/YAML ≤10MB. Returns converted text or parse error. 100% client-side.
Shows Unicode code points, names and UTF-8 bytes for any text. Use when debugging encoding issues; differs from nato-alphabet by code points vs phonetic words. Returns per-character table with escapes. 100% client-side.
Spells numbers as English words with currency and ordinal options. Use for cheques, invoices or legal text; differs from text-to-unicode by words vs code points. Returns word form and copy-ready text. 100% client-side.
Spells text as NATO phonetic words (Alpha, Bravo, Charlie). Use when dictating over calls; differs from text-to-unicode by spoken words vs code points. Returns phonetic transcription. 100% client-side.
Convert Unix timestamps to readable dates and back. Supports timezones and multiple formats.