Skip to main content
Tool ReignTool Reign
DeveloperFinanceTextPDFImageAll categories
Tool ReignTool Reign

310 free online tools for developers, finance, and businesses. No signup required.

100% privateFree tools
Tool Reign - 280+ free browser tools. No signup. Your data stays private. | Product HuntTool Reign - 280+ free browser tools. No signup. Your data stays private. | Product HuntToolReign on PeerlistToolReign on Peerlist
Popular
JSON FormatterText EditorGST CalculatorEMI CalculatorWord CounterMerge PDFImage ResizerSIP CalculatorJWT Decoder
All Tools·Guides·Privacy Policy·Terms of Use·About·Contact

© 2026 ToolReign. All rights reserved.
· Made for 🌍 Everyone

HomeDeveloperJSON to Class — Generate DTOs in 9 Languages
Developer

JSON to Class — Generate DTOs in 9 Languages

Browser-Only

Paste sample JSON and generate strongly-typed classes with separate nested types. Supports TypeScript, Java, Python, C#, Kotlin, Swift, Go, Rust, and PHP.

Related Tools

More free utilities you might find useful

{}
JSON Formatter
Format JSON
📋
JSON Schema Generator
Infer schema
🔍
JSONPath Tester
JSONPath
🔄
YAML to JSON
Convert YAML

Frequently Asked Questions

Quick answers to common questions

How does this handle nested JSON objects?+

Every nested object becomes its own separate, properly named class — not a flattened structure. For example, a "customer" object nested inside an "order" object generates both an Order class and a separate Customer class, with Order referencing Customer, matching how you'd structure the code by hand.

Which languages are supported?+

TypeScript, Java (class or record), Python (dataclass or Pydantic), C#, Kotlin, Swift, Go, Rust, and PHP. Each follows that language's standard naming conventions — for example, camelCase fields in Java and TypeScript, snake_case in Python and Rust, PascalCase properties in C#.

Are field types accurate?+

Types are inferred from your sample JSON values. If a field could contain different types across different records (e.g. sometimes a number, sometimes null), provide a representative sample that shows the range of values you expect, since inference is based only on what's in the JSON you paste.

Is my JSON data uploaded anywhere?+

No. All type inference and code generation happens entirely in your browser using JavaScript. Your JSON is never sent to any server.

Your data is processed entirely in your browser. Nothing is sent to any server.