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
- Paste a JSON array.
- Set the table name and database type.
- 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
SQL IN Clause GeneratorPaste a list of order IDs, phone numbers and so on to get a correctly formatted IN ('...', '...') clause with duplicates removed.URL EncoderConvert accented letters, spaces and special characters to %XX form so they are safe to use in links.SQL MinifierPut an SQL statement on one line, removing comments and extra whitespace while keeping quoted text intact.URL DecoderTurn strings like %C4%91 in links back into readable text, including Vietnamese with diacritics.SQL Formatter and BeautifierBeautify long SQL statements: line breaks by clause, indentation and uppercase keywords. Supports MySQL, PostgreSQL, SQL Server and more.HTML Entity EncoderConvert < > & " ' to < > & and so on so HTML code shows as plain text on a web page.
See all developer tools