Toolgeist › Developer

JSON to C# Converter — POCO Classes With Json.NET Attributes

Paste JSON to generate a C# POCO class with properties correctly typed and Json.NET (Newtonsoft.Json) attributes included, so property names that don't match C# PascalCase conventions still deserialize correctly against your original JSON field names.

How to use JSON to C#

  1. Paste your JSON.
  2. Review the generated C# class with Json.NET attributes.
  3. Copy it into your .NET project.

Frequently asked questions

Why include Json.NET attributes specifically?
JSON field names are often camelCase while idiomatic C# properties are PascalCase — the [JsonProperty("originalName")] attribute preserves the correct mapping without renaming your actual JSON.
Does it work with System.Text.Json instead of Newtonsoft?
The attributes are Json.NET-specific; for System.Text.Json, use [JsonPropertyName] instead, which follows the same mapping principle.
Are nested objects generated as separate classes?
Yes — nested JSON objects generate their own named class referenced from the parent.

Related Developer tools

Also searched for: json to c# class generator · json to poco converter online · json.net class from json

Browse all 738 free tools on Toolgeist →