tablecraft
Local workspace Your data stays in this browser
RELATIONAL MODEL

Schema overview

0tables
0relations
0rows
Developer tool

JSON to Table Converter

Tablecraft converts nested JSON into a relational model. Each array becomes its own table with a primary key and a foreign key back to its parent, so you can see the structure at a glance and export a SQL schema. It also reads HTML tables. Everything runs in your browser.

How to convert JSON to tables

  1. Paste or upload

    Paste JSON, HTML or CSV into the editor, or drop a .json, .html or .csv file.

  2. Build the tables

    Press Build tables (or Ctrl or Cmd+Enter). Nested arrays become child tables.

  3. Review

    Switch between the Relationships view and the Data preview to check the result.

  4. Export

    Download the SQL (schema, or schema with INSERT statements) or any table as CSV.

Why use Tablecraft

Nested JSON to related tables

Arrays of objects become tables linked by foreign keys.

HTML tables too

Reads <table> elements and infers keys from columns such as customer_id.

Schema view

Cards show each table, its columns and types, with PK and FK marks.

Edit cells and add rows

Click any cell to fix it, add a row, and every export uses your changes.

Clean-up tools

Transpose, delete empty rows, remove duplicates, change case, find and replace with regex, and undo or redo.

CSV in, many formats out

Read CSV or TSV, then export CSV, Excel, Markdown, HTML, JSON, XML, YAML or LaTeX.

Filter rows

Filter rows across every table before you export.

SQL export with data

CREATE TABLE with inferred types, plus optional INSERT statements for every row.

Private by design

Your data never leaves your browser.

Six export formats

Download SQL, an Excel workbook, CSV or JSON, or copy Markdown or HTML.

What people use it for

  • Designing a database from an API response
  • Understanding the shape of a large JSON file
  • Turning scraped HTML tables into a schema
  • Teaching or learning relational modelling

Frequently asked questions

Is Tablecraft free?

Yes. It is free with no sign-up.

Is my JSON uploaded?

No. The conversion runs in your browser.

What SQL does it export?

Generic CREATE TABLE statements with quoted names, primary keys and foreign keys. Tick "Include data" in the Data preview to add INSERT statements for every row.

How are tables and keys named?

Tables are named from the JSON keys. Child tables get a foreign key named after the parent, such as customer_id, linked to the parent's id.

What if my objects have no id?

A key is generated for each row so the child tables can still link to it.

How big a file can it handle?

It is limited by your browser's memory. Very large files may be slow.