JSON to Java

About this tool

Paste any JSON and get ready-to-use Java entity classes. Types are inferred recursively: nested objects become their own named classes (from the field name), arrays turn into List<T> with an element type inferred from their items, and null values fall back to a boxed reference type. Numbers become int, long or double based on their value; true/false become boolean; strings become String. The root class name is configurable and defaults to Root.

By default each class holds private fields only; tick the box to also emit getters and setters. The whole tool is plain JavaScript running locally in your browser — no build step, no server, no upload — so it is safe for private or proprietary payloads.

Related tools

JSON FormatterJSON to TypeScriptJSON to C#