HTML entities encoder
Paste text and get it escaped for HTML: the five reserved characters and everything beyond ASCII become entities, named ones like é where they exist and hex numeric otherwise. Nothing leaves your browser.
Text is processed by your own browser and never leaves your device: this page has no server to send it to.
How it works
The reserved five (& < > " ') are always escaped, which is what makes text safe to place inside HTML content or attributes. Characters above ASCII get a named entity when one is common (é, ñ, €) and a hex numeric reference otherwise, so the output is plain ASCII that any tool can carry.
Frequently asked questions
When do I actually need to escape text?
Whenever text you did not write lands inside HTML: user input, database content, code samples in a blog post. Unescaped < and & are how markup injection and broken pages start.
Named or numeric entities: which is better?
They render identically. Named ones (é) are easier for humans to read in source; numeric ones work even where the named set is not defined, like XML. This tool prefers named and falls back to hex numeric.
Do I still need entities for accents on a UTF-8 page?
For display, no: a UTF-8 page shows é directly. Entities remain useful when a pipeline mangles encodings or when the output must be pure ASCII, like some email templates.