JSON to C# Class

Free online JSON to C# class generator.

C# JSON to C# Class Interactive Tool
JSON
Classes

The JSON to C# converter generates C# classes from JSON data. Every object becomes a class, properties are PascalCased, and numeric values map to long or double based on their type. Nested objects and arrays of objects produce their own classes.

The output includes the System and System.Collections.Generic usings, ready to paste into your project. It is a quick way to build DTOs from API samples or config files. All conversion runs locally in your browser - nothing is uploaded.