HTML Escape/Unescape

Convert between HTML special characters and entities

Conversion Type
0
Read-only
0

What is HTML Escape / Unescape Tool?

HTML Escape / Unescape converts HTML special characters into entities and restores escaped strings to their original form. It is useful when you want to display code examples as text or inspect the contents of escaped strings.

Switching the conversion type lets you check both directions right away. Everything is handled in the browser.

How to Use

  1. Choose either “Escape” or “Unescape”.
  2. Paste or type text into the input area.
  3. Review the converted result.

Main Settings

Conversion Type

Choose the direction of the conversion.

  • Escape: converts characters such as <, >, and & into forms that display as text inside HTML
  • Unescape: converts escaped strings such as &lt; and &gt; back into their original characters
<div>Hello World</div>

becomes:

&lt;div&gt;Hello World&lt;/div&gt;

Use Cases

  • Displaying HTML code examples in blogs or documentation
  • Checking escaped HTML strings
  • Reviewing how template or form input text should be treated

Things to Keep in Mind

  • This tool helps you inspect and convert strings, but it does not replace full application-level XSS protection
  • If you unescape content and then render it, you still need to make sure that usage is safe for the target context