Java to JSON Schema

Paste a Java class or record and produce JSON Schema draft 2020-12.

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

Handles common Java primitives, arrays, List, Set, Optional and records. Unknown custom types are expressed as references.

Important limitations

Not a compiler: ignores sophisticated generics, inheritance, annotations and complete Java syntax.

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 java class to json schema free?

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