JSON to SQL
Convert a JSON array of objects into SQL INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server. Nested values are stored as JSON text. Free and private.
Runs in your browser. Nothing is uploaded.
About JSON to SQL
JSON to SQL generates INSERT statements from a JSON array, one row per object. Every key that appears in any object becomes a column, and objects missing a key get NULL for it.
Types are respected: numbers stay unquoted, true and false become TRUE/FALSE (or 1/0 for MySQL and SQL Server), null becomes NULL, and nested objects or arrays are written as JSON strings you can store in a JSON or text column.
How to use JSON to SQL
- Type or paste your text into the input box. Press Sample to see an example.
- Adjust the options. The result updates as you type.
- Copy the result, or press Use as input to chain another transformation.
Frequently asked questions
Does it accept a single object?
Yes. A single object produces one INSERT.
What about nested objects?
They are serialised to JSON text. Flatten them first with JSON Flatten if you want separate columns.
Is JSON to SQL free and private?
Yes. JSON to SQL is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.