Developer Tools
Python Online Compiler & Playground
Write and run Python 3 in your browser — no install, no account. Real CPython (Pyodide) with input(), NumPy, pandas and Matplotlib charts, and shareable links.
How to use
- 1Write Python code or load an example.
- 2Press Run (Ctrl+Enter). The first run downloads Python (~10 MB, then cached).
- 3Put lines for input() in the stdin box; charts from Matplotlib appear under the output.
Frequently asked questions
Is this real Python?
Yes — CPython 3 compiled to WebAssembly (Pyodide), running entirely in your browser.
Which packages can I import?
The full standard library plus popular scientific packages such as NumPy, pandas, Matplotlib, SciPy and scikit-learn, which load automatically on import.
Can I read from input()?
Yes. Each line in the stdin box answers one input() call.
What doesn't work?
Network sockets, threads/multiprocessing and packages with native code that hasn't been built for Pyodide.
This is CPython compiled to WebAssembly, not a Python-like interpreter
Pyodide is the actual CPython runtime, compiled with Emscripten to run in a browser, so the standard library, exception types, tracebacks and float/int semantics all match a local Python install exactly — not an approximation written in JavaScript. The cost shows up on first run: the runtime itself is roughly 10 MB, downloaded once from jsDelivr's CDN and then cached by the browser, so the first execution pauses on 'Loading Python…' while every run after that starts instantly. It runs inside a module Web Worker, which is also what makes Stop reliable — the worker is simply terminated and a fresh one boots on the next run.
Packages load on import, automatically
Importing numpy, pandas, matplotlib, scipy or scikit-learn triggers Pyodide's loadPackagesFromImports, which fetches and installs that package (and its compiled dependencies) before your code executes — no pip install step, no requirements.txt. Matplotlib is set to the non-interactive AGG backend at boot, and after your script finishes, every open figure is saved to a PNG, base64-encoded, and rendered under the console output — so plt.show() effectively means 'export this chart as an image' rather than opening a window. What doesn't work: network sockets, threads and multiprocessing, and any package shipping native code that hasn't been specifically built for the Pyodide/WASM target.
stdin is a text box, not a live prompt
Since input() can't pause and wait for a human to type into a worker thread, the stdin field holds one answer per line in advance — the first call to input() consumes the first line, the second call the second line, and so on. This makes it good for testing a script's logic against fixed inputs, but not for building anything interactive in real time.
Worked example: the Hello world sample
The default snippet prints a greeting, builds a list of squares from 1 to 10, sums it, and runs Counter on the string 'mississippi'. Running it prints exactly: Hello, world! — then squares: [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] — sum: 385 — and [('i', 4), ('s', 4), ('p', 2)] from Counter("mississippi").most_common(3), since i and s each appear 4 times and p appears twice, with ties broken by first appearance in the string.
A run that lasts past 15 seconds is stopped
The input box starts with Ada on the first line and 36 on the second, and the hint says one line per input call. If the runtime cannot load, the message says it could not load Python and mentions the connection. Once a run has started, anything still going after 15 seconds is stopped, with a note that it may be an infinite loop and that Python restarts on the next run. A finish line shows whole milliseconds under one second, and tenths of a second after that. A share link longer than 16,000 characters says the snippet is too long.
Related tools
- JavaScript & TypeScript Playground
Run JavaScript or TypeScript in your browser with a real console — console.log, console.table, async/await, fetch and timers. Stop runaway loops, and share snippets as a link.
- Online HTML, CSS & JS Editor (Live Preview)
Write HTML, CSS and JavaScript and see the result instantly — live preview, console, templates, shareable links and one-click HTML download. Like CodePen, with nothing to sign up for.
- SQL Playground (SQLite Online)
Practice and run SQL in your browser on a real SQLite database — sample shop data included, joins, CTEs and window functions, import CSV/Excel as tables, open .db files and export results.
- .gitignore Generator
Build a .gitignore file for your stack — Node, Python, Java, Go, Rust, .NET, Flutter plus OS and editor files — in a few clicks.
- Kubernetes YAML Validator & Linter
Validate Kubernetes manifests in your browser — YAML syntax, required fields, current apiVersions, selector/label mismatches, image tags, resource limits, probes and security settings.
- cURL to Code Converter
Convert cURL commands into JavaScript fetch, Python requests or Go net/http code — headers, JSON bodies, auth and methods included.