In the code editor on the left, write or paste your Kotlin code.
Select the Kotlin version; this compiler tool provides version 2.0.21.
Click the "Run" button to compile and execute your code.
The output will be displayed in the result editor on the right.
Switch the output type as needed; the output can be in HTML or raw format.
What is the Kotlin Online Compiler?
The Kotlin Online Compiler allows your Kotlin code to run online without requiring a web server. It enables you to quickly test your Kotlin code online and detect any issues. You can write or paste Kotlin code like this:
fun main(args : Array) {
println("Hello, World!")
}
// Need to explicitly call the main function
main(emptyArray())
Features of the Kotlin Online Compiler
Simple and convenient Kotlin online compiler or tester