format · validate · convert · runs locally

JSON to Java

Paste JSON and get Java POJO classes with public fields, inferred types (long, double, boolean, String, List), and nested classes — ready for Jackson or Gson. Copy or download the .java. Runs in your browser.

Frequently asked questions

What does it generate?

Plain Java classes (POJOs) with public fields inferred from your JSON, usable directly with Jackson or Gson.

What types are used?

Whole numbers become long, decimals double, strings String, booleans boolean, arrays List<T>, and null becomes Object.

How are nested objects handled?

Each nested JSON object becomes its own named public class.