Paste valid JSON into the input area on the left.
Set the root class name (defaults to 'Root') using the option field.
Toggle null-safety and JSON serialization options to match your Dart project requirements.
Click Convert or press ⌘↵ (Mac) / Ctrl+Enter (Windows) to generate Dart model classes.
Copy the generated Dart code with the copy button or download it as a .dart file.
Generates null-safe Dart classes from any JSON object or array.
Supports nested objects — creates separate named classes for each nested structure.
Optional json_serializable annotations (@JsonSerializable, fromJson, toJson) for use with build_runner.
Smart type inference: string, int, double, bool, List, and nullable variants.
Root class name is configurable; nested class names are derived from JSON keys.
Handles JSON arrays of objects by inferring the element type.
Works entirely in your browser — JSON never leaves your device.
Keyboard shortcut ⌘↵ for instant conversion.