DDL Builder
Design tables visually and generate CREATE TABLE statements (MySQL / PostgreSQL / SQLite) together with an ER diagram. You can also paste a JSON sample to infer columns automatically. Everything runs in your browser — nothing you enter is sent anywhere.
Generate from JSON (optional)
Table design
Relations (foreign keys)
DDL output
ER diagram preview
Articles for this tool
How CREATE TABLE Generation From a Visual Table Design Works | DDL Builder
A look inside DDL Builder, which turns a visually designed table into CREATE TABLE statements and an ER diagram. Covers the MySQL/PostgreSQL/SQLite type-mapping rules and the column-inference algorithm used for JSON samples.
CREATE TABLE Reference: MySQL vs PostgreSQL vs SQLite Types & Constraints
A cross-database CREATE TABLE (DDL) reference with cheat sheets for data types, auto-increment keys (AUTO_INCREMENT / IDENTITY / rowid), foreign key ON DELETE behavior, and the CHECK constraint that MySQL silently ignores.