Online Compilers
Write and run C, C++, Python, Go, JavaScript, TypeScript, PHP, Ruby, R and SQL online. Code runs in a sandbox in your browser and never leaves your device.
Online Compilers tools
JavaScript Compiler
Run JavaScript online in an isolated browser sandbox. See console output, errors and execution time instantly, with top-level await and stdin input.
TypeScript Compiler
Compile and run TypeScript online. Your code is type-checked with the official compiler in strict mode, then runs in a sandboxed worker in your browser.
Python Compiler
Run Python 3 code online with the full standard library and stdin input. It runs in your browser with Pyodide (WebAssembly), so your code stays on your device.
PHP Compiler
Run PHP 8.4 code online and see the output instantly, with stdin input and mbstring. PHP runs in your browser with WebAssembly, so your code stays private.
C Compiler
Compile and run C code online with Clang 21, a GCC-compatible compiler: pick C89 (ANSI C), C99, C11, C17 or C23 and add stdin input. Your code stays private.
C++ Compiler
Run C++ code online for free: compile C++20 with Clang 21 and libc++, type stdin input and see the output. It runs in your browser, so your code stays private.
C# Compiler
Run C# code online with Roslyn and .NET 10: C# 14, top-level statements, LINQ, records and Console.ReadLine input, in your browser, so code stays private.
Go Compiler
Compile and run Go code online with the official Go 1.27 compiler, goroutines and stdin. It compiles to WebAssembly in your browser, so your code stays private.
Ruby Compiler
Run Ruby 4.0 code online with the standard library and stdin input. CRuby runs in your browser as WebAssembly, so your code never leaves your device.
R Compiler
Run R code online with R 4.6, data frames, the stats package and datasets like mtcars. webR runs it in your browser, so your code and data stay private.
SQL Playground
Run SQL online with SQLite in your browser: a sample shop database, result tables, a schema view, and import or export of .sqlite files. Nothing is uploaded.
Guides and tutorials
- JSON & Data Formats
How to Generate TypeScript Types from JSON API Responses
Turn a JSON sample into TypeScript interfaces, then fix what a generator can't know: nullable fields, optional keys, unions, dates and runtime validation.
· 6 min read
- Programming Languages
TypeScript Strict Mode Explained: Every Flag and the Bugs It Catches
What "strict": true turns on, the real compiler error for each flag, extra checks worth enabling, and a step-by-step plan for migrating an existing codebase.
· 5 min read
- Programming Languages
-O0 vs -O2 vs -O3: GCC and Clang Optimization Levels Benchmarked
-O2 vs -O3 measured with GCC and Clang on five C programs: when -O3 wins, when it is slower, what -Ofast breaks, plus code size and compile time per -O level.
· 10 min read
- Programming Languages
GCC Command Line Options Explained: -o, -c, -Wall, -std, -O2, -g and -lm
The GCC options you use every day, with real output from GCC 11: naming the output, compiling in steps, warnings, -std, -O levels, -g, -I, -D and -lm.
· 9 min read
- Programming Languages
malloc vs calloc in C: Which Is Faster? We Measured
The difference between malloc and calloc in C, measured: zeroing, speed on fresh and reused memory, overflow checks, and which one to use in your own code.
· 9 min read
- Programming Languages
How to Run Python Code Online (No Install, With Input)
Run Python code online in your browser: a first program, input() and stdin, reading many lines, which modules work, and how to read a Python traceback.
· 5 min read
About online compilers
An online code compiler lets you run a snippet without installing anything: test an algorithm, check how a language feature behaves, or practise for an interview. Pick a language, paste your code, add input lines for programs that read stdin, and click Run.
JavaScript and TypeScript run in an isolated Web Worker in your browser; the TypeScript compiler type-checks your code in strict mode before running it. Python runs in the browser too, with Pyodide (CPython compiled to WebAssembly) and the full standard library, and so does PHP 8.4. C and C++ are compiled with Clang 21 to WebAssembly and run the same way, Go is built with the official Go compiler running in your browser, Ruby 4.0 and R 4.6 run as WebAssembly interpreters, and the SQL playground runs SQLite. Your code never leaves your device.