🔣 HTML Entity Encoder/Decoder
Convert special characters to HTML entities and back
Input
Output
Common HTML Entities
& → &
< → <
> → >
" → "
' → '
© → ©
® → ®
™ → ™
— → —
– → –
→
€ → €
FAQ
When should I encode HTML entities?
Encode HTML entities when displaying user-generated content on a webpage to prevent XSS attacks, or when you need to show HTML code as text rather than rendered markup.
What's the difference between named and numeric entities?
Named entities use words (like &) while numeric entities use character codes (like &). Both produce the same result. Named entities are more readable.