ToolsOnline

Online SQL to Model Converter

Turn CREATE TABLE into TypeScript / Java / Swift / Kotlin classes with SQL-typed comments

Supports PRIMARY KEY, NOT NULL, DEFAULT, AUTO_INCREMENT and backtick / double-quoted identifiers; generated comments keep the original SQL types.
Output appears automatically once a CREATE TABLE is entered

About this SQL to Model converter

Paste a CREATE TABLE statement and the tool parses the table name, columns, types, PRIMARY KEY, NOT NULL, DEFAULT and AUTO_INCREMENT on its own (quoted identifiers with backticks or double quotes are supported), then generates TypeScript / Java / Swift / Kotlin code from a built-in type map. Generated field comments keep the original SQL types, and nullability is reflected in the output.

The type map covers 20+ common SQL types — VARCHAR, INT, BIGINT, DECIMAL, TEXT, DATETIME, BOOLEAN, JSON, BLOB and more: BIGINT→number/long/Int64/Long, DECIMAL→number/BigDecimal/Decimal/BigDecimal. Parsing happens locally in your browser; your schema never leaves the page.