HTML Escape

Make text safe to show in HTML, or turn entities back into plain characters.

How HTML Escape works

Escapes text so it shows as plain text inside an HTML page, or turns entities back into normal characters. Pick Escape or Unescape with the switch. Output updates as you type.

When escaping, 5 characters are replaced: & becomes &amp;, < becomes &lt;, > becomes &gt;, " becomes &quot; and ' becomes &#39;. Turn on Also escape non-ASCII characters to escape letters like é and symbols like €. Characters from 160 to 255 get a named entity such as &eacute;. All others get a decimal one such as &#8364;.

Input to HTML Escape

  • Paste or type text into the input box, or upload a .html, .htm or .txt file.
  • To unescape, give text with entities. Named (&copy;), decimal (&#169;) and hex (&#xA9;) entities all work.
  • Unknown entities are left as they are, so broken text is never lost.

Output from HTML Escape

  • Escaped HTML that you can paste into a page and it shows as text, not as tags.
  • In Unescape mode, plain text with every known entity turned back into its character.
  • Copy it, download it as escaped.html or unescaped.html, or open it in full screen.