HTML Escape / Unescape Online
Escape or unescape HTML entities instantly in your browser.
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 < and & becomes &. 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
- Select Escape to convert characters to HTML entities, or Unescape to decode entities back to characters.
- Paste your text into the input panel, or click Load Sample to try an example.
- The converted output appears instantly in the right panel.
- 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: & → &, < → <, > → >, " → ", and ' → '. The unescape direction also handles numeric entities like   and hex entities like  .
Is my data sent to a server?
No. All processing happens entirely in your browser. Your text never leaves your device.