Two modes
Encode escapes the five reserved HTML characters and, optionally, every non-ASCII character as a numeric entity. Decode resolves named, decimal and hex entities back to characters using the browser parser.
Frequently asked questions
Does it handle emoji?
With numeric entities checked, emoji become 😀-style escapes.
Is it safe for attributes?
Yes — quotes are escaped too, so output can go inside double-quoted attributes.
Decode < twice?
Decoding once gives <; run Decode again for a second level.