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

v1.1.02026-06-12
  • Fix: Added [JsonPropertyName] attributes for System.Text.Json compatibility — ensures case-sensitive deserialization without global configuration.
  • Feature: Accurate number type mapping — integer values map to the language's native integer type, decimal values map to float/double.
  • UX: Updated module descriptions, How-to guides, and FAQ sections with multi-language support.
  • Fix: Fixed "Conversion complete" toast showing even when JSON parsing failed — now only shows success on actual completion, shows error message on failure.
1.0.02026-06-09
  • Feature: Initial release