Developer
HTML Entities — Complete Reference and Usage Guide
Learn what HTML entities are, when to use them, and how to encode/decode special characters with our free online tool.
HTML entities are special codes used to represent characters that have reserved meanings in HTML or characters that cannot be typed on a standard keyboard.
What Are HTML Entities?
HTML entities start with an ampersand (&) and end with a semicolon (;). They represent characters that would otherwise be interpreted as HTML markup:
| Character | Entity | Description |
|---|---|---|
| < | < | Less than |
| > | > | Greater than |
| & | & | Ampersand |
| " | " | Double quote |
| ' | ' | Single quote |
| Non-breaking space | |
| © | © | Copyright |
| ® | ® | Registered trademark |
| € | € | Euro sign |
| £ | £ | Pound sign |
When to Use HTML Entities
1. Reserved Characters
<!-- Wrong -->
<!-- Right -->
<p>5 < 10 and 10 > 5</p>
`
2. Special Symbols
<p>Price: €50 or £40</p>
<p>Copyright © 2025</p>
3. Invisible Characters
<p>100 km/h</p>
Numeric Entities
You can also use numeric codes:
| Character | Decimal | Hexadecimal |
|---|---|---|
| A | A | A |
| © | © | © |
| € | € | € |
Common Mistakes
- Forgetting the semicolon —
<instead of< - Double encoding —
&lt;instead of< - Encoding in attributes —
title="5 < 10"is correct - Not encoding in code blocks — Inside
<pre>and<code>, entities are still interpreted
Try It Online
Use our free HTML entities encoder/decoder to encode or decode HTML entities instantly — no installation needed.