Mert Özen Further With Every Line

JSON to C# Class

Generate C# classes or records from sample JSON, with System.Text.Json attributes and nullable types. Runs entirely in your browser.

C#

    
Paste some JSON; the C# model is generated as you type.

How are the types inferred?

From the values: integers become int/long, decimals double, ISO dates DateTime, GUIDs Guid. Fields that are null become nullable; objects inside arrays are merged into a single class.

When is `JsonPropertyName` added?

When the option is on, it is added to every property, so keys like created_at can be named CreatedAt in C#.

Is my data safe?

Yes. Code generation happens in your browser; the JSON is never sent to a server.