JSON to SQL DDL (CREATE TABLE) Converter

BeanTrans turns JSON objects into ready-to-run CREATE TABLE SQL DDL statements supporting MySQL, PostgreSQL, and SQLite dialects right in your browser, splitting nested objects into separate table definitions.

Key Capabilities

  • Switch between MySQL, PostgreSQL, and SQLite dialects in the Config drawer.
  • Converts camelCase keys into snake_case SQL column names with sensible default column types.
  • Click Swap to reverse SQL DDL back into Java JPA, Go structs, or JSON examples.

Type Mapping Reference

Source Target Notes
stringVARCHAR / TEXTDialect-appropriate text type
integerINT / BIGINTControlled by Number Type
decimalDOUBLE / DECIMALNumeric precision preserved
booleanBOOLEAN / TINYINT(1)Adapts to selected SQL dialect

Frequently Asked Questions

Which SQL dialects are supported when converting JSON to SQL DDL?
BeanTrans supports MySQL, PostgreSQL, and SQLite dialects via the SQL DDL section in the bottom Config drawer.
Can BeanTrans convert existing CREATE TABLE SQL into Java or Go models?
Yes. Switch Source to SQL DDL (or visit the SQL to Java / SQL to Go pages) to parse CREATE TABLE statements into any of the 9 supported targets.
Are my database schemas uploaded anywhere?
No. Everything runs strictly in local browser memory with zero network calls.