Home
Watchdroid
Mail Blackhole
JSON Formatter
JSON Viewer
JSON Compare
JSON Repair
JSON Escape & Unescape
JSONPath Tester
JSON Converter
JSON to JSON Schema
JSON to Code
JSON to TypeScript
JSON to Zod Schema
JSON Schema to Code
JSON Flatten & Unflatten
OpenAPI & Swagger Validator
blackdroid.dev

JSON to Kotlin

Convert JSON to Kotlin data classes online for free — nested objects become data classes with default values. No upload.

Kotlin output
// Generated by blackdroid.dev

data class Root(
    val id: Long,
    val name: String,
    val email: String,
    val active: Boolean,
    val balance: Double,
    val address: Address,
    val roles: List<String>
)

data class Address(
    val street: String,
    val city: String,
    val zip: String
)

About JSON to Kotlin

Paste JSON and get Kotlin data classes — nested objects become their own data classes, arrays become List<T> and fields missing across array items become nullable with defaults.

Ready for kotlinx.serialization or Gson-style models in Android and Ktor apps. Generation runs entirely in your browser — your JSON is never uploaded.