HTML Entities Escape / Unescape
Free online HTML escape and unescape tool — convert <, >, &, " and more to HTML entities and back, with a live preview.
- Choose Escape to convert HTML characters to entities, or Unescape to convert them back.
- Paste your input text.
- The live preview shows how a browser would render the unescaped output.
- Copy the result.
FAQ
What are HTML entities?
HTML entities are special sequences used to represent reserved characters in HTML. For example, < must be written as < so the browser doesn't interpret it as a tag start.
When do I need to escape HTML?
Always escape user-generated content before inserting it into HTML to prevent XSS (Cross-Site Scripting) attacks. Also escape when embedding code examples in web pages.
What characters are escaped?
The five essential characters: & → &, < → <, > → >, " → ", and ' → '. These cover all XSS-relevant cases.