HTML Entity Encoder/Decoder
Encode text to HTML entities (named, numeric, or hex) or decode entities back to plain text — runs entirely in the browser.
HTML entity encoder / decoder
EmptyWhat is an HTML entity?
An HTML entity is a short code that stands in for a character the browser would otherwise try to interpret as markup. Writing < directly tells the parser a tag is starting; writing < tells it to render a literal < instead. Entities come in three flavours: named (<), decimal numeric (<) and hexadecimal numeric (<). All three decode to the same character.
In modern UTF-8 documents you only strictly need to encode the five structural characters (& < > " '). Encoding the rest is a matter of taste or a constraint from a consumer that can't safely handle non-ASCII bytes. When in doubt, switch to Non-ASCII only above — it keeps your HTML shape intact and only touches characters that genuinely need escaping.