Generate C# classes from JSON
JSON to C# Class generates a single 'Root' class with one property per top-level JSON key, entirely in your browser — nothing is uploaded to a server. Strings, numbers, and booleans map to string, double, and bool; arrays always become a generic List of object, and nested objects become plain object, since nested values aren't recursively converted into their own classes.
Is JSON to C# Class free to use?
Yes, it's completely free with no signup required.
Does it handle nested objects and arrays as their own classes?
No — only top-level keys become typed properties. Nested objects are typed as plain object and arrays as List<object>, rather than generating separate nested classes.
Is the generated code ready to use as-is?
For flat JSON with simple string, number, and boolean values, yes. For nested data, you'll need to manually define and wire up additional classes for the nested structures.
Is my data uploaded to a server?
No, generation happens entirely in your browser.