What does this tool do?
Convert a JSON Schema into a Java POJO class, complete with private fields, getters, setters, and nested static classes. Everything runs locally using JavaScript in your browser — nothing you paste or upload is ever sent to a server.
How to use this tool
- Paste your json schema into the left-hand box.
- Fill in the class name field above the input.
- Click Generate Java.
- Copy the java class from the output box.
Frequently asked questions
What types are used for numbers and booleans?
This tool uses boxed wrapper types (Integer, Double, Boolean) for every field, even required ones, so the generated class stays consistent whether a field is present or null.
How are nested objects handled?
Each nested object property becomes its own public static nested class, named after the property, with its own fields and getters/setters.
Does it support Lombok or Jackson annotations?
No, the output is plain Java with manually generated getters and setters and no annotations, so it works in any Java project regardless of which libraries you use.
