Generate C# classes from sample JSON. Free, private, runs in your browser.
100% private — your files and text never leave your browser. All processing happens locally on your device.
JSON to C# converts sample JSON into classes with nested models, List<T> arrays, sanitized property names, nullable annotations, and optional serialization attributes.
Choose System.Text.Json, Newtonsoft.Json, or no attributes. When attributes are enabled, original JSON keys are preserved even when C# property names are sanitized.
The generator infers from examples, so heterogeneous arrays become object-like fallbacks and null fields may need manual refinement. Copy or download the result, then adapt it to your project conventions.
Yes. Choose System.Text.Json, Newtonsoft.Json, or no attributes.
Class and property names are sanitized into valid identifiers, while enabled attributes keep the original JSON keys.
It can emit nullable reference annotations and marks sample nulls or reference-like fields where practical.
Nested arrays and objects generate List<T> types when the sample has a consistent element shape.
No. Generation happens locally in the browser and the output can be copied or downloaded.