HomeDev ToolsHTML Entity Encoder
🌐

HTML Entity Encoder

Encode and decode HTML special characters and entities

Encode special characters to HTML entities to safely display them in web pages, or decode HTML entities back to plain text. Prevents XSS vulnerabilities.

Common HTML Entities

<&lt;
>&gt;
&&amp;
"&quot;
'&#039;
©&copy;
®&reg;
&trade;
&euro;
£&pound;
×&times;
÷&divide;

Frequently Asked Questions

Characters like angle brackets have special meaning in HTML and must be encoded to display correctly and prevent XSS attacks.
Cross-Site Scripting is a security attack where malicious scripts are injected into web pages. HTML encoding user input prevents this.
The core HTML-reserved characters (<, >, &, ", ') plus one-click shortcuts for common symbols like ©, ®, ™, €, £, ×, and ÷.
Yes — switch to Decode mode and paste HTML containing entities like &amp; or &lt; to get the original characters back.