ExtensionsDeveloper toolsPython Runner
Python RunnerRun Python code in your browser, offline
Python Runner is a Python interpreter and an editor inside Chrome: CPython itself, compiled to WebAssembly, running in a tab on your device. There is nothing to install and no account to create.
Add to Chrome — free (Python Runner)Try it online: run Python in your browser, no install
It covers the everyday case: a few lines from Stack Overflow, a GitHub issue or an AI answer that you want to check, on a computer with no Python, or on a locked-down work laptop where you cannot install one.
What it does
Python Runner keeps a CPython interpreter inside the extension, so you can paste a script, press Run and read the output without installing Python.
- Editor with syntax highlighting, line numbers and auto-indent, in a light or dark theme
- Run with a button or Ctrl+Enter, and a Stop button that halts even an infinite loop
- Live output with real CPython tracebacks and line numbers that match the editor
- A stdin field: input() reads its lines one by one, typed in before you press Run
- Snippets saved on your device and reopened in one click
- Run selected Python from the right-click menu on any page
How it works
- Click the toolbar icon and choose Open Python Runner. There is no sign-up and no daily limit on runs.
- Type or paste a script into the editor.
- Press Run or Ctrl+Enter. Output streams into the output panel as the script prints it.
- The extension ships CPython 3 compiled to WebAssembly (Pyodide), so you get the standard interpreter and its standard library: json, re, datetime, itertools, collections, csv, math and the rest. Every run starts from a fresh namespace, so variables from the previous run do not leak into the next one.
- If the script calls input(), type the values into the stdin field first.
- Save the script as a snippet if you will need it again; it stays on this device.


Python Runner or an online Python interpreter?
An online interpreter is a web page: you need a connection the whole time you are using it, and on many sites the code runs on their server, not your computer. Python Runner keeps the interpreter inside the extension, so your code runs on your device and works offline, with no account. Online tools do some things better: some can install pip packages beyond the bundled numpy and pandas, and sharing a script is often just a link. If that is what you need, those tools are the right choice. When you want to run a script on the computer in front of you, without installing anything, that is what the extension is for.
Running code straight from a web page
Select a block of Python on any page, right-click and choose Run selected Python. The runner opens in a new tab and executes the selection with its indentation kept. It is a quick way to test an answer before you copy it into a project.
Who it is for
- Students working through a course can follow along on whatever computer they have.
- Developers can check a regex, a date calculation or a list comprehension without opening an IDE.
- Teachers can show output live in class, and because the runner works offline, the school network does not get in the way.
What it can't do
- NumPy and pandas are included. Additional packages cannot be installed: there is no package installer or network access.
- Python code has no network access, and files do not survive a restart.
- No graphics output, so matplotlib windows and turtle are out of scope.
- Runs a whole script at a time rather than one line at a time like an interactive console.
- The first launch takes a few seconds while the interpreter warms up.
Permissions and your data
Does not read or change any web page on its own.
storage- Keeps your current draft and saved snippets in Chrome's extension storage on this device, along with your settings.
contextMenus- Adds the Run selected Python item to the right-click menu when you select code on a page.
activeTab- Lets the extension read the code you selected on the current tab, only at the moment you click Run selected Python.
scripting- Works with activeTab to fetch that selected text from the page once; the extension does not change pages or run on them otherwise.
Questions
Can I use numpy, pandas or other pip packages?
Which Python version does it run?
Will it work on a locked-down work or school computer?
Python Runner guides
- What is Pyodide, and what can't it do?
Pyodide is CPython compiled to WebAssembly, the engine inside browser Python tools. What it runs, what it cannot do, and how to check a tool built on it.
· 6 min read - How to run Python on a Chromebook, with or without Linux
Run Python on a Chromebook in the Linux terminal or a browser tab, and what to do when a school admin has turned Linux off.
· 7 min read
Try Python Runner
Free. Remove it any time from the Chrome toolbar.