HTML Preview
Render HTML safely in a sandboxed preview, at phone, tablet or desktop width.
Runs in your browser
Output will sizzle here.
Seeing HTML without risking anything
An HTML email template, a snippet from a bug report, a page generated by a tool or a model: sometimes you just need to see how it renders. Paste it and it's shown right away, whether it's a whole page or a fragment, at full width or the width of a phone, tablet or laptop.
The preview runs in a sandboxed frame that's cut off from DevGrill: it can't read this page, your storage or your cookies, and it can't navigate away. Scripts are off by default; turn on Run scripts to try buttons and other behavior, still inside the sandbox. DevGrill's security policy also applies to the preview, so it can't contact other servers: files from a CDN or another site (scripts, stylesheets, images, fonts) won't load, and the page lists them.
How to use the HTML Preview
Paste your HTML. A full page or a fragment. Or load the sample.
Pick a width. Full width, laptop, tablet or phone.
Run scripts if you need them. They stay off until you switch them on, and stay sandboxed when you do.
Tips
- For a pasted email template, check the phone width: most email is read on phones.
- Inline your CSS and images (Image to Base64 makes data URIs) to see them here, since external files don't load.
- Messy HTML? Run it through the HTML Formatter first to read it more easily.
Frequently asked questions
Is it safe to preview HTML I don't trust?
Safer than opening it as a page: the frame is sandboxed without access to DevGrill's origin, scripts are off unless you turn them on, and it can't contact other servers. Still, don't type passwords into forms you're previewing.
Why don't my images or CDN styles show?
DevGrill never connects to other servers, and that rule applies inside the preview too, so it can't be used to track you. Use inline styles and data URI images instead.
Can I see console output?
Not yet. Open your browser's developer tools; the preview frame's console appears there.
Is my HTML uploaded?
No. It's rendered in your browser.