HTML Escape Unescape

About


Convert plain unescaped HTML code into escaped HTML and vice-versa.

What's the Difference Between Escaping and Encoding HTML?


Escaping is a subset of encoding. When escaping, not all characters are encoded. Only ampersand &, less than <, and greater than symbol > are encoded in HTML escape.

When to Escape HTML?


Escape HTML if you want to display the actual code in a webpage without the browser executing or processing the said code. See the example below.

Source Code (Escaped twice)
&lt;textarea&gt;Hello, world!&lt;/textarea&gt;
Result
<textarea>Hello, world!</textarea>

Related Tools