text · encode

HTML Entity Encode / Decode

Encode &, <, >, " and ' to entities (&amp; &lt; &gt; &quot; &#39;) or decode named and numeric entities (&amp;, &#39;, &#x2F;, &nbsp; and the HTML5 named set) back to characters. Auto-detects: input containing entities is decoded, otherwise encoded.

Workspace Files stay on your device
A little guidance. A better result.

How to use HTML Entity Encode / Decode

& < > " ' ↔ entities; decodes named and numeric entities; auto-detects direction.

  1. Prepare your input

    Paste literal text or HTML entities.

  2. Use the workspace

    Review the automatically selected encode or decode result.

  3. Check your result

    Check ampersands, quotes and angle brackets before using it.

Know the limits

Decoding entities can restore markup characters; this is not a general-purpose HTML sanitizer.

Where does my input go?

This browser tool processes your input on your device. Optional analytics is a separate choice; it is not needed to use the tool. Keep your original until you have checked the result.

Read the privacy details →
Made for the work in front of you.Report a problem ↗