Skip to main content
CodeLab logoCodeLab

[ LANGUAGE — KOTLIN 2.0 ]

Run Kotlin online. No install.

Run Kotlin online to practice Android-style code without setup.

Sample — copy into the compiler

fun main() {
    print("Your name: ")
    val name = readLine() ?: "coder"
    println("Hello, $name!")
}

1. Open the Kotlin runtime

Go to the compiler and select Kotlin. Your code persists per language.

2. Paste and add input

Copy the sample or type your own. Fill stdin if the program reads input.

3. Run and share

Press Run in the editor, then copy the page URL to share your exact state.

Run Kotlin now

Kotlin FAQ

Do I need to install Kotlin to use this?

No. The Kotlin 2.0 runtime runs in your browser via CodeLab's embedded editor. Open the compiler, pick Kotlin, and press Run.

Is running Kotlin online free?

Yes. The CodeLab Playground is free with no account. Optional paid plans add privacy and larger limits — see the pricing page.

How do I handle input in Kotlin?

Use the stdin panel inside the editor for piped input, then press Run. The sample below reads a name from stdin.

Keep exploring