Skip to main content
SiteIndex

Developer

HTML Escape / Unescape Documentation

Use the free HTML Escape / Unescape →

Escape HTML special characters into entities or unescape entities back into raw HTML text.

What does it do?

Escape HTML special characters into entities or unescape entities back into raw HTML text.

How does it work?

SiteIndex converts reserved characters such as <, >, &, and quotes into their HTML entity equivalents, or reverses the process to decode entities back into readable text, entirely in your browser.

When to use it
  • Safely embed user-generated text inside HTML without breaking markup.
  • Decode HTML entities copied from a web page or API response.
  • Prepare text snippets for safe inclusion in templates or emails.
Inputs and outputs
Input
Text, files, or values entered in the browser, depending on the tool.
Output
A result shown in the browser that can be reviewed or copied where supported.
Limitations
  • Escaping text is not general HTML sanitization or JavaScript/CSS/URL-context encoding.
  • Unescape produces raw characters; inserting that result as executable HTML can be unsafe.
Privacy and data handling

Inputs for this browser-side tool are processed locally and are not sent to SiteIndex. Normal page analytics may still be collected as described in the Privacy Policy. Read the Privacy Policy.

How to use it

  1. Paste the text or entity-encoded text.
  2. Choose Escape or Unescape.
  3. Review the output as text before embedding it in the appropriate HTML context.

Related tools