ConverTable

JSON to SQL

A JSON array of objects, or JSON Lines, becomes a table with one column per key; nested objects are flattened into names such as address.city and arrays are kept as JSON text. Numbers and true and false get matching column types, null becomes NULL, and names and strings are quoted for MySQL, PostgreSQL, SQLite, SQL Server or Oracle, whichever you choose. The script contains CREATE TABLE and batched INSERT statements, with an optional DROP TABLE and primary key.

Input
.json .jsonl .ndjson
Output
.sql · five dialects
Reverse conversion
SQL → JSON

Source

No data loaded yet

Editor

The table will appear here

No data

Output

Output format

Preview

The preview appears once data is loaded

© 2026 gosulabs.ai · All conversions run locally in your browser.

v: 0.9.0-ec4f7aad