Convert and generate any C# classes using any files JSON/XML/YAML/CSV and vice versa.

Convert and generate any JSON/XML/YAML/CSV to C# classes and vice versa

Note: for Python. Typescript, Java please click on the below links

Please use below sample JSON and vice versa class as required

{
  "orderId": 1042,
  "customer": { "name": "Ann Lee", "email": "ann@example.com" },
  "placedAt": "2026-10-08T09:30:00Z",
  "paid": true,
  "items": [
    { "sku": "KB-101", "qty": 1, "price": 49.99 },
    { "sku": "MS-220", "qty": 2, "price": 19.5 }
  ]
}

OR

public class Rootobject
{
    public int orderId { get; set; }
    public Customer customer { get; set; }
    public DateTime placedAt { get; set; }
    public bool paid { get; set; }
    public Item[] items { get; set; }
}

public class Customer
{
    public string name { get; set; }
    public string email { get; set; }
}

public class Item
{
    public string sku { get; set; }
    public int qty { get; set; }
    public double price { get; set; }
}

Note: We respect your data and privacy.

References:



Please bookmark this page and share it with your friends. Please Subscribe to the blog to receive notifications on freshly published (2026) best practices and guidelines for software design and development.