ExtensionsDeveloper toolsPython Runner

Python Runner iconPython Runner

Run 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
Python Runner editor with a short script that builds a JSON report, and the output panel showing count, total and median

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

  1. Click the toolbar icon and choose Open Python Runner. There is no sign-up and no daily limit on runs.
  2. Type or paste a script into the editor.
  3. Press Run or Ctrl+Enter. Output streams into the output panel as the script prints it.
  4. 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.
  5. If the script calls input(), type the values into the stdin field first.
  6. 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.
Where your data goesYour code runs inside the extension on your device, using CPython compiled to WebAssembly (Pyodide), and scripts cannot reach the network or your files. The extension makes no network requests; drafts and snippets stay in Chrome's extension storage, and settings may sync between your own Chrome profiles through Chrome Sync.

Questions

Can I use numpy, pandas or other pip packages?
NumPy and pandas are included alongside the standard library. There is no package installer, and the interpreter has no network access, so you cannot install additional packages at run time. For work that needs other packages, use a local Python install, the Linux environment on a Chromebook, or a notebook service such as Google Colab.
Which Python version does it run?
The extension runs CPython 3.14.2, compiled to WebAssembly (Pyodide). That is the version in extension 1.3.0, and the standard library you import from (json, re, datetime, itertools and the rest) comes from the same release.
Will it work on a locked-down work or school computer?
Running code needs no Python installation and no administrator rights: the interpreter travels inside the extension, so if you can add extensions to Chrome, you can run Python. The limit is policy, not hardware: an administrator can block Chrome extensions on a managed computer, and then it cannot be installed. It has not been verified on ChromeOS or school Chromebooks.

Python Runner guides

Try Python Runner

Free. Remove it any time from the Chrome toolbar.

Add to Chrome — free (Python Runner)