format · validate · convert · runs locally

JSON to C#

Paste JSON and get C# classes with auto-implemented properties, inferred types (long, double, bool, string, List), and nested classes — ready for System.Text.Json or Newtonsoft.Json. Copy or download the .cs. Runs in your browser.

Frequently asked questions

What does it generate?

public class definitions with public Type Property { get; set; } members inferred from your JSON.

What types are used?

Integers become long, decimals double, strings string, booleans bool, and arrays List<T>. Null and mixed values become object.

How are nested objects handled?

Each nested object becomes its own named public class.