HTML Escape / Unescape

Escape special HTML characters (&, <, >, ", ') for safe display in HTML, or unescape previously escaped text. Runs entirely in your browser.

HTML Escape / Unescape tool

How to use

  1. Choose mode

    Switch between Escape (text → safe HTML) and Unescape (entities → raw text).

  2. Enter input

    Type or paste the text or HTML-escaped string.

  3. Copy result

    Use Copy to copy the escaped or unescaped output.

Examples

  • Escape

    Special chars become entities.

    Input
    <div>Hello & "world"</div>
    Output
    &lt;div&gt;Hello &amp; &quot;world&quot;&lt;/div&gt;

Frequently asked questions

Why escape HTML?
To prevent XSS and to display code or user input safely in HTML.
Which entities are supported?
Standard five: &amp; &lt; &gt; &quot; &#39; (and &apos; when unescaping).

You might find these useful too.