HTML Preview
Paste HTML and see a live preview rendered in a sandboxed frame.
Preview will appear here
Scripts, forms, embeds, and interactive links are disabled. External assets are blocked to keep the preview isolated.
Safety
- The preview is sanitized before rendering, so script tags, event handlers, and risky elements are removed.
- Content is rendered inside a sandboxed iframe with a restrictive Content Security Policy.
- Inline styles are allowed, but remote CSS, fonts, iframes, SVG, and external assets are blocked.
- Use Copy to grab the raw HTML source to your clipboard.
What is this tool doing?
This tool parses your HTML in the browser, removes risky elements and attributes, then renders the remaining markup inside a sandboxed iframe. That lets you inspect structure and inline styling without injecting arbitrary HTML into the main page.
It is intentionally restrictive. The goal is safe visual previewing, not a full browser emulator. If your snippet depends on JavaScript, embedded content, remote assets, or SVG behavior, those parts are blocked on purpose.
What gets blocked
- Scripts and inline handlers — script tags, javascript: URLs, and onClick-style attributes are stripped before rendering.
- Embedded and interactive content — iframes, forms, inputs, media embeds, and similar elements are removed to reduce abuse.
- External assets — remote stylesheets, fonts, and other external resources are blocked so the preview stays isolated.