TOOL
HTML Sanitize
Sanitize HTML with tag/attribute/URI whitelists (removes scripts, event handlers, unsafe URIs).
Try an example:
Local only
Recent history
No history yet
How to use
- Type or paste your input into the input box.
- Adjust any parameters if needed.
- Copy or download the result.
Frequently asked questions
- Is my data uploaded anywhere?
- No. All processing happens locally in your browser with no server round-trip.
- Does this tool work offline?
- Yes. Once the page loads, the tool runs entirely client-side and needs no network connection.
Tutorials using this tool
How to Build a Secure API Gateway
Design a secure API gateway that handles authentication, rate limiting, request validation, and threat protection for backend services. TUTORIAL
How to Use Content Security Policy Level 3
Configure a strict Content Security Policy (CSP3) with nonces and hashes to prevent XSS, data exfiltration, and code injection attacks. TUTORIAL
Related tools
HTML Decode Attribute
Decode HTML attribute entities. TOOL
HTML Encode Attribute
Encode text for safe use in HTML attributes. TOOL
HTML Format
Pretty-print HTML with proper indentation. TOOL
HTML Charset Detect
Detect charset from HTML meta tag. TOOL
HTML Compression Ratio
Measure how much of an HTML document is whitespace: original size vs whitespace-stripped size, with the reduction percentage. Sizes are counted in UTF-16 code units, so CJK text and emoji report smaller numbers than their real UTF-8 byte size. TOOL