Escape or restore HTML entities.
How does HTML Escape / Unescape work?
This tool converts the characters &, <, >, " and ' into their HTML entity equivalents (or back again), which is what's needed to display text safely as content inside an HTML page instead of having the browser interpret it as markup.
How to use it
- Paste text or HTML-escaped content into the box.
- Click "Escape HTML" to convert special characters to entities, or "Unescape HTML" to reverse it.
- Copy the result into your HTML source or CMS.
Common use cases
- Safely displaying user-submitted text as content on a webpage without it being parsed as HTML.
- Showing a code snippet containing angle brackets on a blog post.
- Decoding escaped entities exported from a CMS or RSS feed.
Frequently asked questions
Which characters does this handle?
The five characters HTML requires escaping in text content and attributes: &, <, >, " and '.
Is this the same as URL encoding?
No — HTML escaping protects against markup being misinterpreted inside a page, while URL encoding protects characters inside a URL.