Free Tool

HTML Entity Encoder & Decoder

Encode special characters to HTML entities or decode them back to text. Free, instant.

What are HTML entities?

HTML entities are special codes that represent characters that have reserved meaning in HTML or that are not available on a standard keyboard. For example,&lt; represents < and &amp; represents &. Without encoding, these characters would be interpreted as HTML tags or attributes instead of being displayed as text.

Common HTML entities

CharacterEntity NameEntity NumberDescription
&&amp;&#38;Ampersand
<&lt;&#60;Less than
>&gt;&#62;Greater than
"&quot;&#34;Double quote
'&#39;&#39;Single quote
©&copy;&#169;Copyright
®&reg;&#174;Registered

Frequently Asked Questions

When should I encode HTML entities?

Always encode user-generated content that is displayed in HTML to prevent XSS (Cross-Site Scripting) attacks. Also encode when displaying code snippets, special characters in attributes, or characters outside the ASCII range.

Is HTML encoding the same as URL encoding?

No. HTML encoding converts characters to HTML entities (e.g., & → &amp;) for safe display in web pages. URL encoding converts characters to percent-encoded values (e.g., & → %26) for safe inclusion in URLs. They serve different purposes.

Need clean, safe HTML content?

Quillly generates properly encoded, valid HTML blog content every time. Try it free.