HTML Entity Encoder

Escape or decode HTML entities, with a minimal mode for code and a full mode for every special character.

100% private — everything runs in your browser

How to Use

  1. 1

    Choose whether you want to encode or decode.

  2. 2

    Paste your HTML or text into the left panel.

  3. 3

    Copy the converted output from the right panel.

Examples

Escape markup

Input

<p>Tom & Jerry</p>

Output

&lt;p&gt;Tom &amp; Jerry&lt;/p&gt;

Decode entities

Input

5 &euro; &amp; 3 &pound;

Output

5 € & 3 £

FAQ

When do I need to escape?

Whenever text goes inside HTML or an attribute: escaping stops it from being parsed as markup.

Named or numeric entities?

Named entities such as &amp; are readable, while numeric ones such as &#38; work for any character.

Can decoding run a script?

No. Decoding only turns entities into text; nothing is executed or injected into the page.

Related Tools