JSON To C# Online

JSON to C#  Converter Online

JSON to C# Class Converter is easy to use tool to convert JSON to C# Class. Copy, Paste and Convert.

It offer tools for:

  1. Generate C# class from JSON string online
  2. Generate C# model from JSON string online
  3. Generate C# object from JSON string online

How to use JSON To C# Online?

  1. In the above textarea field write or paste your json string.
  2. Click 'JSON to C#' button to generate your C# class code.
  3. Click 'Copy' button to paste it into your clipboard, you can also download the result file.

JSON to C# class example

Input json string code:

{
  "id":1,
  "name":"John",
  "age":24
}
Output C# class result:
public class Root
{
    /// <summary>
    /// 
    /// </summary>
    public int id { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string name { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public int age { get; set; }

}