HTML Entity Encoder
Encode or decode HTML entities like & and ©.
Frequently asked questions
What are HTML entities?
HTML entities are codes like & for &, < for < and © for ©. They let you display characters that would otherwise be interpreted as HTML or are hard to type.
When should I encode HTML entities?
Whenever you put untrusted or special text into an HTML page, encoding prevents it from breaking the markup or enabling cross-site scripting.
Does it handle Unicode characters?
Yes. It can encode non-ASCII characters to numeric entities and decode both named and numeric entities back to their characters.