AbraCalc

JSON to SQL INSERT Generator

Convert a JSON array of objects into SQL INSERT statements. The union of all keys becomes the column list.

Pure browser JavaScript — no external libraries.

Embed this tool on your site

How to use this tool

  1. Paste a JSON array of objects, or upload a .json file.
  2. Type the target table name and choose single or multi-row mode.
  3. Click Generate SQL, then Copy or Download the .sql file.

Convert a JSON array of objects into SQL INSERT statements. The union of all keys becomes the column list.

Frequently asked questions

What if objects have different keys?
The column list is the union of every object's keys; missing keys become NULL for that row.
How are types mapped?
Numbers and booleans are emitted unquoted (TRUE/FALSE); nested objects/arrays are JSON-stringified into a quoted string; null becomes NULL.

References & sources