omni compilerGet the app

Kotlin · Android 7.0+ · free

A Kotlin compiler app for Android

Try Kotlin on your phone without a laptop: write a function, run it with input, or add test cases and let the judge grade each one. omni compiler highlights Kotlin, shows compile errors on the line, and keeps your files in a folder on your device.

Kotlin on a phone, done properly

  • Kotlin as a console language

    Compile and run .kt files with main functions, read input with readLine, and print results; the same flow as on an online judge.

  • Verdicts with timing

    Up to 100 tests per run, each graded AC, WA, TLE, MLE, RE, CE with its run time, so a correct-but-slow solution shows up.

  • Compile errors you can tap

    Kotlin's compiler messages are listed with line numbers; tap one to jump to it.

  • Projects and GitHub

    Several files in folders, project-wide search, and repositories imported from GitHub or GitLab with commit, push and pull.

Try it with a test case

Paste this into main.kt, add a test case with the input below, and run. Prints 15.

fun main() {
    val n = readLine()!!.trim().toInt()
    val nums = readLine()!!.trim().split(" ").map { it.toLong() }
    println(nums.take(n).sum())
}
Test input
3 4 5 6

Questions

Can I build Android apps in Kotlin with this?

No. omni compiler runs console Kotlin programs and judges them; it does not build APKs or run Android UI code. It is the right tool for learning the language, algorithms and interview practice.

Is Kotlin compilation slower than other languages?

Kotlin compiles to JVM bytecode first, so a run takes a little longer than Python or C. The judge reports the run time per test separately from compilation.

Is the Kotlin compiler free?

Yes. omni compiler is free to download and use, with ads, and you can start as a guest without an account.

Can I run Kotlin offline on my phone?

You can write and edit offline: projects are stored on your phone. Running needs a connection because the code executes in an isolated sandbox on our servers; runs you start offline are queued and sent when you reconnect.

Which Android versions does the Kotlin compiler support?

Android 7.0 and newer, on phones and tablets. Tablets get a split view to edit two files side by side.

Other languages

65 languages in all; see every language page.

Start coding on your phone.

Download omni compiler and run your first program in seconds.