JSON to Java Class
Generate Java classes with nested static classes and List fields from JSON.
This tool runs entirely in your browser. Your input is never uploaded.
JSON
Java class
Paste some JSON first.
What is this tool?
Generate Java classes from JSON. Objects become nested public class definitions, arrays become List<T>, numbers become long or double, and booleans become boolean. Non-identifier keys and Java keywords are renamed safely.
How to use it
- Paste JSON.
- Optionally change the root class name (default
Root). - Copy the generated classes or download them as
Root.java.
Privacy
Conversion runs entirely in your browser.