Convert HTML Table to JSON
Paste HTML that contains a table and get its rows back as JSON objects. Choose which table to read. The page source never leaves your browser.
- No email required
- Stays on your device
- Pick which table
- Colspan and rowspan handled
- Runs on your device. Files are never uploaded.
- Free and unlimited. No sign-up, no watermark.
HTML table to JSON in three steps
No account, no email, no waiting for an upload.
- STEP 01
Paste your HTML
Paste a whole page or just the table markup, or open an .html or .htm file.
- STEP 02
Choose the table and options
Pick the table number if there are several, say whether the first row is a header, and decide on typed values.
- STEP 03
Copy the JSON
You get an array of objects keyed by the header names.
What HTML table to JSON does, and what it doesn't
We'd rather tell you up front than surprise you after the download.
What you get
- Several tablesTables are numbered in the order they appear. Pick one, and the note says 'Table 2 of 5'.
- Header or no headerUse the first row for keys, or get plain arrays when there are no headers.
- Merged cellsCells that span columns or rows have their text repeated into each slot they cover, so the grid stays rectangular.
- Clean textTags are stripped, entities such as & are decoded, and extra whitespace is collapsed.
- Typed values and nestingOptionally read numbers and true/false as values, turn empty cells into null, or rebuild nested data from dotted headers.
Good to know
- Static HTML onlyTables built by JavaScript after the page loads are not in the source. Copy the rendered HTML from your browser's inspector instead.
- Text onlyLinks, images and styling inside cells are reduced to their text.
- Scripts are ignoredScript and style blocks are skipped. Nothing in the HTML is run.
Your data never leave your device
The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.
Typical online tool upload
Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.
Mediaextractr no upload
The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.
When people use HTML table to JSON
Collect data from a page you saved
Turn a saved report or an email table into records.
Prepare data for a chart
Convert a table from documentation into JSON for a chart library.
Create test fixtures
Copy table markup from a design and make sample data.
Move a table to CSV
Convert, then use JSON to CSV for a spreadsheet.
Mediaextractr vs typical upload tools
| MediaextractrPrivate | Typical upload tools | |
|---|---|---|
| Your file is uploaded | Never | Yes |
| Sign-up needed | No | Often, after a few files |
| Daily file limit | None | Often 1–2 free files |
| Watermark | Never | Sometimes |
| Wait for upload & download | No | Yes |
| Speed on very large files | Depends on your device | Depends on their servers |
Getting the HTML
The simplest way is to right-click a table in your browser, choose Inspect, then copy the table element's outer HTML. Paste that into the box. You can also use File, Save As to keep a page and open the file here.
The converter looks for table tags, rows and cells. Header cells (th) and ordinary cells (td) are both read.
Getting cleaner records
Real-world tables are messy, so a few options help:
- Turn on typed values to convert 42 and true to real JSON values.
- Choose 'Empty cells become null' when you need to tell blank from missing.
- If the first row is not a header, switch the header option off.
- When a page has several tables, change the table number until you reach the one you want.
- Colspan and rowspan cells are repeated, so check merged headers before you rely on the keys.
Respect the source
Tables on public websites may be covered by copyright or terms of use, so check that you may reuse the data. For your own pages, reports and email exports, there is no such concern. This tool only reads HTML you paste, and it never fetches pages from the web.
Questions, answered
How do I convert an HTML table to JSON?
Paste the HTML that contains the table and copy the JSON array it produces.
What if the page has more than one table?
Use 'Which table' to choose by number. The result note shows how many were found.
Is the pasted HTML sent anywhere?
No. It is parsed in your browser tab. The tool never contacts the page the markup came from.
Does it handle merged cells?
Yes. Spanning cells are repeated into every slot they cover.
Why is my table missing?
If a script builds the table after loading, it is not in the page source. Copy the table from the browser's inspector.
Does it run on iOS and Android?
Yes, in the current browsers. Copying HTML out of a phone's inspector is awkward, so a computer is easier for that step.