JSON to Java Classes

Paste JSON and get Java records or classes. More data tools

Generate Java classes from JSON

Choose a modern record (Java 16 and newer) or a classic class with private fields, getters and setters. Lists use List<T>, optional or null numbers use boxed types such as Integer, and reserved words are renamed.

Features

  • Live: the result updates while you type.
  • Clear errors: the line, the reason and, where possible, a one-click fix.
  • Open and drop files, copy or download the result, and share your input as a link.
  • Send to another tool: pass the result straight to a related tool.
  • Private: Everything runs in your browser. Your data is not uploaded to any server.

Related data tools

Frequently asked questions

Do I need Lombok or Jackson?

No. The code is plain Java. You may add Jackson annotations if your keys differ from your field names.

Is my data private?

Everything runs in your browser. Your data is not uploaded to any server. You can even use the tool offline once the page has loaded.