Input (JSON)
[
{ "id": 1, "name": "Ada", "active": true },
{ "id": 2, "name": "Linus", "active": false }
]JSON → SQL turns a JSON array of objects into ready-to-run SQL INSERT statements. Each object becomes one row, object keys become column names, and values are mapped to SQL literals — strings quoted, numbers left bare, booleans and null handled appropriately. It's ideal for seeding a database from an API response, a config dump, or scraped data without hand-writing tedious INSERT syntax.
JSON (JavaScript Object Notation) is a lightweight, language-independent data format built from objects, arrays, strings, numbers, booleans, and null. SQL (Structured Query Language) is the standard language for relational databases, and the INSERT statement adds rows to a table. This converter bridges the two so a flat JSON dataset becomes portable, replayable SQL you can run against MySQL, PostgreSQL, SQLite, or SQL Server.
The main file is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
[
{ "id": 1, "name": "Ada", "active": true },
{ "id": 2, "name": "Linus", "active": false }
]INSERT INTO users (id, name, active) VALUES (1, 'Ada', true);
INSERT INTO users (id, name, active) VALUES (2, 'Linus', false);[
{ "sku": "A100", "price": 9.99, "note": null }
]INSERT INTO products (sku, price, note) VALUES ('A100', 9.99, NULL);[
{ "id": 3, "name": "O'Brien" }
]INSERT INTO users (id, name) VALUES (3, 'O''Brien');[
{ "id": 1, "city": "Paris" },
{ "id": 2, "city": "Berlin" }
]INSERT INTO places (id, city) VALUES (1, 'Paris'), (2, 'Berlin');[
{ "id": 10, "rate": 0.5, "label": "x", "ok": true }
]INSERT INTO items (id, rate, label, ok) VALUES (10, 0.5, 'x', true);[
{ "id": 4, "name": "", "score": 0 }
]INSERT INTO users (id, name, score) VALUES (4, '', 0);[
{ "id": 5, "email": "[email protected]", "verified": false }
]INSERT INTO users (id, email, verified) VALUES (5, '[email protected]', false);The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Paste a JSON array of objects and get ready-to-run SQL INSERT statements.
Each object becomes one row; object keys become column names.
One INSERT is produced per record from the array.
Strings are quoted, numbers left bare, booleans and null mapped to SQL literals.
Set a target table name so the INSERTs reference the right table.
Output is portable across MySQL, PostgreSQL, SQLite, and SQL Server.
Seeding a database from an API response, config dump, or scraped data.
Generating replayable INSERTs without hand-writing the syntax.
INSERT generation runs in your browser — your data never hits a server.
Safe for datasets containing private records.
Output
SQL INSERT statements