Open source · HTML Playground
An HTML, CSS and JavaScript playground with a properly sandboxed preview
Write HTML, CSS and JavaScript and see the result as you type, with a console for logs and errors. Share it as a link with no server involved. Because shared links mean running someone else's code, the preview is locked in a sandbox that cannot touch the page, your drafts or the network. The code is on GitHub.
Tools
How it works
- Each run happens in a fresh sandboxed frame with no access to the page, its storage or cookies.
- The preview has no network access unless you switch it on.
- Shared links never run until you press Run.
Questions
Is it safe to open a playground link someone sent me?
Yes. Shared code does not run until you press Run, and then it runs in a sandbox that cannot read your drafts, navigate the page or reach the network.
Is my code uploaded?
No. Drafts stay in your browser, and share links carry the code after the # in the address, which browsers never send to a server.
See all my free tools, or my services if you need something built.