Developer Tools

Encoders / Escapers / Crypto

HTML Escape

Escape / unescape special HTML characters.

HTML0 chars
HTML (escaped)

Guide & explanation

HTML Escape replaces characters that are special in HTML with entities so they render as plain text instead of being interpreted as markup. It is also a basic step toward preventing XSS when placing data into a page.

Mapping

CharacterEntity
&&
<&lt;
>&gt;
"&quot;
'&#39;

Example

<a href="x">Tom & Jerry</a>

becomes

&lt;a href=&quot;x&quot;&gt;Tom &amp; Jerry&lt;/a&gt;

The Unescape mode reverses the process, including common named entities and numeric references like &#169; or &#xA9;.