An HTML entity, called a character reference in the HTML standard, is a code that starts with an ampersand and ends with a semicolon, such as &, and it makes the browser show a character that is reserved or hard to type. Every character can be written in three ways: by name (©), by decimal number (©) or by hex number (©), and all three show ©. The tables below were checked against the WHATWG named character list on 23 November 2026.
The five characters to escape first
| Character | Named | Decimal | Hex | Why it matters |
|---|---|---|---|---|
| & | & | & | & | Starts every character reference |
| < | < | < | < | Starts a tag |
| > | > | > | > | Ends a tag |
| " | " | " | " | Closes a double-quoted attribute |
| ' | ' | ' | ' | Closes a single-quoted attribute |
Spaces and invisible characters
| Character | Named | Decimal | Hex |
|---|---|---|---|
| Non-breaking space | |   |   |
| En space |   |   |   |
| Em space |   |   |   |
| Thin space |   |   |   |
| Figure space |   |   |   |
| Soft hyphen | ­ | ­ | ­ |
| Zero width non-joiner | ‌ | ‌ | ‌ |
| Zero width joiner | ‍ | ‍ | ‍ |
Punctuation and typography
| Character | Named | Decimal | Hex |
|---|---|---|---|
| – en dash | – | – | – |
| — em dash | — | — | — |
| ‘ ’ single quotes | ‘ ’ | ‘ ’ | ‘ ’ |
| “ ” double quotes | “ ” | “ ” | “ ” |
| « » guillemets | « » | « » | « » |
| … ellipsis | … | … | … |
| • bullet | • | • | • |
| · middle dot | · | · | · |
| § section sign | § | § | § |
| ¶ pilcrow | ¶ | ¶ | ¶ |
| † dagger | † | † | † |
| ¡ ¿ inverted marks | ¡ ¿ | ¡ ¿ | ¡ ¿ |
Currency and legal symbols
| Character | Named | Decimal | Hex |
|---|---|---|---|
| © copyright | © | © | © |
| ® registered | ® | ® | ® |
| ™ trademark | ™ | ™ | ™ |
| € euro | € | € | € |
| £ pound | £ | £ | £ |
| ¥ yen | ¥ | ¥ | ¥ |
| ¢ cent | ¢ | ¢ | ¢ |
| $ dollar | $ | $ | $ |
Maths and Greek letters
| Character | Named | Decimal | Hex |
|---|---|---|---|
| ° degree | ° | ° | ° |
| ± plus-minus | ± | ± | ± |
| × multiply | × | × | × |
| ÷ divide | ÷ | ÷ | ÷ |
| ½ ¼ ¾ fractions | ½ ¼ ¾ | ½ ¼ ¾ | ½ ¼ ¾ |
| ≠ not equal | ≠ | ≠ | ≠ |
| ≤ ≥ less or equal, greater or equal | ≤ ≥ | ≤ ≥ | ≤ ≥ |
| ≈ almost equal | ≈ | ≈ | ≈ |
| ∞ infinity | ∞ | ∞ | ∞ |
| ∑ sum | ∑ | ∑ | ∑ |
| √ square root | √ | √ | √ |
| µ micro | µ | µ | µ |
| α β π alpha, beta, pi | α β π | α β π | α β π |
| Ω capital omega | Ω | Ω | Ω |
Arrows, ticks and other symbols
| Character | Named | Decimal | Hex |
|---|---|---|---|
| ← → left and right arrows | ← → | ← → | ← → |
| ↑ ↓ up and down arrows | ↑ ↓ | ↑ ↓ | ↑ ↓ |
| ↔ left-right arrow | ↔ | ↔ | ↔ |
| ⇒ double right arrow | ⇒ | ⇒ | ⇒ |
| ✓ check mark | ✓ | ✓ | ✓ |
| ✗ ballot cross | ✗ | ✗ | ✗ |
| ★ ☆ filled and outline star | ★ ☆ | ★ ☆ | ★ ☆ |
| ♥ heart | ♥ | ♥ | ♥ |
| ☎ telephone | ☎ | ☎ | ☎ |
Not every symbol has a name. The WHATWG list has no named reference for a cloud or a sun, for example, so for those you use the numeric form of the Unicode code point, or simply type the character itself in a page saved as UTF-8.
Syntax rules from the HTML standard
- Named references are case-sensitive. The name must match the list exactly, so
Ωgives Ω andωgives ω. - End with a semicolon. The standard says a named reference must be terminated by a semicolon. The official list also keeps 106 older names without the semicolon, such as
©and , for legacy pages, but new HTML should always include it. - Decimal form:
&#, one or more digits, then;. - Hex form:
&#xor&#X, one or more hex digits, then;. - Forbidden code points: numeric references may point to any code point except U+000D carriage return, noncharacters and control characters other than ASCII whitespace.
- Ambiguous ampersands are errors. An ampersand followed by letters or digits and a semicolon that do not match any name, such as
&price;, is not allowed in text or attribute values. Write a lone ampersand as&to be safe.
| Figure from the WHATWG list | Value |
|---|---|
| Entries in entities.json | 2,231 |
| Entries ending in a semicolon | 2,125 |
| Legacy entries without a semicolon | 106 |
©. Switch it to Decode to turn a string full of & and ' back into readable text.Entities escape characters inside HTML. Characters inside a web address need percent-encoding instead, which the URL Encoder and Decoder handles.
Sources and dates
| Page | Checked | Used for |
|---|---|---|
| WHATWG HTML named character references (entities.json) | 23 November 2026 | Every name and code point in the tables, and the entry counts |
| WHATWG HTML Standard: the HTML syntax | 23 November 2026 | Character reference forms, the semicolon rule, case sensitivity, forbidden code points and ambiguous ampersands |
Frequently asked questions
How many HTML entities are there?
The WHATWG entities.json file checked on 23 November 2026 has 2,231 entries. 2,125 of them end in a semicolon and 106 are legacy forms of the same names without it.
What is the HTML entity for a non-breaking space?
Use or the numeric forms   and  . All three insert U+00A0, a space that stops the browser from breaking the line at that point.
Are HTML entities case-sensitive?
Yes. The HTML standard says the name must use the same case as the official list, so Ω and ω are different characters.
Do I need the semicolon at the end of an HTML entity?
Yes for new pages. The standard requires the semicolon; the 106 names that also work without it are kept only for legacy content.
What is the HTML entity for a check mark?
✓ gives a check mark, U+2713, which you can also write as ✓ or ✓.