HTML Entity Encoder/Decoder
Encode special characters for HTML or decode HTML entities
About HTML Entities
HTML entities are special codes used to display reserved characters in HTML. Characters like <, >, and & have special meaning in HTML and must be escaped.
Common HTML Entities
<→ < (less than)>→ > (greater than)&→ & (ampersand)"→ " (double quote)'or'→ ' (single quote) → non-breaking space©→ © (copyright)®→ ® (registered)
Why Encode HTML?
- Prevent XSS (Cross-Site Scripting) attacks
- Display code snippets safely on web pages
- Ensure special characters render correctly
- Maintain valid HTML structure