JSON to Dart Model Generator for Flutter
Generate Dart model classes from JSON with fromJson and toJson methods, null safety and optional freezed support — ready for Flutter apps.
How it works
- 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
Adjust the options
The result updates as you type. Change the options to get exactly the output you need.
- 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
Does the code include fromJson and toJson?
Yes, when Types only is off. Each class gets a fromJson factory and a toJson method, plus top-level functions that parse and encode the whole document.
Is the code null safe?
Yes. Required fields are non-nullable, and keys that are missing or can be null become nullable types such as String?.
Can I use freezed?
Yes. Turn on Use freezed to generate classes for the freezed package, then run build_runner to create the generated parts.