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)<textarea>Hello, world!</textarea>Result
<textarea>Hello, world!</textarea>
Related Tools
- HTML Encode/Decode - Convert characters and symbols into HTML entities and vice-versa.
- URL Encode/Decode - Encode or decode reserved special characters in a url.