HTML entities
Encode and decode HTML
This tool escapes and unescapes HTML entities. When encoding, it at least replaces the reserved characters &, <, >, quotes and the apostrophe so text can't break a page or open an injection hole; you can also escape everything, that is convert every non-ASCII character into a numeric entity, in decimal or hexadecimal notation. When decoding, it resolves any entity, whether named like é or numeric like é, to recover the original text.
Decoding relies on the browser's native HTML parser, true to how real pages behave. Everything is processed locally: nothing is sent, no tracking and no ads.
FAQ
Named vs numeric entities — what's the difference?
A named entity is readable (&copy; for ©), a numeric one references the character by its code (&#169; or &#xA9;). Both display the same character.
What does "encode everything" do?
It converts all non-ASCII characters (accents, emojis…) into numeric entities, useful for an ASCII-only environment.
Does decoding handle every entity?
Yes: it uses the browser HTML parser, which knows the full list of named entities and all numeric forms.
Does my text leave my browser?
No, encoding and decoding happen entirely locally, with no network request and no tracking.