Sample JSONJSON
GeneratedC#
Paste or type JSON
JSON → class · Local · No upload
JSON to C# Class Generator
Sample JSON → class · System.Text.Json · Nullable · Nested types
No upload, no storage
JSON is processed in memory and never sent to a server.
Share via URL fragment
Share links encode data in the # anchor — never sent to a server.
Remember last edit
Optionally keep your last input locally; clear it with one click.
Generate C# Classes|Newtonsoft.Json & System.Text.Json|Records & Nullable|Runs Locally
Generate Classes
Nested objects split into classes with auto properties.
Serialization Attributes
Adds JsonPropertyName when a field isn't PascalCase.
Nullable Types
Optional/nullable fields use T? nullable annotations.
Compiles As-Is
Works with System.Text.Json / Newtonsoft — paste in and use.
Runs Locally — No Upload
Generation runs in your browser; data is never uploaded.