Skip to content
TabKiwiTabKiwi

HTML Entity Encoder

Escape <, >, &, quotes and optionally every non-ASCII character as HTML entities.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

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 &eacute; or numeric ones such as &#233;, which helps when a template or email system mangles non-ASCII text. Your text is processed locally.

How to use HTML Entity Encoder

  1. Paste text or an HTML snippet.
  2. Choose which characters to convert.
  3. Decide whether quotes should be escaped.
  4. 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 &copy; exist only for a few hundred.

More Developer tools

View all 91 →