FreeDev Tools

JSON to SQL

Convert a JSON array to SQL β€” generates CREATE TABLE with inferred column types plus INSERT statements.

Runs locally in your browser. Your input is not uploaded.

How to Use

  1. 1

    Paste a JSON array of objects

    Each object becomes one row; keys become columns.

  2. 2

    Set the table name

    Type your table name in the option field β€” it is sanitized for SQL.

  3. 3

    Copy the SQL

    Run the CREATE TABLE once, then the INSERTs, in your database client.

Frequently Asked Questions

A CREATE TABLE statement with column types inferred from your data (INTEGER, DECIMAL, BOOLEAN, TEXT) plus one INSERT statement per array element, with values properly quoted and escaped.