How to Use the HTML Sanitizer
Converting with the HTML Sanitizer takes just three steps:
-
Enter the Value to Convert
Type or paste the value you want to convert into the input area. The html sanitizer supports various input formats — just enter your data and the tool will recognize it automatically.
-
Select Source and Target Formats
Choose the source format and the target format from the available options. The tool supports bidirectional conversion where applicable. Your settings are applied instantly.
-
Get Your Conversion Result
The converted result appears in real time. Click "Copy" to copy it to your clipboard, or "Download" to save it. All conversion is done locally on your device with no server upload.
Frequently Asked Questions
What is HTML sanitization?
HTML sanitization removes dangerous tags, attributes, and JavaScript code from HTML to prevent XSS (Cross-Site Scripting) attacks.
What tags are allowed by default?
Default allowed tags include: p, a, img, ul, ol, li, h1-h6, div, span, strong, em, br, hr, blockquote, pre, code, table, thead, tbody, tr, th, td. You can toggle individual tags.
Is my HTML sent to a server?
No. All processing is done entirely in your browser. Your HTML never leaves your device.
Does it remove inline styles?
Yes, by default all style attributes are removed for security. Only safe attributes like href, src, alt are preserved.
Can I customize the allowed tags?
Yes. Click the tag toggles above the input to enable/disable specific HTML tags.