Tool

JSON to SQL

Convert JSON arrays into INSERT statements and CREATE TABLE DDL

How to use

  1. Paste a JSON object or an array of objects into the input pane. Arrays produce one INSERT per element.
  2. Pick your SQL dialect: MySQL, PostgreSQL, or SQLite.
  3. Optionally change the table name (defaults to my_table).
  4. Copy the CREATE TABLE statement and the INSERT statements from the output pane.

About this tool

Converting JSON exports from APIs or NoSQL databases into relational INSERT scripts is a common chore when seeding test databases or migrating data. This converter handles the two annoying parts automatically: type inference from sample values, and correct quoting per dialect. Column order follows the first-seen key order across all rows, and rows missing a key simply get NULL.