Skip to content
Input
HTML or text
Modes
2 explicit
Runtime
Browser

Remove active and network-loading HTML

Return sanitized source text after removing active elements, resource loaders, event handlers, and unsafe URL schemes.

Local processingNo sign-upNo resource loading

Sanitize HTML

Source stays in this tab. Parser input is capped at 500 KiB; sanitizing uses 256 KiB.

Sanitized HTML source

Every result is inert, copyable source or data, never live DOM.

What this tool does

Explicit-mode, bounded, local parsing

The sanitizer is a conservative source-cleaning boundary, not permission to inject arbitrary output into a privileged application context. Review and apply a context-specific policy downstream.

Unsafe behavior fails closed

The sanitizer is a conservative source-cleaning boundary, not permission to inject arbitrary output into a privileged application context. Review and apply a context-specific policy downstream.

The parser runs locally with a 500 KiB input cap, 100,000-node and 100-level tree limits, and a 1 MiB output cap. It never fetches URLs, loads resources, uploads source, or saves a preset.

Explicit document and fragment modes

Document mode applies the HTML document parser and may supply implied html, head, or body structure. Fragment mode parses only a pasted fragment. The selected mode is part of the result and is never inferred from the text.

Primary references

Questions and answers

Related HTML tools