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.

All tools

JSON to C#

Generate C# classes from JSON, and back again

5 of 5 free uses left

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

json to c#json to csharpjson to c# classconvert json to c#json to c# onlinejson to c# class generatorjson to c# online freejson to csharp class onlinegenerate c# classes from jsonjson to pocojson to c# poco generatorjson to c# modeljson to c# data modelapi json to c#rest api json to c#json to c# propertiesjson to c# pascalcasejson to c# nullablejson to c# listjson array to c#nested json to c#json to c# freejson to c# no signupjson to c# privatejson to c# without uploadc# to jsonc# class to jsonconvert c# class to jsonc# to json onlinec# object to json samplec# model to jsongenerate json from c# classc# auto properties to jsonjson c# converterc# json converter onlinejson to csharp codejson to .net classjson to dotnet modeljson to c# newtonsoftjson to c# system.text.jsonjson to c# attributesjsonproperty c# generatorjson to c# recordjson to c# structjson to c# copy pastejson to c# toolbest json to c# converterjson to c# for unityjson to c# for asp.netjson to c# visual studio

More tools

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

View all 10+ tools →