C# to JSON Converter

Convert your C# objects to JSON format. Perfect for API development and data serialization.

How to Use

  1. Enter your C# class or object in the left editor
  2. Click "Convert" to generate the JSON output
  3. Use "Copy JSON" to copy the result to your clipboard
  4. The JSON will be properly formatted and indented

Example

public class Person
{
    public string Name { get; set; }
    public int Age { get; set; }
    public List Hobbies { get; set; }
    public Address Address { get; set; }
}

public class Address
{
    public string Street { get; set; }
    public string City { get; set; }
    public string Country { get; set; }
}

Tips