HTML Escape / Unescape
Escape and unescape HTML special characters.
About HTML Escape / Unescape
HTML escaping converts special characters like <, >, &, ", and ' into their HTML entity equivalents (<, >, &, ", ') so they render as literal text rather than being interpreted as HTML markup. This is essential for safely displaying user-generated content and preventing cross-site scripting (XSS) attacks.
How to Use
Paste your text and click "Escape" to convert special characters to HTML entities, or paste HTML-encoded text and click "Unescape" to revert them back to the original characters. Copy the result with one click.
Common Use Cases
- Safely displaying user-generated content in web pages
- Preventing XSS vulnerabilities by escaping dynamic HTML output
- Encoding content for use inside HTML attributes
- Preparing text snippets for embedding in HTML templates
- Decoding HTML entities in scraped or API-returned content