HTML Escape Tool

Escape special characters to HTML entities for safe web display

Text Input
Escaped Output
Escape Options
Common HTML Entities
CharacterNamed EntityNumericDescription
<&lt;&#60;Less than
>&gt;&#62;Greater than
&&amp;&#38;Ampersand
"&quot;&#34;Double quote
'&#x27;&#39;Single quote
 &nbsp;&#160;Non-breaking space
How to Use
  1. Input Text: Enter text containing special characters
  2. Choose Options: Select which characters to escape
  3. Escape: Click "Escape HTML" to convert characters
  4. Copy/Download: Use the escaped output safely in HTML
Why Escape HTML?
  • Security: Prevent XSS attacks
  • Display: Show HTML code as text
  • Compatibility: Ensure proper rendering
  • Data Safety: Protect user input
Use Cases:
  • Displaying user-generated content
  • Showing code examples
  • Preventing script injection
  • Email template safety