CREATE TABLE Generator
Design a SQL table visually and generate correct CREATE TABLE DDL for MySQL, PostgreSQL, SQLite, and SQL Server. Add columns, types, defaults, primary keys (single/composite), unique, foreign keys with ON DELETE/UPDATE, indexes, CHECK constraints, ENUMs and comments. Includes CSV/JSON column inference, IF NOT EXISTS, matching DROP TABLE, seed INSERT scaffolding, MySQL engine/charset, SQLite WITHOUT ROWID, reserved-word auto-quoting and per-dialect identifier limits. 100% client-side.
Design a SQL table visually and generate correct CREATE TABLE DDL for MySQL, PostgreSQL, SQLite, and SQL Server. Add columns, types, defaults, primary keys (single/composite), unique, foreign keys with ON DELETE/UPDATE, indexes, CHECK constraints, ENUMs and comments. Includes CSV/JSON column inference, IF NOT EXISTS, matching DROP TABLE, seed INSERT scaffolding, MySQL engine/charset, SQLite WITHOUT ROWID, reserved-word auto-quoting and per-dialect identifier limits. 100% client-side. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.