About this tool
Escaping the five special characters is what keeps user text from being read as markup, so a stray < or & cannot break your page or open the door to injected scripts. You can also turn accented letters, symbols and emoji into named entities such as é or numeric ones such as é, which helps when a template or email system mangles non-ASCII text. Your text is processed locally.
How to use HTML Entity Encoder
- Paste text or an HTML snippet.
- Choose which characters to convert.
- Decide whether quotes should be escaped.
- Copy the escaped output.
Frequently asked questions
Which characters must always be escaped?
& and < in text, plus the quote character that surrounds an attribute value. Escaping > and both quotes as well is the safe habit.
Named or numeric entities?
Both display the same. Numeric entities work for every character, while names like © exist only for a few hundred.