HTML Viewer
Paste HTML and see it rendered live, in a safe sandbox. Preview at full, tablet or mobile width, and run scripts only when you choose to.
The preview runs in a sandbox: it cannot reach this page, your cookies or your storage. Scripts only run when you allow them.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the HTML Viewer
- 1 Paste or type your HTML, or load the sample.
- 2 Watch the preview update as you type, and pick a width to test smaller screens.
- 3 Turn on Run scripts if the page needs JavaScript, and download the HTML when you are done.
About the HTML Viewer
The HTML viewer renders your code in an iframe next to the editor, the same way a browser shows a web page. It works with a full document (with <html>, <head> and <style>) and with a fragment such as a table, an email template or a snippet copied from a page. Inline CSS and styles from a <style> block are applied; images and stylesheets with a full https:// address are loaded from the web.
The preview is sandboxed. Without permission it cannot run JavaScript, submit forms or open pop-ups, and even with scripts turned on it runs in a separate origin: it cannot read this page, your cookies or your local storage. That makes it safe to look at HTML from an email or an unknown source. The preview is rendered by your own browser.
The width option shows how a layout responds to smaller screens: 768 pixels is a typical tablet in portrait mode and 390 pixels a typical phone. Relative links (such as /images/logo.png) do not work in the preview, because the HTML has no website around it; use full addresses for images you want to see.
Frequently asked questions
Is it safe to open unknown HTML here?
Yes: the preview is sandboxed without access to this site, so scripts (if you turn them on) cannot read your cookies or data. Links you click do open their target inside the preview, so be as careful with those as anywhere else.
Why are my images not showing?
Relative paths point to files that only exist on your own server. Use full addresses starting with https://.
Does it run JavaScript?
Only when you turn on Run scripts. Then inline scripts and scripts loaded from a full URL run inside the sandbox.
Can I edit and save the HTML?
Yes, edit the code in the text field and click Download to save it as page.html, or Copy to put it on your clipboard.