Online compiler

Run code free, no sign-up: Python, Java, C++, C, JavaScript, TypeScript, C#, Go, Kotlin, Swift, Rust, PHP, Ruby and SQL, with your own input and errors.

How do I run code online without installing anything?

CodeKairo's online compiler runs code in 13 languages — Python, Java, C++, C, JavaScript, TypeScript, C#, Go, Kotlin, Swift, Rust, PHP and Ruby — and SQL queries, free and with no sign-up. Pick a language, write a whole program, put what it reads in the Input box and press Run: it is compiled and run on the server, and you get its output, any compiler or runtime error, and how long it took.

How it works

  1. Pick a language. Each of the 13 languages has its own page, opening with a short program that reads a line of input and prints a greeting — and SQL has one with a sample table and a query.
  2. Write the whole program. Not a function body: the file as you would save it, with its imports and its entry point. It is kept in this browser as you type.
  3. Fill in the input. Everything the program reads from standard input goes in the Input box before the run; it cannot be typed while the program runs.
  4. Run it. Press Run or Ctrl+Enter. The output, any compiler or runtime error and the run time come back in a few seconds.

Who it is for

Students checking a lab program or an exam answer, anyone on a college or office machine where nothing can be installed, and anyone trying a language before setting it up. Practice problems with hidden tests are a separate page; this is for running your own program.

Frequently asked questions

Is this online compiler free, and do I need an account?
It is free and needs no account. Without one, a network gets up to 60 runs an hour, and the first run asks a quick check that you are a person. A free account removes the check and gives you an allowance of your own, which matters in a college lab where everyone shares one connection.
Can my program ask for input while it runs?
No. The program runs once on the server, start to finish, so everything it reads from standard input must be in the Input box before you press Run — one line there is one line the program can read. A program that waits for input the box does not have either fails at the end of input or runs until it is stopped.
Is my code saved or shared?
Your code is kept in this browser as you type, per language, so it is still there when you come back. When you press Run it is sent to be compiled and run — SQL on CodeKairo's own server, the other languages on a code-execution service — and only the output comes back. CodeKairo does not store it or show it to anyone.
What are the limits?
A program can be up to 64 KB and its input up to 16 KB. A run that takes too long is stopped and reported as Time limit exceeded — usually an endless loop, or a program waiting for input that is not in the box. There is no file system to keep files in and no way to install packages: each language has its standard library.