JSON to SQL

Input
Output

JSON to SQL Converter

Turn an array of JSON records into a CREATE TABLE statement with sensible column types, plus INSERT statements ready to run. Nested objects become JSON columns.

How to use it

  1. Paste an array of objects.
  2. Set the table name and pick PostgreSQL, MySQL or SQLite.
  3. Copy the SQL and run it.

What it does

Questions

Can I query JSON with SQL instead?
Yes. The SQL tool runs SELECT queries directly on your JSON.
Is my data uploaded?
No. Bracely runs entirely in your browser, so nothing you paste or open leaves your device.

More JSON tools

Bracely has more than 60 JSON tools in one page. Related ones:

Runs entirely in your browser. Nothing you paste is uploaded. Privacy policy