JSON to C# Classes
Generate C# classes with JSON serialization attributes. Supports Newtonsoft.Json and System.Text.Json, nullable reference types, and records.
Generation Options
Frequently asked questions
Paste your JSON into the editor. Configure namespace, class name, JSON library (Newtonsoft or System.Text.Json), nullable types, and record generation. C# code generates instantly.
No. All C# class generation happens 100% client-side in your browser. Your data never leaves your machine.
Newtonsoft.Json: mature, feature-rich, uses JsonProperty attribute. System.Text.Json: built-in, faster, uses JsonPropertyName attribute. Choose based on your project's JSON library.
Yes. Enable 'Generate Records' to create C# 9+ records with init-only properties for immutable data structures.
Ready to build?
Create your first mock JSON endpoint or try more tools — signup takes seconds.