JSON to Java Class Generator (POJO)
Generate Java classes (POJOs) from JSON with getters and setters, or compact Lombok classes. Nested objects become their own classes.
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
Which libraries does the generated code need?
With Types only on, the classes are plain Java with getters and setters. Turn it off to add Jackson annotations and a converter class for reading and writing JSON.
Can I use Lombok?
Yes. Turn on Use Lombok to replace the getters and setters with Lombok annotations.
How are numbers typed?
Whole numbers become long and numbers with decimals become double, so large IDs fit. Each nested object gets its own class.