HTML Entities Encoder / Decoder

Runs entirely in your browser — nothing you paste is sent anywhere.

Try:

What this tool does

Escapes the five characters that break or exploit HTML — &, <, >, quotes — so any text is safe to embed in a page or attribute, with an option to also escape accents and emoji as numeric references for ASCII-only systems. Decoding resolves numeric references exactly and the classic named set (&eacute;, &copy;, &euro;…).

Honest about what it doesn't know

The named-entity table is declared, not pretended: core names, the full Latin-1 set and the common typographic ones. An entity outside that table is left untouched and listed in the result — you see exactly what didn't decode instead of getting silently mangled text. Impossible numeric references (beyond Unicode, surrogate halves) refuse with their position. And as with every tool here, nothing is uploaded: the page is static and keeps working offline, verified by our automated tests on every release.