Generate Java classes (POJOs) from JSON instantly. Includes private fields, getters, setters, and List imports. Runs in your browser — your data never leaves your machine.
All conversion happens in your browser using JavaScript. Nothing is uploaded to any server. Safe for sensitive business data.
Generates clean Java POJOs with private fields and proper encapsulation. Ready to drop into any Java project.
Every field gets properly named getter and setter methods following standard Java naming conventions.
Paste your JSON into the left panel and Java class code appears instantly on the right. The converter maps JSON objects to Java classes with private fields and public getter/setter methods. Nested objects become separate classes, and arrays are typed as List<T>. You can customize the root class name and copy or download the generated code.
Use this tool when consuming REST APIs in Java and you need model classes for deserialization with Jackson or Gson, when scaffolding data transfer objects (DTOs) from API documentation, or when migrating JSON-based configurations to strongly-typed Java classes. The generated POJOs follow standard Java conventions and are ready to use with popular serialization libraries.
List<T> in the generated Java code, with the appropriate element type inferred from the array contents.java.util.List import statement.