HTML Encoder & Decoder
Escape HTML entities
Common HTML Entities
Less than
<
→ <
Greater than
>
→ >
Ampersand
&
→ &
Quote
"
→ "
Apostrophe
'
→ '
HTML Encoder & Decoder
Escape HTML entities
Encode and decode HTML entities to safely display HTML content and prevent XSS attacks in web applications.
Features
HTML Encoding
Encode special characters to HTML entities
HTML Decoding
Decode HTML entities back to characters
XSS Prevention
Safely encode user input to prevent XSS attacks
Entity Reference
View common HTML entity codes
Real-time Conversion
See encoded/decoded results instantly
Use Cases
- XSS prevention
- Safe HTML display
- Encoding user input
- HTML entity conversion
- Security testing
Tips
- Always encode user input before displaying
- Use encoding to prevent XSS attacks
- Common entities: < > & "
- Decode when you need to display HTML