What this tool does
The HTML Entity Encoder converts text into HTML-safe entities and back again. Encoding escapes the characters that have special meaning in markup — the ampersand, the angle brackets, and the quotes — so your content renders literally instead of being parsed as HTML. Decoding turns named, decimal, and hexadecimal entities back into the characters they represent.
How it works
Encoding walks your text character by character and replaces each special character with its entity, always escaping the ampersand first so the output never double-encodes. The optional “all non-ASCII” scope additionally converts any character outside printable ASCII into a numeric entity. Decoding matches every entity sequence and resolves named entities, decimal references, and hex references. The logic is a pure function — the same input always produces the same output.
Privacy
Everything runs locally in your browser. No values are uploaded, logged, or stored.