HTML Encoder/Decoder
Encode special characters to HTML entities or decode them back. Prevent XSS attacks!
Common HTML Entities
<
<
>
>
&
&
"
"
'
'
␣
©
©
®
®
™
™
€
€
£
£
—
—
Enter text to encode
Features
- Encode to entities
- Decode from entities
- Multiple encode modes
- Numeric encoding
- XSS prevention
- Copy result
How to Use
- 1Choose encode or decode
- 2Paste your text
- 3Select encoding type
- 4Copy the result
Frequently Asked Questions
Why encode HTML?
To display HTML as text, prevent XSS attacks, and handle special characters.
What is XSS?
Cross-Site Scripting - injecting malicious scripts. Encoding prevents this.
Basic vs Full vs Numeric?
Basic: essential chars only. Full: more entities. Numeric: &#xxx; format.
When to use numeric?
When you need maximum compatibility or encoding non-standard characters.