BeanTrans — 9×9 Bi-Directional AST Schema Converter

Built by UKMMS. Zero-backend, privacy-first browser converter translating data models and schemas directly in memory across 9 languages and formats.

Supported 9×9 Conversion Matrix

Convert any-to-any between JSON, Java Class, Go Struct, Python Class / Dataclass, TypeScript Interface, Kotlin DataClass, Rust Struct, Protobuf Message, and SQL DDL, with nested objects automatically split into companion tabs and one-click source/target swap.

Framework & Dialect Presets

  • Java ORM & Serialization: JPA / Hibernate (@Entity, @Table, @Id), MyBatis-Plus (@TableName, @TableId), Lombok, and Jackson @JsonProperty.
  • SQL Dialects: MySQL, PostgreSQL, and SQLite DDL generation.
  • Language Idioms: Rust serde derives and rename macros, Go json:"..." struct tags, Python 3.7+ @dataclass, and bilingual EN / ZH-CN UI.

Frequently Asked Questions

Which languages and schema formats does BeanTrans support?
BeanTrans supports true 9×9 bi-directional conversion across JSON (including JSON5), Java Class, Go Struct, Python Class / Dataclass, TypeScript Interface, Kotlin DataClass, Rust Struct, Protobuf (proto3) Message, and SQL DDL (MySQL, PostgreSQL, SQLite).
Does BeanTrans upload my code or JSON schemas to a backend server?
No. BeanTrans is a zero-backend React + TypeScript AST converter that parses and generates all code 100% locally inside your browser memory.
What Java ORM, SQL dialect, and Rust/Go presets are included?
Open the Config drawer at the bottom of the workbench to toggle Java JPA / Hibernate (@Entity, @Table, @Id), MyBatis-Plus (@TableName, @TableId), Lombok @Data, Jackson @JsonProperty, MySQL / PostgreSQL / SQLite dialects, Rust Serde derives, Go json tags, and Python @dataclass.
How does one-click source/target swap work?
Click the circular swap button on the divider between Input and Output to swap the source and target languages while automatically carrying the active output tab code into the input editor.

Privacy & Source Code

BeanTrans executes 100% locally in your browser without uploading code or schemas to any server. Open source under GPL-3.0 on GitHub.

中文简介 · 9 种语言数据结构双向 AST 互转工具

BeanTrans 由 UKMMS 打造,支持 JSON、Java 实体类(JPA / Hibernate / MyBatis-Plus / Lombok / Jackson 注解)、Go Struct、Python Dataclass、TypeScript Interface、Kotlin DataClass、Rust Struct(Serde)、Protobuf 与 SQL DDL(MySQL / PostgreSQL / SQLite)任意双向转换,支持源/目标一键互换与中英文界面切换,全程在浏览器本地执行,零后端上传。