Finds your records
Paste an array, or an API response such as {"users": [...]}; the first array of objects is used and its key becomes the default table name.
Generate INSERT statements, and optionally CREATE TABLE, from a JSON array of objects.
Convert a JSON array of objects into SQL INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server. Nested values are stored as JSON text or flattened.
[{"id":1,"name":"Aarav","vip":true},{"id":2,"name":"Sara O'Neil","vip":false}]INSERT INTO "customers" ("id", "name", "vip") VALUES
(1, 'Aarav', TRUE),
(2, 'Sara O''Neil', FALSE);Tip: If records have different keys, every key still becomes a column; check the NOT NULL constraints in CREATE TABLE before running it.
Paste an array, or an API response such as {"users": [...]}; the first array of objects is used and its key becomes the default table name.
Keys are collected from all objects, so records with missing fields still line up and the gaps become NULL.
Store nested objects and arrays as JSON text (ideal for JSON/JSONB columns), or flatten them into columns like address.city.
Identifier quoting, TRUE/FALSE vs 1/0 and column types match the database you choose.
An array of objects works best. An object that contains an array of objects (a typical API response) also works, and a single object becomes one row.
By default as a JSON string, which suits MySQL JSON and PostgreSQL JSONB columns. Turn on "Flatten nested objects" to create one column per nested field instead.
Yes. Tick "Add CREATE TABLE" to get a table definition with types detected from the data before the INSERT statements.
No. The SQL is generated in your browser.