PixNudge

JSON to C# Class Generator

Generate C# classes with a property for every field from JSON. Choose System.Text.Json or Newtonsoft.Json and set your namespace.

Input
C#

How it works

  1. 1

    Paste or open your data

    Paste text, drop a file onto the editor or click Open file. Load sample shows how the tool works.

  2. 2

    Adjust the options

    The result updates as you type. Change the options to get exactly the output you need.

  3. 3

    Copy or download

    Copy the result to the clipboard or download it as a file.

Why PixNudge

Nothing is uploaded

Your data is processed in your browser and never sent to a server, so API keys, tokens and customer data stay private.

Instant, even for large files

There is no round trip to a server: results appear as you type, and files of several megabytes are handled smoothly.

Exact numbers

Long numbers such as 64-bit IDs are kept exactly as written instead of being rounded.

Frequently asked questions

System.Text.Json or Newtonsoft.Json?

With Types only off, the code includes attributes and helpers for the library you choose. System.Text.Json is built into modern .NET; Newtonsoft.Json is common in older projects.

Are the original JSON names kept?

Properties get PascalCase C# names. With Types only off, each property also gets a JSON attribute with the original key, so serialization uses the exact names from your data.

How are arrays typed?

Arrays become C# arrays such as string[] or Item[], and each nested object gets its own class.

More free tools