JSON to C# Class
Generate C# classes or records from JSON, with nullable reference types.
JSON
C# classes
About the JSON to C# Class
Paste JSON and instantly get ready-to-compile C# class or record definitions. Nested objects become their own classes, arrays infer the singular type, and common value shapes are detected (DateTime, Guid, bool, int, double). Toggle record vs class, nullable reference types, JsonPropertyName attributes and List<T> vs array.
Examples
User object
{"id":42,"name":"Ada"}Output
public class Root { public int Id { get; set; } public string Name { get; set; } }Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Android APK Analyzer & Explorer
Dev Utilities
Open an APK, decode its manifest and browse or download every file inside.
APK Certificate Inspector (SHA-1 / SHA-256)
Dev Utilities
Read an APK's signing certificate and get its SHA-1, SHA-256 and MD5 fingerprints.
Archive Extractor & File Explorer
Dev Utilities
Unzip ZIP, TAR, GZ, 7Z, RAR and more in your browser — browse folders, preview and download files.
Code Minifier & Beautifier
Dev Utilities
Minify or beautify JavaScript, CSS, HTML, JSON, XML, SQL, Java, Kotlin, C#, C/C++, Go, Swift, PHP, Python and YAML.
HTML to JSX Converter
Dev Utilities
Convert HTML markup into clean React/JSX component code.
iOS IPA Analyzer & Explorer
Dev Utilities
Open an iOS .ipa, decode Info.plist and browse or download every file inside.
Frequently asked questions
Comments
No login needed. Comments appear after a quick review.
Loading comments…
Version 1.0.0 · Updated 2026-08-25 · Runs entirely in your browser