HTML & JS Playground
A front-end scratchpad: three editors for HTML, CSS and JavaScript, a live preview that re-renders as you type, and a console panel that captures console.log, warnings and uncaught errors from your code. The preview runs in a sandboxed frame, so experiments cannot touch the page around them. Your work autosaves to the browser, and you can download the result as a single self-contained HTML file or load one back in to keep going.
Runs 100% in your browser — nothing you paste leaves your device.
Read the full guide to this tool
Notes
- The preview iframe is sandboxed: scripts run, but the snippet cannot navigate the page, open popups or read this site's data.
- console.log, console.warn, console.error and uncaught exceptions are forwarded to the console panel with line numbers where available.
- The exported file inlines your CSS and JS, so it opens anywhere a browser does — no dependencies, no build step.
- Runs 100% in your browser — nothing you paste leaves your device.