Developer utility

HTML Viewer

Preview and inspect HTML in a script-disabled sandbox, compare source and sanitized markup, extract readable text, and review document structure without uploading code.

Source

Paste HTML

Preview mode

Ready to inspect HTML.

Document statusWaiting

Paste HTML to render and inspect its document structure.

Source size0 B
Elements0
Headings0
Links0

Removed or changed items: 0

Sandboxed output

HTML preview

Desktop · 100%

The iframe has no script, form, popup, same-origin, or top-navigation permission. Source mode can preserve markup, but the sandbox still blocks script execution.

Processed markup

HTML sent to the preview

Processed size: 0 B · Extracted text: 0 characters

Document checks

HTML warnings and sanitization report

Paste HTML to render and inspect its document structure.

DOM outline

Element summary

ElementCountIDs / classesFirst text
No body elements detected.

Readable content

Extracted text

Examples

HTML preview samples

HTML preview safety reference

ContentSanitized modeSource mode
HTML elements and textRenderedRendered
Inline CSSKept after dangerous imports and URLs are removedKept inside the sandbox
Script elementsRemovedPreserved but blocked
Inline event handlersRemovedPreserved but blocked
iframe, object, embedRemovedRestricted by the sandbox
Network resourcesBlocked by default with CSP and attribute cleanupAllowed only when network blocking is disabled

HTML Viewer FAQ

Can pasted JavaScript run in the preview?

No. The iframe has no script permission. Sanitized mode also removes scripts, embedded frames, inline event handlers, dangerous URLs, and active navigation directives.

Does HTML leave my browser?

No. Parsing, sanitization, preview rendering, text extraction, document statistics, and downloads run locally. Network references are blocked by default.

Why can the preview differ from my production site?

The sandbox has no access to your site's runtime, cookies, same-origin APIs, or server routes. Network resources remain unavailable unless you explicitly disable blocking.

Is this a complete HTML validator?

No. It provides practical structure, accessibility, duplicate-ID, heading-order, image-alt, and safety checks. Standards conformance still requires a dedicated validator.