HTML Entity Encoder & Decoder
Encode special characters to HTML entities or decode them back to text.
Text to Encode
Encoded Output
Common HTML Entities
< <
> >
& &
" "
' '
© ©
® ®
™ ™
€ €
£ £
¥ ¥
Privacy First: All encoding/decoding happens locally in your browser. Your data never leaves your device.
What are HTML Entities?
HTML entities are special codes used to represent characters that have special meaning in HTML or cannot be easily typed on a keyboard. They start with an ampersand (&) and end with a semicolon (;). For example, < represents the less-than sign (<) which would otherwise be interpreted as the start of an HTML tag.
Why Encode HTML Entities?
- Prevent XSS (Cross-Site Scripting) attacks
- Display special characters correctly in browsers
- Include reserved HTML characters in text content
- Ensure proper rendering across different systems
- Display symbols and special characters
Entity Types
- Named entities: © < (human-readable)
- Numeric entities: © < (decimal code)
- Hex entities: © < (hexadecimal code)
Related Utilities
Explore our other free developer tools: URL Encoder, Base64 Encoder, JSON Formatter, and Character Counter.