Compiladores online
Escreva e execute código em C, C++, Python, JavaScript, TypeScript, R, PHP, Ruby, Lua, SQL, Prolog, Scheme, Clojure e CoffeeScript, de graça, na hora e com privacidade. Todos os compiladores rodam no seu navegador usando WebAssembly, então seu código nunca sai do seu dispositivo.
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.
Guides
- How Online Compilers Work: Running Code in Your Browser: How WebAssembly lets C, C++, Python, R and SQL run inside a browser tab, how it compares with server-based online compilers, and its limits.
- What Is JSON? Syntax, Common Errors and How to Validate It: JSON explained with examples: objects, arrays, data types, the most common syntax errors and how to fix them, JSON vs YAML vs XML, and how to validate JSON.
Frequently asked questions
How do the online compilers run code?
They use WebAssembly builds of the real compilers and interpreters, so your code runs inside your browser rather than on a server.
Can programs read input?
Yes. Type standard input in the input box before you run the program.
Can I code together with someone?
Yes. Use Code together to open the same code in the collaborative editor and share the link.