Generate C# classes from JSON instantly. Auto-properties, nested classes, and List<T> support included. Runs in your browser — your data never leaves your machine.
All conversion happens in your browser using JavaScript. Nothing is uploaded to any server. Safe for sensitive business data.
Every property uses C# auto-property syntax with public getters and setters. Clean, idiomatic C# code ready for your project.
Nested JSON objects are automatically extracted into separate C# classes. Arrays of objects get their own typed classes too.
Paste your JSON into the left panel and C# class code appears instantly on the right. The converter maps JSON objects to C# classes with auto-properties. Nested objects become separate classes, and arrays are typed as List<T>. You can customize the root class name and copy or download the generated code.
Use this tool when building .NET applications that consume REST APIs and you need model classes for deserialization with System.Text.Json or Newtonsoft.Json, when scaffolding DTOs from API responses, or when converting JSON configuration files into strongly-typed C# options classes. The generated code follows standard C# conventions and works with all major .NET serialization libraries.
public type Name { get; set; }) for each property in your JSON data.List<T> in the generated C# code, with the appropriate element type inferred from the array contents.