HTML Escape / Unescape

Escape text for HTML or decode HTML character references.

Scope: Decoded content is returned as text and is never rendered as HTML.

Workbench

Inputs stay on this page.

Output is always displayed as plain text and is never inserted as executable HTML. Unescape supports the common named entities shown by this utility plus numeric entities.

How to use HTML Escape / Unescape

  1. Choose “Escape HTML” or “Unescape HTML entities”.

  2. Paste the plain text or the entity-encoded text.

  3. Press “Escape HTML” or “Unescape entities”, then copy the result.

About this tool

Escape text so it displays literally in a web page: < becomes &lt; and & becomes &amp;. Or turn HTML entities such as &quot; and &#39; back into plain characters.