🏠 All 100 Tools 🧠 Learn AI — 1-on-1 Training ⚡ Services About Contact Etsy Shop ↗
🔤
Developer Tools

HTML Entity Encoder / Decoder

Convert special characters to their HTML entity equivalents and back. Prevents XSS vulnerabilities and ensures special characters display correctly in HTML — essential for web developers and content creators.

1
Paste text or HTML with entities
2
Choose Encode or Decode
3
See the result update instantly
4
Copy the output to use in your code
Input

💡 Pro Tips

Always encode user-generated content before inserting it into HTML to prevent XSS attacks.
& must be encoded as & before other entities — always escape ampersands first.
Named entities like © are more readable than numeric © in source code.
Decode HTML before processing it in your application — raw entities can break string operations.
Use encode when putting text inside HTML attributes, especially href and title values.
The five characters that must always be encoded: < > & " ' — these are the dangerous ones.
HTML entities are case-sensitive: &Agrave; and &agrave; produce different characters.