HTML / CSS / JS Playground
Write HTML, CSS and JavaScript and see it run in a locked-down sandbox.
Preview
console.log output appears here
Your input is processed locally in this browser tab.
How to use HTML / CSS / JS Playground
Switch between HTML, CSS, and JavaScript editor tabs to build interactive prototypes.
Auto-run updates the live preview automatically, or click Run for manual updates.
Read console.log output and errors directly inside the captured Console pane.
Frequently asked questions
Is the preview iframe sandboxed?
Yes. It runs with sandbox="allow-scripts allow-modals" on a null origin and cannot access parent cookies, storage, or network state.
Does console output work inside the sandbox?
Yes. A lightweight bridge forwards console.log, warn, and error messages cleanly to the workspace Console log.