HTML Encoder/Decoder
Professional HTML encoding and decoding tool with advanced security features. Protect against XSS attacks, encode special characters, and ensure safe web content. Supports named entities, numeric entities, and URL encoding with real-time security analysis.
Encoded Output
Decoded Output
Common HTML Entities Reference
Character | Named Entity | Numeric Entity | Hex Entity | Description |
---|---|---|---|---|
< | < | < | < | Less than |
> | > | > | > | Greater than |
& | & | & | & | Ampersand |
" | " | " | " | Double quote |
' | ' | ' | ' | Single quote |
|   |   | Non-breaking space | |
© | © | © | © | Copyright |
® | ® | ® | ® | Registered trademark |
Sample Encoding/Decoding Examples
XSS Attack Prevention
<script>alert('XSS')</script>
Common XSS attack pattern that needs proper encoding
HTML Content
<div class="example">Hello & Welcome</div>
Standard HTML with special characters
Quote Handling
He said "Hello" & she replied 'Hi'
Text with both single and double quotes
Unicode Characters
© 2025 Company™ • All Rights Reserved
Special symbols and Unicode characters
JavaScript Injection
javascript:alert(document.cookie)
JavaScript URL injection attempt
Form Data
name=John&email=john@example.com&message=Hello!
URL-encoded form data with special characters
Need Web Security Solutions for Your Projects?
Deploy secure applications with top cloud security services
✨ Smart Nation's Core Infrastructure: WIA Code ✨
Drone·Robot delivery, autonomous driving, emergency rescue and more - Experience the future in 30 days, completely free for your nation!
Learn More About WIA Code