HTML Special Characters Reference: Complete Entity Code Table
What Are HTML Special Characters?
HTML special characters are symbols that either have reserved meaning in HTML (like < and >) or fall outside the standard ASCII range. You represent them with entity codes so browsers render them correctly without misinterpreting your markup.
This reference organizes the most-used special characters by category, with all three entity formats — named, decimal, and hexadecimal.
Common Symbols
| Char | Named | Decimal | Hex | Description |
|---|---|---|---|---|
| & | & | & | & | Ampersand |
| < | < | < | < | Less than |
| > | > | > | > | Greater than |
| " | " | " | " | Double quote |
| ' | ' | ' | ' | Apostrophe / single quote |
|   |   | Non-breaking space | |
| | ­ | ­ | ­ | Soft hyphen |
The first five — &, <, >, ", ' — are the characters you must encode any time they appear as data inside HTML. Omitting them can break parsing or open XSS vulnerabilities.
Currency Symbols
| Char | Named | Decimal | Hex | Description |
|---|---|---|---|---|
| $ | — | $ | $ | Dollar |
| ¢ | ¢ | ¢ | ¢ | Cent |
| £ | £ | £ | £ | Pound sterling |
| ¥ | ¥ | ¥ | ¥ | Yen / Yuan |
| € | € | € | € | Euro |
| ₹ | — | ₹ | ₹ | Indian rupee |
| ₩ | — | ₩ | ₩ | Korean won |
| ₽ | — | ₽ | ₽ | Russian ruble |
Note that many currency symbols lack named entities. Use decimal or hexadecimal codes for those.
Mathematical Symbols
| Char | Named | Decimal | Hex | Description |
|---|---|---|---|---|
| + | — | + | + | Plus |
| − | − | − | − | Minus |
| × | × | × | × | Multiplication |
| ÷ | ÷ | ÷ | ÷ | Division |
| = | — | = | = | Equals |
| ≠ | — | ≠ | ≠ | Not equal |
| ≤ | ≤ | ≤ | ≤ | Less than or equal |
| ≥ | ≥ | ≥ | ≥ | Greater than or equal |
| ± | ± | ± | ± | Plus-minus |
| ∞ | ∞ | ∞ | ∞ | Infinity |
| √ | — | √ | √ | Square root |
| ∑ | — | ∑ | ∑ | Summation |
| π | — | π | π | Pi |
Arrow Symbols
| Char | Named | Decimal | Hex | Description |
|---|---|---|---|---|
| ← | ← | ← | ← | Left arrow |
| ↑ | ↑ | ↑ | ↑ | Up arrow |
| → | → | → | → | Right arrow |
| ↓ | ↓ | ↓ | ↓ | Down arrow |
| ↔ | ↔ | ↔ | ↔ | Left-right arrow |
| ⇐ | ⇐ | ⇐ | ⇐ | Double left arrow |
| ⇒ | ⇒ | ⇒ | ⇒ | Double right arrow |
Typography and Punctuation
| Char | Named | Decimal | Hex | Description |
|---|---|---|---|---|
| © | © | © | © | Copyright |
| ® | ® | ® | ® | Registered trademark |
| ™ | ™ | ™ | ™ | Trademark |
| § | § | § | § | Section |
| ¶ | ¶ | ¶ | ¶ | Paragraph |
| ° | ° | ° | ° | Degree |
| · | · | · | · | Middle dot |
| … | — | … | … | Ellipsis |
| – | – | – | – | En dash |
| — | — | — | — | Em dash |
| « | « | « | « | Left angle quote |
| » | » | » | » | Right angle quote |
| ' | ‘ | ‘ | ‘ | Left single quote |
| ' | ’ | ’ | ’ | Right single quote |
| " | “ | “ | “ | Left double quote |
| " | ” | ” | ” | Right double quote |
How to Use Entity Codes
Insert the entity directly into your HTML where you want the character to appear:
<p>Price: €49.99</p>
<p>Temperature: 72°F</p>
<p>Click Next → to continue</p>
For characters without a named entity, use the decimal or hex form:
<p>Not equal: a ≠ b</p>
<p>Rupee: ₹1,000</p>
Browser Compatibility Notes
All modern browsers support the named, decimal, and hexadecimal entity formats described above. Here are a few edge cases to keep in mind:
'is defined in HTML5 and XML but was not valid in HTML4. Use'if you need maximum backward compatibility.- Numeric entities always work across browsers and HTML versions, even when named entities are unsupported.
- UTF-8 encoding makes most entities optional for display purposes — you can paste the literal character if your document declares
<meta charset="utf-8">. However, you still need entities for<,>,&,", and'to avoid parsing issues. - Email templates may not support all named entities. Prefer numeric codes for reliable rendering across email clients.
Key Takeaways
- Use named entities for readability when they exist; fall back to decimal or hex codes
- The five critical entities —
&,<,>,",'— must always be encoded in HTML data - Currency, math, arrow, and typographic symbols frequently require entity codes in web content
- Numeric entities work universally and cover the full Unicode range
- UTF-8 charset lets you insert most characters directly, but reserved characters still need encoding
Related Guides
Try It Yourself
Look up, encode, and decode HTML special characters instantly with our free HTML Entity Encoder/Decoder tool.