HTML Escape / Unescape Online

Escape or unescape HTML entities instantly in your browser.

INPUT0 chars
OUTPUT

What Is HTML Escape / Unescape?

HTML Escape converts special characters into their HTML entity equivalents so they render correctly in a browser without being interpreted as markup. For example, < becomes &lt; and & becomes &amp;. HTML Unescape does the reverse — it converts entity references back to their original characters. This is essential when embedding user-generated content in HTML, storing HTML snippets in JSON, or debugging template output.

How to Use HTML Escape / Unescape

  1. Select Escape to convert characters to HTML entities, or Unescape to decode entities back to characters.
  2. Paste your text into the input panel, or click Load Sample to try an example.
  3. The converted output appears instantly in the right panel.
  4. Click Copy to copy the result to clipboard.

Features

  • Escape mode: converts &, <, >, ", and ' to HTML entities
  • Unescape mode: decodes named, decimal, and hex HTML entities
  • Instant real-time conversion as you type
  • Copy result to clipboard in one click
  • Runs entirely in your browser — zero data uploaded

FAQ

What is HTML escaping?

HTML escaping converts special characters like <, >, &, and " into their HTML entity equivalents so they display correctly in a browser without being interpreted as HTML markup.

When do I need to escape HTML?

You need to escape HTML whenever you insert user-supplied text into an HTML page. Without escaping, characters like < and > can break your layout or create cross-site scripting (XSS) vulnerabilities.

What characters does HTML escaping convert?

The five essential characters are: & → &amp;, < → &lt;, > → &gt;, " → &quot;, and ' → &#39;. The unescape direction also handles numeric entities like &#160; and hex entities like &#x00A0;.

Is my data sent to a server?

No. All processing happens entirely in your browser. Your text never leaves your device.