Converters

HTML Preview

Paste HTML and see it rendered in a live preview. The preview runs in a sandboxed iframe with scripts and network access disabled, so it's safe to render untrusted HTML. The preview updates as you type, making it useful for quickly testing HTML snippets, email templates, or layout experiments.

HTML Preview — Render HTML in a sandboxed preview (no scripts, no network)

What it does

  • Renders HTML in a live, sandboxed iframe preview
  • Scripts and network access are disabled for safety
  • Preview updates in real time as you type
  • Handles CSS (inline and <style> blocks) and basic layout
  • Safe for rendering untrusted HTML — no script execution

Use cases

  • Previewing an HTML email template before sending
  • Testing HTML layout and CSS without creating a full project
  • Checking how untrusted HTML renders without security risks
  • Quickly prototyping a web page or component

How it works

1

Paste your HTML into the input pane

2

The rendered preview appears instantly in the output pane

3

The preview is sandboxed — no scripts run, no network requests are made

4

Edit your HTML and the preview updates in real time

Frequently asked questions

1Why are scripts disabled?

The preview runs in a sandboxed iframe with the sandbox attribute set to allow-same-origin only. This prevents script execution, form submission, and network requests, making it safe to render untrusted HTML without risk of XSS or data exfiltration.

2Does it support external CSS or images?

External resources (CSS files, images hosted on CDNs) can load if the URL is accessible, but scripts are blocked. For fully self-contained previews, inline your CSS and use data URIs for images.

3Can I use this for React or Vue components?

No. This is an HTML preview, not a JavaScript framework playground. Scripts are disabled, so React/Vue won't run. Use a dedicated playground like CodeSandbox or StackBlitz for framework development.

Related tools

Use HTML Preview offline in Devinity

All 95 tools run locally on your Mac. No internet required, no data sent to servers.

Download Devinity →