JSON to C#

About this tool

Paste any JSON and get ready-to-use C# classes. Types are inferred recursively: nested objects become their own named classes (from the field name), arrays turn into List<T> with an element type inferred from their items, and null values become nullable value types. Property names are converted to PascalCase; numbers become int, long or double based on their value; true/false become bool; strings become string. The root class name is configurable and defaults to Root.

Each class exposes public auto-properties with { get; set; }. The whole tool is plain JavaScript running locally in your browser — no build step, no server, no upload — so it is safe for private or proprietary payloads.

Related tools

JSON FormatterJSON to TypeScriptJSON to Java