JSON to Kotlin Data Class
Convert a JSON object to idiomatic Kotlin data class definitions with proper types, nullable fields, and nested classes.
JSON Input
Kotlin Output
Kotlin data classes appear here…About JSON to Kotlin Data Class
Kotlin data classes provide a concise syntax for model classes with auto-generated equals(), hashCode(), and toString(). This generator maps JSON types to Kotlin types: strings → String, integers → Int, decimals → Double, booleans → Boolean, nulls → Any?, arrays → List<T>, and nested objects → nested data classes. Field names are converted from snake_case to camelCase.
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Converters tools
JSON to YAML
Convert JSON into clean, readable YAML instantly.
YAML to JSON
Convert YAML configuration into valid JSON.
JSON to CSV
Flatten a JSON array of objects into CSV rows.
CSV to JSON
Parse CSV with headers into a JSON array of objects.
JSON to XML
Convert JSON structures into nested XML markup.
JSON to SQL
Turn a JSON array of objects into SQL INSERT statements.
CSV to XML
Convert CSV rows into structured XML records.
XML to CSV
Flatten repeated XML records into CSV rows.