JSON to C# Class Generator
Generate C# class models from JSON objects and arrays.
JSON to C# Class Generator for API Models
Convert JSON examples into C# class models for APIs, DTOs, configuration objects, and typed application code. Paste a JSON object or an array of objects, choose a root class name, and generate properties with inferred C# types.
- Infers strings, integers, doubles, booleans, objects, and lists.
- Creates nested classes from nested JSON objects.
- Runs in your browser so sample API payloads stay local.
Ad
300x250
Ad
300x250
Advertisement
728x90
Our Tools
Choose from our collection of free online tools designed to make your everyday calculations and conversions easier. Search by name or keyword to find the right tool.
Showing 0 of 69 tools
Advertisement
728x90
Frequently Asked Questions
Have a question? We’ve got answers to the most common questions about using our tools.
Can it handle arrays?+
Yes. For arrays it uses the first non-null item as the sample type.
Does it generate perfect production models?+
It creates a strong starting point. Review nullable types, naming, and edge cases before production use.
Is my JSON uploaded?+
No. JSON is parsed and converted in your browser.