Online JSON to C# Converter

Online JSON to C# Converter Tool

Online JSON to C# Converter is an easy-to-use tool that converts JSON into C# classes. Copy, paste, and convert.

It provides the following features:

  1. Generate C# classes online from JSON strings
  2. Generate C# models online from JSON strings
  3. Generate C# objects online from JSON strings

How to use Online JSON to C# Converter?

  1. Enter or paste your JSON string in the text area above.
  2. Click the "JSON to C#" button to generate your C# class code.
  3. Click the "Copy" button to paste it into your clipboard, or 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
{
    /// 
    /// 
    /// 
    public int id { get; set; }

    /// 
    /// 
    /// 
    public string name { get; set; }

    /// 
    /// 
    /// 
    public int age { get; set; }

}