HTML Entity Escape

0 chars · 0 bytes

Direction · updates as you type

What is HTML Entity Escape?

Five characters have special meaning in HTML — & < > " ' — and must be written as entities when they appear in content. This tool escapes them in the correct order (ampersand first) and unescapes named, decimal (&#8212;) and hex (&#x2014;) entities back to plain text.

Lone ampersands are left untouched on decode, so normal prose like "AT&T" never gets mangled. Everything is computed locally in your browser.

Frequently asked questions

Why must &amp; be escaped first?

The ampersand starts every entity. If you escape other characters first, the & in their entity names would be escaped again, producing &amp;lt; double-encoding.

What are numeric entities like &#x1F600;?

They address characters directly by Unicode code point — the only way to write emoji and rare scripts in environments that only accept ASCII.

Does unescaping execute any HTML?

No. The decoded result is displayed as plain text. Even a decoded <script> tag is not executed.