Code Playground. HTML, CSS & JS that runs live.
Three editors, a sandboxed live preview and a captured console — a local CodePen. Everything runs in your browser on your own device; nothing is uploaded.
A free online tool by Digital HeroesYour code runs locally and sandboxed in this tab — nothing is uploaded, and it cannot touch this page or your other tabs.
A local CodePen, minus the account
Write HTML, CSS and JavaScript in three dedicated editors and watch a sandboxed iframe re-render as you type. Every console.log, warning, uncaught error and unhandled promise rejection is captured into the console panel below the preview — the same way a devtools console would surface them, but scoped to your snippet. When you like the result, download a single self-contained .html file or copy the combined source to your clipboard. The iframe is isolated with the sandbox attribute, so your code can run scripts but can never reach this page, your storage, or your other tabs. No account, nothing uploaded, free forever.
Everything a playground should do.
Four steps, no manual.
- Type or paste into the HTML, CSS and JS editors — on mobile, switch editors with the tabs at the top.
- Watch the live preview re-render on the right. With auto-run on it updates as you type; toggle it off and press Run to update on demand.
- Check the console below the preview for logs, warnings and errors while you debug.
- Click Download .html for a self-contained file or Copy HTML to copy the source. Your code stays on your device.
Frequently asked questions.
Is the Code Playground free?
Is my code private? Is anything uploaded?
Is the preview safe to run?
Will I lose my code if I close the tab?
Does the console show real errors?
Can I download my work as a file?
Published · Last updated .