HTML Entity Encoder & Decoder
Encode special characters to HTML entities or decode them back to prevent XSS attacks
0 characters
0 characters
Common HTML Entities Reference
< → <
> → >
& → &
" → "
' → '
© → ©
® → ®
™ → ™
€ → €
→ (non-breaking space)
Security Note: Always encode user input before displaying it in HTML to prevent XSS (Cross-Site Scripting) attacks.
About the HTML Entity Encoder & Decoder
Encode special characters to HTML entities or decode HTML entities back to readable text. Essential for web development, preventing XSS attacks, and displaying special characters correctly in HTML.
Features:
- Encode text to HTML entities (named and numeric)
- Decode HTML entities to plain text
- Support for named entities (<, >, &, etc.)
- Support for numeric entities (<, <, etc.)
- Unicode character support
- Copy to clipboard functionality
- Character count for input and output
Use Cases:
- Prevent XSS (Cross-Site Scripting) attacks
- Display special characters in HTML
- Escape user input for safe HTML rendering
- Debug HTML entity issues
- Email template development
- XML/HTML data processing
- Content management systems
Common HTML Entities:
- < → < (less than)
- > → > (greater than)
- & → & (ampersand)
- " → " (quotation mark)
- ' → ' (apostrophe)
- → non-breaking space