JSON to Java Record: quick start guide
Everything you need for a first successful run: what to paste in, which option actually matters, and how to read the result.
How to use
- Open the tool and paste your input into the left pane.
- Set only the options your task actually needs — the defaults are correct for most inputs.
- Read the result in the right pane; it updates as you type.
- Use Copy to take the result, or Download to save it as a file.
Examples
Field names are snake_cased and primitive types are boxed for use in a record component list.
Input
{"id":42,"title":"Hello","tags":["a","b"],"active":true}
Output — Results
public record Root(
long id,
String title,
List<String> tags,
boolean active
) {}
Run
Description
Generate a Java record with boxed types and snake_case field names from a JSON sample.
JSON to Java Record → · How to use → · Data Conversion Tools →
Related tools
CSV to JSON ConverterTurn CSV (or any delimited file) into a JSON array.YAML to JSON ConverterParse YAML configuration into JSON.HTML to Markdown ConverterConvert HTML fragments into Markdown.JSON to TOML ConverterConvert JSON config into TOML format.Markdown to HTML ConverterRender Markdown to clean HTML.Delimiter ConverterSwitch CSV between comma, tab, semicolon and pipe.