JSON Type Generator
Turn sample JSON into typed models for TypeScript, Python, C#, Go, Rust, or Kotlin, or generate JSON Schema.
How types are inferred
Nested objects become their own models. When objects in an array omit a field, the generator marks it optional. Include representative values for fields that can be null or hold different types. TypeScript and Python can express mixed types as unions. Other model targets use their generic JSON value type for mixed fields. Select JSON Schema when you need a schema for a validator.
Frequently asked questions
What do I need to use JSON Type Generator?
Start with Paste JSON, Choose an output language, Name the root type. Use the units and formats shown beside the inputs.
Do I need to create an account?
No. You can browse and use TinyToolbox’s available tools without an account.