● Text Manipulation

HTML Entity Converter

Convert characters that have special meaning in HTML (like <, >, &, ") into their safe 'Entity' equivalents (like &lt;, &gt;, &amp;, &quot;). This is critical for web security to prevent Cross-Site Scripting (XSS) attacks and to display code snippets correctly on a webpage without the browser trying to run them.

Your text never leaves your browser. Everything is processed locally.

Enter your content

Escape/Unescape Strings

Convert text to and from HTML entities

Input Text

0 characters, 0 words

Output Text

0 characters, 0 words
How this tool works Documentation & SEO

Convert characters that have special meaning in HTML (like <, >, &, ") into their safe 'Entity' equivalents (like &lt;, &gt;, &amp;, &quot;). This is critical for web security to prevent Cross-Site Scripting (XSS) attacks and to display code snippets correctly on a webpage without the browser trying to run them.

Escape text for HTML usage. Convert special characters to HTML entities like &amp; and &lt; to prevent XSS. Web developer tool.

Web Developers preventing XSS
Bloggers posting code tutorials
Content Management System users
Security Researchers
Key features
  • Encodes specialized characters
  • Decodes HTML entities back to text
  • Supports Named Entities (&copy;)
  • Supports Numeric Entities (&#169;)
  • Bulk processing
Frequently Asked Questions FAQ
Why do I see &amp; instead of &?
That is an HTML Entity. Browsers interpret '&' as the start of a code sequence. Using '&amp;' tells the browser 'just display the ampersand symbol, don't run code'.
Is this different from URL Encoding?
Yes. URL encoding (percent-encoding like %20) is for addresses. HTML escaping (entities like &nbsp;) is for page content display.