How to generate CREATE TABLE SQL from JSON
Paste JSON objects — get CREATE TABLE DDL with inferred column types.
Prototyping a schema from sample data is faster than writing DDL by hand. The CREATE TABLE Generator inspects JSON keys and values to infer VARCHAR, INT, BOOLEAN, and other column types.
How it works
- Paste JSON — one object or an array of sample rows.
- Table name — name for the generated table.
- Copy DDL — CREATE TABLE statement ready to run.
Type inference
Types are guessed from JavaScript typeof and value patterns. Review before production — dates and decimals may need manual adjustment.
Seed data
After creating the table, populate it with the SQL INSERT Generator.