JSON → C# DTO

Generate C# DTOs from JSON with JsonPropertyName.

JSON Input0 chars
Output
Lines: -Size: -
Converting via Web Worker…
🛡️️Zero server logs. Conversion runs 100% inside your browser.

JSON → C# DTO

Generate C# POCO classes from JSON with JsonPropertyName attributes for System.Text.Json compatibility. Handles nested classes and proper type mapping. 100% client-side.

🔒 Client-side only⚡ Web Worker processing🌐 Works offline🛡️ Zero server logs

How to Use

  1. Paste your JSON data into the input editor.
  2. Optionally set the root class name and click Convert.
  3. Copy the generated C# classes with JsonPropertyName attributes for case-sensitive deserialization.

Frequently Asked Questions

Questions about this tool? We have got answers.

Why include JsonPropertyName attributes?

C# uses PascalCase while JSON uses camelCase. JsonPropertyName ensures System.Text.Json (.NET 5+) can deserialize without case-insensitive config.

How are types mapped?

Integers map to int, decimals to double, strings to string, booleans to bool, arrays to List. Nested objects become separate classes.

Is my data sent to a server?

No. All conversion runs 100% client-side in your browser.


Tool Changelog & Updates

1.0.02026-06-09
  • Feature: Initial release