JSON to Java record

Paste an example JSON object and generate Java record declarations, including nested objects and arrays.

Workspace

Runs locally in your browser. No file upload.

Private, on-device processing

Select a file or paste data to begin.

Paste text or edit a loaded file
Copy or download when available

How it works

The converter walks a sample JSON value and maps strings, booleans, integers and decimal values to Java types. Nested objects become separate records, while arrays become java.util.List of the detected element type.

Important limitations

This is schema inference from example data, not full JSON Schema compilation. Mixed-type arrays use the first non-null example. Keys with invalid Java identifiers are normalized; review renaming and optional/null semantics.

Frequently asked questions

Are my files uploaded?

No. The file is processed in your browser. This version does not transmit user file content to any server.

Is json to java record converter free?

Yes. The browser processing tools are free and do not require an account or API key.