Convert any JSON object to a C# class with this free online converter.

Step 1: Enter a name for the root class

If there are nested classes, this is the name for the "master" or root class. Otherwise it's the name of the single generated class. Default is "root". Feel free to change as you like. For example if the class stores user information name it "User".

Step 2: Copy the JSON body inside the first code editor.

Make sure that the JSON string is well formatted. The JSON object should be wrapped with curly braces and should not be escaped by backslashes.

Step 3 : Click Generate in order to start generating C# classes.

Click the Generate button and wait a few seconds until your C# classes appear in the second editor.

Step 4 : Consume

Simply use the Copy button to copy the generated C# classes into the ClipBoard. Then go to the Code Editor of your choice and paste it there.