JSON to C# - Free Online JSON to C# Class Tool | IconVault
Generate C# classes from JSON with properties, types and attributes, or convert C# back to JSON. Free, runs fully in your browser.
JSON to C#
Generate C# classes from JSON, and back again
5 of 5 free runs left - runs in your browser, nothing is uploaded.
Generated output
Types are inferred from your JSON: strings, booleans, integers, doubles, nested objects (become their own classes) and arrays (becomeList<T>). Every property gets a[JsonPropertyName] attribute so the original JSON keys keep working. Reverse conversion is best-effort and fills sample values by type.
About this tool
IconVault's JSON to C# generator turns any JSON document into clean, ready-to-compile C# classes: PascalCase properties, correct value and reference types, nullable annotations where the data demands them, and nested objects become their own class definitions automatically. Paste API JSON and get your data models without hand-writing them.
It also works in reverse: paste a C# class with auto-properties and get a sample JSON object back, which is handy for mocking responses and testing serializers. Everything runs fully in your browser with nothing uploaded, and it is free to try (heavy repeated use may ask for Pro).
Frequently asked questions
Popular searches
More tools
Code Playground
Write HTML, CSS & JS with live preview.
JSON Formatter
Beautify, validate & minify JSON.
Base64 Encoder
Encode & decode text and files.
JWT Decoder
Inspect tokens without sending them anywhere.
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon