Text & code · runs locally

Escape and unescape HTML

Turn < into &lt; and back — for when you're pasting code into a page and it keeps becoming markup.

Runs on your device No uploads, ever Free, no account
  1. 1
    Paste the content

    Code samples, email templates, anything that keeps getting interpreted.

  2. 2
    Escape or unescape

    Escape turns angle brackets and ampersands into named, decimal or hex entities; unescape reverses all three.

  3. 3
    Copy the result

    Paste safe now.


Questions people actually ask

What gets escaped?

The five that matter in HTML: & < > " '. Everything else is left readable for humans.

Unescape named or numeric entities?

All three — &amp;, &#38; and &#x26; decode equally happily.

Will it escape an &amp; that is already an entity?

No. The double-escape guard is on by default, so existing entities are left alone. Turn it off when you deliberately want to show the entity text itself.

Why choose hex over decimal?

Both work in HTML and XML. Hex is common in older XML tooling and some CMS sanitizers; named entities are the easiest to read in source.


Feedback

Send a message

Messages, reviews and bug reports go to a private feedback log on this site. Nothing is published, and your files are never uploaded.

For a broken tool: the tool name, browser, and the steps that led to it are the most useful things. Do not paste passwords, keys or a sensitive file.

Files are never uploaded. Only this message is stored.

PDF

Tool preview

A short description of the tool.

Runs entirely in your browser. The file never leaves this device.

Open tool