HTML Entities Encoder & Decoder

Encode and decode HTML entities: &, <, ©, and every numeric &#nnn; entity. Choose named-preferred, numeric-only, or ASCII-only output.

Runs 100% in your browser — nothing is uploaded.Use this in a chain
Result

How to use

  1. 1
    Pick a direction

    Encode plain text → entities, or decode entity soup back to readable text.

  2. 2
    Pick a scope

    Named-when-available (readable), numeric-only (universal), or ASCII-only (legacy safe).

  3. 3
    Paste your input

    HTML fragment or plain text. Result updates live.

Examples

Encode the core three
Input
Text: <div class="wrap">Tom & Jerry</div>
Output
&lt;div class=&quot;wrap&quot;&gt;Tom &amp; Jerry&lt;/div&gt;
Every character that could confuse an HTML parser gets escaped.
Decode entity soup
Input
&copy; 2026 ToolVaults &mdash; est. today
Output
© 2026 ToolVaults — est. today
Named entities like &amp;copy; and &amp;mdash; round-trip cleanly.
ASCII-only for legacy CMS
Input
Text: naïve café — 100%
Output
na&iuml;ve caf&eacute; &mdash; 100%
Every non-ASCII character escaped. Safe to paste into old systems that mangle UTF-8.

Frequently asked

Which entities do I actually need to escape?

In HTML content: &amp;, &lt;, &gt;. In attribute values, also escape quotes. Everything else is optional unless you have a specific character set constraint.

Named vs numeric entities?

Named entities like &amp;copy; are more readable. Numeric entities like &amp;#169; work everywhere including XML. The tool defaults to named-when-available, numeric otherwise.

Does it handle emoji?

Yes — emoji become numeric entities in "ASCII-only" mode. Modern HTML5 with a UTF-8 charset does not need this, but legacy systems sometimes do.

Related tools