HTML Entity Encoder / Decoder

Encode special characters to HTML entities or decode entities back to readable text.

Common HTML Entities Reference

&&
<&lt;
>&gt;
©&copy;
®&reg;
&trade;
&euro;
&#8377;
&mdash;
&hellip;
&larr;
&rarr;

What Are HTML Entities?

HTML entities are special codes that represent characters which have meaning in HTML syntax or cannot be typed directly. They begin with & and end with ;. For example, the less-than sign is written as &lt; because a raw < would be interpreted as an HTML tag. The ampersand itself is &amp; to avoid being mistaken for the start of another entity.

When to Encode HTML Entities

Encode HTML entities whenever you display user-generated content on a web page (to prevent XSS attacks), when showing HTML code as visible text in tutorials, when including special symbols like ©, ™, €, or ₹, and when writing content with characters reserved by HTML: <, >, &, ", and '.

Frequently Asked Questions

Special codes starting with & and ending with ; that represent characters with special meaning in HTML.
When displaying user input, showing HTML code as text, including special symbols, or preventing XSS attacks.
Copied!