๐Ÿ“ Input
๐Ÿ“ค Result
Waiting for input...
Drop file to upload

Convert JSON to SQL Online โ€” Free INSERT Generator

Convert JSON data to SQL INSERT statements with automatic CREATE TABLE generation. Perfect for importing JSON API data into MySQL, PostgreSQL, or SQLite databases. All processing is browser-based and private.

Step 1: Paste your JSON array

Paste a JSON array of objects, or drag and drop a .json file. Each object becomes a row. The first object determines the column names and types.

Step 2: Click Generate SQL

The tool auto-detects data types (INTEGER, REAL, BOOLEAN, TEXT) and generates a CREATE TABLE statement followed by INSERT statements for each row.

Which databases are supported?

The output uses standard SQL compatible with MySQL, PostgreSQL, SQLite, and MariaDB. String values are properly escaped for safe SQL usage.

Can I use a custom table name?

The default table name is "my_table". Edit the output directly to change it, or customize column types manually after generation.