HTML Previewer
Preview /htmlPreview pasted HTML locally in a sandboxed iframe without allowing arbitrary script execution.
Preview updates automatically as you edit.
Preview is sandboxed and scripts are blocked. 5 lines 207 B local only
How it works
Preview HTML in a sandboxed iframe with scripts stripped and unsafe handlers removed.
Use it for a quick visual check of isolated markup that should not execute scripts.
Example
Preview a main element with headings, text, and inline presentation styles.
Notes
- Preview rendering happens in a restricted iframe.
- Script tags, event handlers, and javascript: URLs are stripped before rendering.
- Useful for quick markup checks, not for full app simulation.
Constraints
- Scripts and unsafe handlers are stripped before sandboxed iframe rendering.
- Limit: 1 MiB input. Nothing is uploaded or silently truncated.
Common errors
- Scripts are removed
- Event handlers are stripped
- Script-scheme URLs are blocked
When to use it
Use it for a quick visual check of isolated markup that should not execute scripts.
Formats: HTML fragments, Inline CSS, Sandboxed document preview.