Privacy
Last updated: November 27, 2026
Python Playground runs Python code in your browser. This page explains what happens to your code and what the site learns about your visit.
Your code stays in your browser
Python runs on your device, inside your browser, with Pyodide (CPython compiled to WebAssembly). The Python Code Checker and the Python Formatter work in your browser too. Your code, its output, the names of your snippets and anything you type in the editors are never sent to this site or to anyone else.
The site's security policy blocks network requests made by the code you run. There is no account and no sign-in.
What is stored in your browser
Your draft, saved snippets and settings are kept in your browser's local storage on this device. When you send code from one tool to another, for example from the checker to the playground, it passes through your browser's session storage for that tab. None of this leaves your device. To delete it, clear this site's data in your browser settings.
Visit statistics
We count visits with PostHog, an open-source analytics tool, running on the server ph.purrweb.com. For each page load it receives:
- which page you open, its title and the address of the page that linked to it;
- how long you stay on the page and how far you scroll;
- your browser and its version, operating system, device type, language, time zone and screen size;
- which tool you used: the playground, the checker, the formatter or the syntax error explainer, counted once per page load;
- whether you pressed the button that opens Python Runner in the Chrome Web Store.
The analytics script sets no cookies and saves nothing in your browser, so every page load counts as a new visitor. Your code, its output and snippet names are never part of these statistics. The analytics server receives your IP address, as any website does, and may use it to estimate your approximate location.
We use these statistics only to see how many people visit the site and which tools they use. The site has no ads and no social media trackers, and it loads scripts only from its own address.
Hosting
The site is hosted on Cloudflare. When your browser loads a page or a file, Cloudflare receives your IP address and ordinary request data, such as the address requested and your browser type, as any web host does.
Links to the Chrome Web Store
The Python Runner button leads to the Chrome Web Store. It is run by Google and has its own privacy policy.
Changes
If this policy changes, the new version will be published on this page with a new date above.
Contact
Questions? Open an issue on GitHub.
Python is a trademark of the Python Software Foundation. Python Playground is an independent project and is not affiliated with the PSF.