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

  1. Paste sample JSON
  2. Choose attribute library (System.Text.Json or Newtonsoft)
  3. Enter class name
  4. 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