← Back to Tools

👁️ HTML Viewer

Paste HTML and preview how it renders — safely, in a fully sandboxed frame that never executes scripts.

HTML Source
Preview
🔒 Sandboxed: JavaScript, forms, and top-level navigation are all disabled in this preview.

Quick Answer

This tool renders pasted HTML inside a fully sandboxed iframe, so you can safely preview markup — even from an untrusted source — without any script execution risk to your browser or this site.

How it works

The preview pane uses an iframe with an empty sandbox attribute, which is the browser's strictest sandboxing level: no script execution, no form submission, no access to cookies or local storage, and no ability to navigate the parent page. Your HTML renders visually exactly as written, but can't run any embedded JavaScript.

Privacy

Everything happens locally in your browser. The HTML you paste is never uploaded or sent to any server.

FAQ

Why doesn't my JavaScript run in the preview?

That's intentional — this tool is designed for safely previewing HTML from untrusted sources (like email templates or scraped markup), so scripts are always blocked.

Can I preview a full HTML document with <style> tags?

Yes — paste a complete document (including <html>/<head>/<body> if you like) or just a fragment; both render correctly.

Related Tools