Skip to content

How to run Python online without installing it

Reviewed

Short answer

To run Python online, open Python Studio, create a program, write Python code, and select Run Python. The first run downloads the Pyodide interpreter into your browser. Results appear in Output. You do not need to install Python or create an account.

Open this example in the editor

Opens as a new program; running code requires JavaScript.

How do I run my first Python program?

Python Studio provides a code editor and an output console in the same workspace. A program is a sequence of instructions; print() writes a value to the console so you can see the result.

Use the example below as a small first check. The quotation marks make Hello, World! a string. They are part of the code, but they do not appear in the printed output.

  1. 01Open the example as a new program using the link on this page, or choose New Program in the workspace.
  2. 02Write or edit the program in the Code view.
  3. 03Select Run Python, or press Ctrl+Enter on Windows/Linux or Cmd+Enter on macOS.
  4. 04Read the result in Output. On a phone, the console opens after you run.
Python
print("Hello, World!")
Output
Hello, World!

Is this a Python compiler or an interpreter?

People often search for an online Python compiler when they need a place to run code. Python Studio runs CPython through Pyodide 0.27.7, a WebAssembly distribution of Python. Python compiles source into bytecode internally and executes it with the interpreter; this site does not produce a downloadable native executable.

Execution happens in a browser Web Worker, separate from the page's interface. The first run needs an internet connection to download runtime files from jsDelivr. Later runs reuse the worker while the page remains open. Browser cache behavior varies, so do not assume the app will work fully offline.

How do I fix syntax and runtime errors?

A SyntaxError means Python could not parse the program. Check the reported line for missing quotation marks, brackets, or a colon. IndentationError usually means leading spaces do not match the surrounding block.

A runtime error happens after execution begins. For example, dividing by zero raises ZeroDivisionError. Read the final error message and the line reference, then make one small change and run again.

Completion suggests built-ins, keywords, and names found in your program. It does not understand every object's type and does not replace Python's error messages. Use Visualize for small programs when you need to see which line led to a wrong value.

Where are my programs saved?

File tabs and their input text are saved in this browser's local storage for the current website. They are not synchronized across devices or browsers. Clearing site data, using private browsing, or changing domains can make those files unavailable.

The + next to the tabs creates a separate program. Download a .py copy before clearing browser data or moving to a different device. A new domain has separate storage: files saved on a preview or previous hosting domain will not automatically appear on reads.fyi.

Share creates a URL containing the current code in its fragment. Anyone who receives that link can read the code; do not share secrets. Opening a valid share link adds a separate program rather than replacing existing work.

What can this browser environment run?

Use Python Studio for short console programs: loops, functions, classes, dictionaries, algorithms, and learning examples. Standard-library support follows Pyodide's browser constraints. The editor is not a server shell or a full desktop Python installation.

There is no general pip-install interface or automatic dependency installation in this editor. Some packages and standard-library features are not loaded or are incompatible with the browser. Network access follows browser restrictions such as CORS; desktop sockets and operating-system process features are not generally available.

Execution is stopped after roughly 15 seconds once the runtime is ready, and output is limited. Large computations, long-running servers, and desktop GUI applications need a different environment. Select Stop to terminate a run; your editor text remains available.

Official sources