JSON to C# Class Generator
Paste JSON and get annotated C# classes with properties and serialization attributes.
Summary
Paste JSON and get annotated C# classes with properties and serialization attributes.
How it works
- Paste sample JSON
- Choose attribute library (System.Text.Json or Newtonsoft)
- Enter class name
- Click Generate and copy
Use cases
- Building .NET API client models from OpenAPI responses
- Typing SignalR hub message classes
- Creating Entity Framework seed data classes
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu