Compilatori online
Scrivi ed esegui codice in C, C++, Python, JavaScript, TypeScript, R, PHP, Ruby, Lua, SQL, Prolog, Scheme, Clojure e CoffeeScript, gratis, all'istante e in privato. Ogni compilatore funziona nel tuo browser tramite WebAssembly, quindi il tuo codice non lascia mai il 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.
Guide
- Come funzionano i compilatori online: codice nel browser: Compilatori online nel browser: come WebAssembly fa girare C, C++, Python, R e SQL in una scheda, il confronto con quelli su server e i limiti.
- Cos'è JSON? Sintassi, errori comuni e come validarlo: JSON spiegato con esempi: oggetti, array, tipi di dati, gli errori di sintassi più comuni e come correggerli, JSON vs YAML vs XML e come validare JSON.
Domande frequenti
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.