HTML / CSS / JS Playground
Write and preview HTML, CSS, and JavaScript live inside an isolated sandboxed iframe with console output.
Related developer tools
All Developer toolsHTML / CSS / JS Formatter
Beautify and indent HTML, CSS, and JavaScript files with customizable indentation rules.
HTML, CSS & JS Minifier
Minify HTML markup, CSS stylesheets, and JavaScript code by stripping comments and unnecessary whitespace.
Base64 Encoder & Decoder
Encode or decode UTF-8 text and convert local files into Base64 data URLs.
URL Encoder & Decoder
Percent-encode or decode URLs and inspect or edit query string parameters.
About HTML / CSS / JS Playground
Prototype and test HTML, CSS, and JavaScript live side by side with a built-in console log viewer and one-click standalone .html export—executed inside a strictly sandboxed iframe.
How to use HTML / CSS / JS Playground
- 1
Start from a starter template or edit the HTML, CSS, and JavaScript tabs in the code pane.
- 2
Watch the live preview update automatically (or uncheck Auto-run and click Run manually) and check console output below.
- 3
Click Export .html to download a self-contained HTML file with your inline styles and script.
Frequently asked questions
How is user code isolated from the rest of the site?
The preview runs inside an <iframe sandbox="allow-scripts"> without allow-same-origin, so code inside the preview gets a unique opaque origin and cannot access your localStorage, cookies, or parent DOM.
Can I see console.log() messages and runtime errors?
Yes. The sandbox forwards console.log, console.warn, console.error, and uncaught runtime errors safely to the Console panel via postMessage.
Is my playground code saved to a server?
No. Everything stays local in your browser tab until you export or close the page.
