main.kt
Loading editor…
ReadyLn 1, Col 1Kotlin

Kotlin

Kotlin online compiler

Online Kotlin compiler for console programmes on the JVM.

About this Kotlin compiler

Kotlin is the concise, null-safe language behind most Android apps. Write a main function, run it on the Java virtual machine, and type input when the programme asks for it.

Questions and answers

Which version of Kotlin is this?
Kotlin 2.4, compiled to a jar and run on Java 25.
Why does it take a few seconds?
The Kotlin compiler is itself a JVM programme, so each run starts it before your code. Expect a few seconds to compile; the programme then runs at full speed.
Can I use coroutines or other libraries?
Only the Kotlin and Java standard libraries. kotlinx.coroutines and other dependencies are not installed.