Toolibra

JSON to SQL

Get ready-to-run INSERT statements, with an optional CREATE TABLE that guesses column types, for MySQL, PostgreSQL, SQL Server or SQLite. JSON is the data format of web APIs and JavaScript apps: objects with keys and values, lists, numbers, true/false and null.

🔒 Your files are processed on your device and are never uploaded.

How to use

  1. 1Paste your JSON data, or open a .json file. You can also try the sample.
  2. 2Check the preview and adjust the options if you need.
  3. 3Copy the SQL or download it as a file.

Frequently asked questions

How do I convert JSON to SQL?

Paste your JSON data, or open a .json file. You can also try the sample. The SQL result appears instantly; then copy it or download it.

Is my data uploaded?

No. The conversion runs inside your browser, so your data never leaves your device. It works with large files too.

What happens to nested data?

Nested objects become columns with dotted names (for example address.city). Lists of simple values are joined with commas, and other lists are kept as JSON text.

Which databases are supported?

MySQL / MariaDB, PostgreSQL, SQL Server and SQLite. Names and text are quoted the right way for each one, and you can add CREATE TABLE with guessed column types.

More free tools