JSON Tool 04

JSON to C# classes

Generate C# model classes from JSON, with Newtonsoft.Json or System.Text.Json attributes, namespaces and downloadable files.

Input Enter JSON structure

Paste the JSON your API returns

Nested objects and arrays become their own classes
C# Classes will appear here

Classes appear here

Press Generate classes to build one file per object
Attributes follow the serializer you pick; “Download all” ships one file per class. Client-side only

Frequently asked

Which serializer attributes can it emit?
Newtonsoft.Json, System.Text.Json, or none. Pick one before converting; the attributes follow your choice.
Can I set the namespace and root class name?
Yes. Both are editable, and nested objects become their own classes inside the same namespace.
How do I get all the files at once?
Use "Download all" in the overflow menu — it ships one file per generated class instead of the single class shown in the result pane.
Is my JSON uploaded?
No. Code generation runs in the page.