HTML entities (also called character entities or escape codes) let you display reserved characters, special symbols, and invisible characters in HTML documents. Whether you need to show a literal < without triggering a tag, display a copyright symbol, or include an arrow in your UI, this reference has the code.
Each table below lists the entity name, numeric code (decimal and hex), and the rendered character. Bookmark this page for quick lookup during frontend development.
💡 How to Use
Use entity names like & or numeric codes like & or & directly in your HTML. Most modern editors suggest entity names as you type.
Common Symbols
These are the most frequently used HTML entities. Every developer should know &, <, >, and by heart.
| Character | Entity Name | Decimal Code | Hex Code | Description |
|---|---|---|---|---|
| & | & | & | & | Ampersand (must escape in HTML) |
| < | < | < | < | Less than (opens HTML tags) |
| > | > | > | > | Greater than (closes HTML tags) |
| " | " | " | " | Double quote (attribute delimiters) |
| ' | ' | ' | ' | Apostrophe / single quote |
| |   |   | Non-breaking space (prevents line break) | |
| © | © | © | © | Copyright symbol |
| ® | ® | ® | ® | Registered trademark |
| ™ | ™ | ™ | ™ | Trademark symbol |
| § | § | § | § | Section symbol |
| ¶ | ¶ | ¶ | ¶ | Pilcrow / paragraph mark |
| ° | ° | ° | ° | Degree symbol |
| † | † | † | † | Dagger (footnotes) |
| ‡ | ‡ | ‡ | ‡ | Double dagger |
| • | • | • | • | Bullet point |
| … | … | … | … | Horizontal ellipsis |
| ‰ | ‰ | ‰ | ‰ | Per mille (per thousand) |
| ℠ | &scaps; | ℠ | ℠ | Service mark |
Currency Symbols
Display currency signs from around the world. Note that some symbols (like the Bitcoin sign) may not render in older browsers without a numeric code.
| Character | Entity Name | Decimal Code | Hex Code | Description |
|---|---|---|---|---|
| $ | (none needed) | $ | $ | Dollar (not reserved, no entity needed) |
| ¢ | ¢ | ¢ | ¢ | Cent |
| £ | £ | £ | £ | Pound sterling |
| ¤ | ¤ | ¤ | ¤ | Generic currency |
| ¥ | ¥ | ¥ | ¥ | Yen / Yuan |
| € | € | € | € | Euro |
| ₤ | &lira; | ₤ | ₤ | Lira sign |
| ₱ | (none) | ₱ | ₱ | Philippine peso |
| ₹ | (none) | ₹ | ₹ | Indian rupee |
| ₩ | (none) | ₩ | ₩ | South Korean won |
| ₪ | (none) | ₪ | ₪ | Israeli shekel |
| ₫ | (none) | ₫ | ₫ | Vietnamese dong |
| ₮ | (none) | ₮ | ₮ | Mongolian tugrik |
| ₽ | (none) | ₽ | ₽ | Russian ruble |
| ₿ | (none) | ₿ | ₿ | Bitcoin |
| ₣ | (none) | ₣ | ₣ | French franc |
Arrows
Arrow symbols for navigation, direction indicators, and UI elements. Both simple and double-lined variants are available.
| Character | Entity Name | Decimal Code | Hex Code | Description |
|---|---|---|---|---|
| ← | ← | ← | ← | Left arrow |
| ↑ | ↑ | ↑ | ↑ | Up arrow |
| → | → | → | → | Right arrow |
| ↓ | ↓ | ↓ | ↓ | Down arrow |
| ↔ | ↔ | ↔ | ↔ | Left-right arrow |
| ↕ | ↕ | ↕ | ↕ | Up-down arrow |
| ↖ | ↖ | ↖ | ↖ | North-west arrow |
| ↗ | ↗ | ↗ | ↗ | North-east arrow |
| ↘ | ↘ | ↘ | ↘ | South-east arrow |
| ↙ | ↙ | ↙ | ↙ | South-west arrow |
| ⇐ | ⇐ | ⇐ | ⇐ | Left double arrow |
| ⇒ | ⇒ | ⇒ | ⇒ | Right double arrow (implies) |
| ⇔ | ⇔ | ⇔ | ⇔ | Left-right double arrow (iff) |
| ► | ▸ | ▸ | ▶ | Right-pointing triangle |
| ◄ | ◂ | ◀ | ◀ | Left-pointing triangle |
| ▲ | ▴ | ▴ | ▴ | Up-pointing triangle |
| ▼ | ▾ | ▾ | ▾ | Down-pointing triangle |
Mathematical Operators & Symbols
Common math symbols for equations, comparisons, fractions, and logic. Use numeric codes for symbols without named entities.
| Character | Entity Name | Decimal Code | Hex Code | Description |
|---|---|---|---|---|
| × | × | × | × | Multiplication sign |
| ÷ | ÷ | ÷ | ÷ | Division sign |
| ± | ± | ± | ± | Plus-minus |
| − | − | − | − | Minus sign (not hyphen) |
| ∑ | ∑ | ∑ | ∑ | N-ary summation |
| ∏ | ∏ | ∏ | ∏ | N-ary product |
| ∫ | ∫ | ∫ | ∫ | Integral |
| √ | √ | √ | √ | Square root |
| ∞ | ∞ | ∞ | ∞ | Infinity |
| ∠ | ∠ | ∠ | ∠ | Angle |
| ⊥ | ⊥ | ⊥ | ⊥ | Perpendicular / up tack |
| ∴ | ∴ | ∴ | ∴ | Therefore |
| ∵ | ∵ | ∵ | ∵ | Because |
| ∼ | ∼ | ∼ | ∼ | Tilde operator (similar to) |
| ≅ | ≅ | ≅ | ≅ | Approximately equal to |
| ≈ | ≈ | ≈ | ≈ | Almost equal to |
| ≠ | ≠ | ≠ | ≠ | Not equal to |
| ≡ | ≡ | ≡ | ≡ | Identical to |
| ≤ | ≤ | ≤ | ≤ | Less-than or equal to |
| ≥ | ≥ | ≥ | ≥ | Greater-than or equal to |
| ½ | ½ | ½ | ½ | Fraction one-half |
| ¼ | ¼ | ¼ | ¼ | Fraction one-quarter |
| ¾ | ¾ | ¾ | ¾ | Fraction three-quarters |
| π | π | π | π | Greek pi |
| μ | μ | μ | μ | Mu (micro symbol) |
Punctuation & Special Characters
Dashes, quotes, spaces, and other typographic characters for polished text.
| Character | Entity Name | Decimal Code | Hex Code | Description |
|---|---|---|---|---|
| – | – | – | – | En dash (number ranges) |
| — | — | — | — | Em dash (parenthetical) |
| ‘ | ‘ | ‘ | ‘ | Left single quotation mark |
| ’ | ’ | ’ | ’ | Right single quotation mark |
| “ | “ | “ | “ | Left double quotation mark |
| ” | ” | ” | ” | Right double quotation mark |
| « | « | « | « | Left-pointing double angle (guillemet) |
| » | » | » | » | Right-pointing double angle (guillemet) |
| ‹ | ‹ | ‹ | ‹ | Single left-pointing angle quote |
| › | › | › | › | Single right-pointing angle quote |
| ¡ | ¡ | ¡ | ¡ | Inverted exclamation mark |
| ¿ | ¿ | ¿ | ¿ | Inverted question mark |
| ¦ | ¦ | ¦ | ¦ | Broken vertical bar |
| ¬ | ¬ | ¬ | ¬ | Not sign |
| | ­ | ­ | ­ | Soft hyphen |
|   |   |   | En space (half an em) | |
|   |   |   | Em space (width of capital M) | |
|   |   |   | Thin space |
Greek Letters (Common)
Frequently used Greek letters in math, science, and engineering contexts.
| Character | Entity Name | Decimal Code | Hex Code | Description |
|---|---|---|---|---|
| α | α | α | α | Alpha |
| β | β | β | β | Beta |
| γ | γ | γ | γ | Gamma |
| δ | δ | δ | δ | Delta |
| ε | ε | ε | ε | Epsilon |
| θ | θ | θ | θ | Theta |
| λ | λ | λ | λ | Lambda |
| σ | σ | σ | σ | Sigma |
| φ | φ | φ | φ | Phi |
| ω | ω | ω | ω | Omega |
🎯 Quick Reference: Most Common Entities
&
&<
<>
>"
"
©
©®
®€
€Common Mistakes & How to Avoid Them
Entities look simple, but a few recurring mistakes cause broken pages, escaped-looking text, and subtle layout bugs. Here are the five most common ones.
1. Forgetting to escape the ampersand itself
The & entity is special: because & starts every entity, a literal ampersand in your text (like AT&T or R&D) must be written as &. Otherwise the browser may try to parse &T or &D as an entity and render unexpected characters.
<!-- BUG: ambiguous, may render wrong -->
<p>Acme & Sons</p>
<!-- FIX: escape the ampersand -->
<p>Acme & Sons</p>2. Dropping the trailing semicolon
Writing © without the semicolon works in HTML5 in some contexts but is invalid in XHTML and risky inside attribute values. Always include the semicolon: ©. The same applies to numeric references — © is correct, © is not.
3. Double-escaping entities
If your page shows &lt; as literal text instead of a < character, the content was escaped twice — once by your template engine or framework (React, Vue, Handlebars escape by default), then again by you. Pick one layer: let the framework escape user input, and never feed already-escaped strings into dangerouslySetInnerHTML or innerHTML.
// BUG: React already escapes, so this renders "<" as text
<div>{'<div>'}</div>
// FIX: write the raw character — React escapes it safely
<div>{'<div>'}</div>
// BUG: double-escaping user input for innerHTML
el.innerHTML = escapeHtml(userInput).replace(/&/g, '&');4. Using for layout spacing
Stacking entities to indent or align text works visually but breaks on narrow screens and with different font metrics. A non-breaking space also stops text from wrapping, which can push layout unexpectedly. Use CSS margin, padding, or gap for spacing instead — reserve for keeping two words on the same line (for example, "10 kg" or "Chapter 5").
5. Confusing decimal and hex numeric references
& (decimal) and & (hex) both render &, but they are not interchangeable digits. Writing 8 renders the character 8, not &. Check the prefix: #x means hexadecimal, plain # means decimal.
Frequently Asked Questions
Why use HTML entities instead of typing the character directly?
<, >, and & would be interpreted as markup; encoding safety — an entity works even if the file encoding drops the character (for example, a smart quote in a document declared as ASCII); and reliability — invisible characters such as the non-breaking space are hard to type and easy to mistake for a regular space.What is the difference between and a regular space?
, U+00A0) prevents the browser from wrapping a line at that point, so "10 kg" stays together. It also does not collapse: HTML collapses runs of regular spaces into one, but multiple entities each keep their width, which is why they are often misused for indentation. Use them for preventing breaks, not for layout.What is the difference between &, &, and &?
& character. & is the named entity — readable but only available for characters that have a defined name. & is the decimal numeric reference and & the hex one; numeric references work for any Unicode code point, even ones without a name. Use named entities for readability and numeric references for obscure symbols.Do I need to escape quotes inside HTML attributes?
<a title="Say "hi""> the inner double quotes must be ". Inside text content, quotes are harmless and do not need escaping. Escaping them everywhere is never wrong, but it makes source harder to read — escape only where required, and prefer single quotes as attribute delimiters when the value contains double quotes.Why does my page show &lt; as literal text instead of <?
&lt; in your source, the browser parses & into & and shows the literal text <. This usually happens when a template engine or framework that already escapes output receives pre-escaped input, or when user input is escaped more than once. Escape at exactly one layer.Related Tools: Base64 Encoder/Decoder · JSON Formatter · Regex Tester