Overview
The HTML Entity Encoder converts special characters to their HTML entity equivalents and vice versa, preventing characters like <, >, &, and ” from being interpreted as HTML markup. It supports three encoding scopes and includes a clickable reference cheatsheet.
How to Use
Enter text with special characters to encode, or paste encoded HTML to decode. Choose the scope: HTML Special characters (<>&”), Extended characters (accented letters and symbols), or All non-ASCII characters. Switch between Encode and Decode modes using the tabs. Click any entity in the cheatsheet to copy it directly.
Background & Context
HTML entities are essential for web security. Without proper encoding, user-submitted content containing < or > characters can break page layouts or enable Cross-Site Scripting (XSS) attacks — one of the most common web vulnerabilities. The entity & is used to display an ampersand itself, while (non-breaking space) prevents line breaks between words.




