Convert HTML tables to clean, typed JSON arrays in your browser
Paste raw HTML <table> markup and get a structured JSON array of objects with unfolded merged headers, numeric prices/booleans, and protected 16-digit IDs kept safely as strings.
activeTab only~146 KBWhy this HTML-to-JSON parser handles real-world markup better than regex scripts
- True 2D colspan/rowspan unfolding: merged header groups like Pricing -> Unit USD / Margin flatten into clear, collision-free JSON keys ("Pricing / Unit USD").
- JavaScript Number.MAX_SAFE_INTEGER protection: 16–19 digit order IDs and leading-zero SKUs stay exact JSON strings instead of silently rounding past 53-bit IEEE 754 precision.
- Zero server uploads: parses HTML using the browser DOM parser inside your own tab — safe for proprietary admin pages and internal dashboards.
- One-click live browser capture: the Chrome, Edge, and Firefox extension copies any live HTML, ARIA, or AI chat table straight to your clipboard as JSON.
How it works in 3 steps
1. Paste HTML <table> markup or drop an .html file
Works on messy scraped HTML, multi-row headers using colspan/rowspan, and pages with multiple tables.
2. Preview the typed JSON array live
Prices ($149.00 → 149), percentages (41.5% → 0.415), and booleans (true/false) are typed cleanly, while 16-digit barcodes and leading-zero codes stay exact JSON strings so JavaScript Number precision is never lost.
3. Copy JSON or download a .json file locally
Click Copy JSON to paste straight into your codebase or tests, or click Download .json. Install the extension to copy any live webpage table as JSON in one click.
Frequently Asked Questions
How does the converter handle colspan and rowspan in HTML headers?
It walks every <thead> and <tbody> row through a 2D occupancy matrix, propagating spanning cells across their exact grid coordinates and joining parent/child header labels cleanly so every JSON key is unambiguous.
Why are 16-digit numbers kept as JSON strings instead of numbers?
JavaScript numbers (IEEE 754 double precision) lose accuracy beyond 15–16 digits (Number.MAX_SAFE_INTEGER = 9007199254740991) and strip leading zeros like 0004918273645102. Keeping long IDs and zero-padded codes as strings prevents silent data corruption.
Can I turn off automatic number typing and keep every JSON value as a string?
Yes. Switch between Clean Numbers and Raw Text inside the browser extension, or inspect the Data Shield toggle right inside the workbench.
Can I also export the same HTML table to Excel (.xlsx) or CSV?
Yes. The action bar right below the JSON preview lets you download .xlsx, .csv, or copy Markdown/TSV from the exact same parsed table.