ToolsOnline

Online JSON to Model Converter

Infer field types from JSON and emit TypeScript / Java / Swift / Kotlin classes

Nested objects become separate classes (class name from the key in PascalCase); arrays infer their element type from the first item, empty arrays fall back to any.
Output appears automatically as you type

About this JSON to Model converter

Paste any JSON and the tool infers field types to generate TypeScript / Java / Swift / Kotlin class definitions: nested objects become separate classes (class name from the key in PascalCase), arrays infer their element type from the first item, and empty arrays fall back to any. Tick "optional fields" to mark everything nullable; the root class name defaults to Root and is editable.

Java output includes full getters/setters, Swift emits a Codable struct, Kotlin a data class and TypeScript class field declarations. All conversion runs locally in your browser — API samples are never uploaded.