Skip to content
Takikit

JSON to SQL INSERT Converter

Turn a JSON array of objects into INSERT statements, automatically collecting every column found in the data.

Loading tool...

Runs in your browser. Nothing is sent anywhere.

When to use it

Use this when you have sample data or an API or MongoDB export in JSON and need it in MySQL, PostgreSQL, SQL Server or SQLite to seed a test table.

Columns are the union of all keys in the array, and objects missing a key get NULL; nested values are stored as JSON strings. true and false are written as TRUE and FALSE, or as 1 and 0 for SQL Server BIT columns.

How to use

  1. Paste a JSON array.
  2. Set the table name and database type.
  3. Download the .sql file.

Frequently asked questions

Is the data I paste sent to a server?

No. The tool runs in JavaScript right in your browser, and Takikit has no server that receives data. You can turn off your internet after opening the page and the tool will still work.

Related tools

More Developer tools

See all developer tools