Encode and decode Base64, base64url and MIME with UTF-8-safe text for Arabic and emoji
HTML Entity Encoder & Decoder
Encode text to named, decimal or hexadecimal HTML entities (such as the copyright sign) with an option to encode only the five dangerous characters, and decode entities safely without executing any tag.
Workspace
Result
How the result is calculated
Encoding: the five characters & < > " ' are always encoded (& < > " '), visible ASCII stays as is, and non-ASCII is encoded by name when it exists in the HTML4 table (252 entities), otherwise as decimal or hex. Decoding goes through DOMParser after escaping <, so no tags or scripts are executed, and it supports every HTML5 entity the browser knows.
FAQ
Is decoding safe?
Yes, < is escaped first and nothing is injected into the page.
When should I use numeric encoding?
When the target does not know the name (XML does not know ©).


