HTML Preview
A live sandboxed HTML/CSS/JS scratchpad โ type left, render right.
About this editor
A split view: markup on the left (inline styles and scripts both work), the rendered page on the right, refreshed as you type. The preview runs in a sandboxed iframe โ scripts execute but can't reach this page, your cookies or your storage โ and the download button saves a proper .html file.
What a scratchpad is for
The value is zero distance between idea and pixels: testing an email snippet, checking how a CSS rule actually behaves, teaching someone their first HTML, reproducing a bug in isolation. The honest framing built into the page: nothing you type here is saved anywhere โ this is a scratchpad, not an editor, so the Download button is the exit ramp before closing the tab. Two classic first exercises for learners that this page serves perfectly: change the button's onclick and watch behaviour change; break a tag on purpose and watch how browsers heal it (they're famously forgiving, which is both HTML's charm and why XML strictness feels so different). Markdown has its own live preview, and the meta tag generator writes the head your real page needs.
Frequently asked questions
Can I run JavaScript in the preview?
Yes โ inline <script> executes inside a sandboxed iframe that can't touch this page, your cookies or storage. Experimental code stays contained.
Is my code saved anywhere?
No โ deliberately. It's a scratchpad: nothing persists or uploads, so download the .html before closing the tab if you want to keep it.
Can I load external libraries?
Script tags with external URLs work as in any page โ subject to those CDNs allowing embedding. For fully offline experiments, keep everything inline.
Why does my broken HTML still render?
Browsers repair HTML aggressively โ unclosed tags get closed, misplaced elements adopted. Handy in production, confusing when learning; the preview shows exactly what the browser decided.