The preview runs in a sandboxed frame with no access to this site, your cookies or your storage, even when JavaScript is on.
How to use
Add your HTML
Paste code into the HTML editor, click Open .html file, or type a page address and click Load page source. The editor starts with a small sample card you can change.
Watch the preview
The preview updates a moment after you stop typing. Untick Update preview as I type to use a Run button instead, and tick Run JavaScript in the preview for scripts and onclick handlers.
Check sizes and save
Pick a Preview width to test phone and tablet layouts and a Height that suits the page. Then copy the code, download it, or click Open in new tab for a full-window view.
Why HTML Viewer
- Live preview as you type, at phone, tablet and desktop widths.
- Open a file or load a live page's source by URL.
- Format and Minify buttons built into the editor.
- Sandboxed preview, with scripts off unless you turn them on.
What the HTML viewer can and cannot show
The preview is a real browser frame, so HTML and CSS render exactly as they would on a page. The limits come from the sandbox that keeps you safe and from files the frame cannot see.
A common case is an HTML email template. Paste it in, set the width to Phone, and you see how the single-column layout holds up before sending a test. For a full web page, Load page source is usually quicker than copying the source by hand.
| Content | In the preview |
|---|---|
| HTML and CSS in style tags or style attributes | Shown as the browser renders it |
| Images, fonts and stylesheets with full https:// links | Loaded, if the other site allows it |
| Relative file paths | Only after Load page source, which adds a base link |
| JavaScript | Only with Run JavaScript in the preview ticked |
| Cookies, logins and storage | Not available; the frame is isolated |
| Forms that submit | Blocked by the sandbox |
HTML viewer, beautifier and minifier compared
These three tools work on the same markup for different jobs. Many people use them together: view the page, tidy it for editing, then shrink it for shipping.
| Tool | Main job | When to use it |
|---|---|---|
| HTML Viewer | See and edit a page live | Checking a template, an email or a snippet from a colleague |
| HTML Beautifier | Readable, consistently indented code | Before editing or reviewing markup |
| HTML Minifier | Smaller file size | Before publishing or pasting into an email platform |