HTML Sanitizer & DOM Purifier
Purify untrusted user-submitted HTML to strip malicious tags (<script>, <iframe>, <object>) and dangerous attributes.
How to Use HTML Sanitizer & DOM Purifier
Paste untrusted HTML markup.
Choose allowed tag profile (Strict Plain, Rich Text, or Permissive).
Copy purified, safe HTML ready to render.
HTML Sanitizer & DOM Purifier runs 100% client-side in your web browser. Your data, passwords, keys, and files are processed using the Web Crypto API and never transmitted to any server. Zero telemetry, zero storage, zero cloud processing.
Frequently Asked Questions
How does HTML sanitization differ from entity encoding?
Encoding turns all characters into < entities so no HTML renders; sanitization allows safe tags (<b>, <i>, <p>) while stripping malicious scripts.
Related Security Tools
SQL Query Escaper & Injection Preventer
Escape raw SQL input values and convert dynamic queries to secure parameterized prepared statements.
XSS Sanitization Tester & Payload Encoder
Test how HTML sanitizers and filters handle dangerous event handlers (onerror, onload) and script injection.
JavaScript Code Obfuscator
Protect client-side JS logic with variable renaming, hex string encoding, dead code injection, and control flow flattening.
JavaScript Deobfuscator & Formatter
Unpack eval packers, decode hex strings, beautify minified scripts, and deobfuscate suspicious scripts for analysis.
Client-Side Code Security Scanner
Scan source code snippets for hardcoded API keys, dangerous eval(), SQL injection concats, and insecure regexes.
Dependency & Package Vulnerability Checker
Audit package.json, composer.json, or requirements.txt for known CVE vulnerabilities and outdated libraries.