Online compilers

Write and run code in C, C++, Python, JavaScript, TypeScript, R, PHP, Ruby, Lua, SQL, Prolog, Scheme, Clojure and CoffeeScript, free, instantly and privately. Every compiler runs in your browser using WebAssembly, so your code never leaves your device.

How our online compilers work

Traditional online compilers send your code to a remote server, run it there and send the output back. Ours take a different approach: the language runtime itself (CPython, R, SWI-Prolog, the Ruby interpreter, PHP, Lua or SQLite compiled to WebAssembly, a complete Clang/LLVM toolchain that compiles C and C++ to WebAssembly, or your browser's own JavaScript engine) is downloaded once and runs inside a sandboxed Web Worker in your browser. That means instant re-runs, no queue, no account, and complete privacy: the code you write is never uploaded or stored on our servers.

What you can do

  • Learn a language and experiment with examples.
  • Test snippets, algorithms and regular expressions before using them in a project.
  • Practise SQL against a real SQLite database.
  • Teach and demo code without asking students to install anything.

Limitations

Because everything runs in a browser sandbox, programs cannot open network sockets, access your files or install system packages, and each run is limited by the time limit you choose. Compiled languages such as Java, C#, Go, Rust and C/C++ need a different kind of runtime and are coming later.

Looking for formatters instead? See all developer tools, including the JSON formatter and SQL formatter.

Copied to clipboard