Runs in your browser — Python really executes here
Online Python Editor
Python is the language people most often want an online editor for, and this page actually runs it: press Run and your code executes with CPython 3.13 compiled to WebAssembly, with print() output and real tracebacks in the console. Monaco gives you the VS Code editing model around it — highlighting, multi-cursor, find-and-replace — with nothing to install.
Can you run Python here? Yes.
Python really runs here. Pressing Run executes your code with CPython 3.13 compiled to WebAssembly (Pyodide), so the language semantics are the real ones — classes, generators, comprehensions, f-strings and the standard library all behave as they do locally, and print() output plus full tracebacks come back to the console panel. The first run downloads about 6 MB of runtime; after that it is instant. What it is not is a machine: there is no filesystem, no network sockets and no subprocess, and pip installs only pure-Python wheels through micropip.
Python in the editor
A file named main.py is highlighted with the python grammar — the same grammar Visual Studio Code uses.
from collections import Counter
def top_words(text: str, n: int = 3) -> list[tuple[str, int]]:
words = [w.strip(".,!?").lower() for w in text.split()]
return Counter(w for w in words if w).most_common(n)
print(top_words("the quick brown fox jumps over the lazy dog the fox"))
What you can do with Python here
- Write or fix a script on a machine where you cannot install Python — a locked-down laptop, a library computer, a phone.
- Read code properly: paste a script someone sent you and see it with real highlighting instead of a wall of plain text.
- Keep and export your work — files persist in your browser's local storage and download as .py, ready for your own interpreter.
Python in this editor — the specifics
| File extension | .py |
|---|---|
| Syntax grammar | Monaco "python" — bundled, no download |
| Code intelligence | Syntax highlighting, bracket matching, comment toggling and word-based suggestions — no type checking |
| Runs in this page | Yes — CPython 3.13 via Pyodide (WebAssembly); ~6 MB on first run |
| Run it locally with | python main.py |
| Cost / account | Free, no sign-up; files stay in your browser |
Python editor — common questions
- Can I run Python in this online editor?
- Yes. Pressing Run executes your code with CPython 3.13 compiled to WebAssembly (Pyodide), so this really is Python — print() output and full tracebacks come back to the console panel. The first run downloads about 6 MB of runtime; after that it is instant.
- Does the whole standard library work?
- Most of it, yes — collections, math, json, itertools, re, datetime and the rest of the pure-Python standard library behave exactly as they do locally. What is missing is anything that needs the machine: there is no real filesystem, no network sockets and no subprocess, and pip only installs pure-Python wheels through micropip.
- Is it free, and does my code stay private?
- It is free with no sign-up, and your code is never uploaded. Files are saved only in your own browser's local storage, so clearing browser data clears them too.
- What is it actually good for, then?
- Writing, reading, formatting and sharing Python when installing an editor is not an option, and as a scratchpad you can reach in one tab. For running and debugging, use your local Python, a notebook, or a hosted execution service.
Start writing Python
The editor opens with a blank file and a cursor. Nothing to install, nothing to sign up for, and your work is saved in your own browser.
Open AltF Code