Skip to content
migration.tools
HTML table to JSON

HTML table to JSON converter

Extract an HTML table into a JSON array of objects keyed by its header row.

Going the other way? JSON to HTML table

Options

HTML table

JSON

The result appears here as soon as there is input.

Processed on this device. Nothing you paste or drop is uploaded.

How to use it

  1. 1Paste your HTML table or drop a file onto the input panel.
  2. 2Adjust the options — the result updates as you type.
  3. 3Copy the JSON or download it. Drop several files to convert a batch into one ZIP.

How HTML table becomes JSON

Every row in the HTML table input becomes one record in the JSON output, and the header row supplies the field names. Column order is preserved.

Cells are typed where the meaning is unambiguous: 42 and 3.14 become numbers, true and false become booleans, and an empty cell becomes null. Anything that only looks numeric — 00501, +44 20 7946 0958, a 19-digit order ID — stays a string, because turning it into a number would corrupt it.

HTML table and JSON, briefly

An HTML table is how tabular data appears on a web page. Converting it lets you lift data out of a page, or drop a clean table into an email or CMS.

JSON is the default language of web APIs and document databases. It nests objects and arrays to any depth and distinguishes strings, numbers, booleans and null, but has no comments and no date type.

Questions

Can I paste a whole web page?

Yes. Paste the page source or just the <table> element. The first table found is converted; tags inside cells are stripped and HTML entities decoded.

Does the converter guess data types?

Yes, unless you turn it off. Whole numbers, decimals, true and false become real JSON numbers and booleans. Values with leading zeros (like ZIP code 00501), numbers longer than 15 digits and anything that isn't unambiguously numeric stay as strings, so IDs and phone numbers survive intact.