What is a JSON to C# converter?
A JSON to C# converter turns a raw JSON sample into ready-to-use C# classes (POCOs). Paste an API response and get strongly-typed models with properties you can drop straight into a .NET project. Everything runs in your browser.
How to generate C# classes from JSON
Paste your JSON and the classes appear live. Press Copy and add them to your solution — the output compiles as-is with no manual fixes for common payloads.
Type mapping
int maps to int, fractional numbers to double, nulls or missing values become nullable types such as int?. Arrays become List<T> and objects with mixed keys become Dictionary<string, T>.
Naming and attributes
Keys are PascalCased for C# conventions. When the original key differs beyond casing, a [JsonProperty] attribute keeps deserialization working, and missing or null fields use nullable annotations.