FREE DEVELOPER TOOL
HTML Entity Encoder / Decoder
Encode text into HTML entities or decode HTML entities back into readable text.
HTML encoding is context-specific. Encoding text for HTML content does not automatically make the same value safe for JavaScript, CSS, URLs, or every HTML attribute context.
0 / 250,000
Encodes text for HTML representation. This is not a universal sanitizer for every browser context.
REFERENCE
Common HTML Entities
<
<
Less than
>
>
Greater than
&
&
Ampersand
"
"
Quotation mark
'
'
Apostrophe
Non-breaking space
©
©
Copyright
®
®
Registered trademark
™
™
Trademark
€
€
Euro
£
£
Pound
¥
¥
Yen
IMPORTANT
Entity encoding is not a universal XSS defense
Use the encoder appropriate to the output context. HTML text, attributes, JavaScript, CSS, and URLs have different escaping and validation requirements.