What is an HTML entity?
An HTML entity is a short code that stands in for a character inside an HTML page. It always starts with an & and ends with a ; — in between is either a name, like copy, or a number, like #169. The browser reads the code and shows the character instead. You need entities for three jobs: characters that HTML reserves for its own markup (< and > would start a tag, & would start another entity), characters you cannot see (the non-breaking space), and symbols that are not on your keyboard (©, €, →, π).
The 5 entities you must know
If you remember nothing else from this page, remember these five — they cover almost every real-world use:
| Character | Entity name | Decimal | Hex | What it is |
|---|---|---|---|---|
| & | & | & | & | Ampersand — use it for every & in your text |
| < | < | < | < | Less-than — shows a < without starting a tag |
| > | > | > | > | Greater-than — shows a > without closing a tag |
| " | " | " | " | Double quote — inside attribute values |
| |   |   | Non-breaking space — stops the browser collapsing it |
Complete HTML entities reference table
Every code below is copy-ready: the Entity name column is what you type, Decimal and Hex are the numeric forms that work anywhere a name does. Named entities are case-sensitive — © and © are different codes.
Reserved characters & punctuation
| Character | Entity name | Decimal | Hex | What it is |
|---|---|---|---|---|
| ' | ' | ' | ' | Apostrophe (HTML5 — use ' for older HTML4 pages) |
| ¡ | ¡ | ¡ | ¡ | Inverted exclamation mark |
| ¿ | ¿ | ¿ | ¿ | Inverted question mark |
| § | § | § | § | Section sign |
| ¶ | ¶ | ¶ | ¶ | Paragraph sign |
| · | · | · | · | Middle dot |
| « | « | « | « | Left guillemet |
| » | » | » | » | Right guillemet |
| ‘ | ‘ | ‘ | ‘ | Left single quote |
| ’ | ’ | ’ | ’ | Right single quote |
| “ | “ | “ | “ | Left double quote |
| ” | ” | ” | ” | Right double quote |
| – | – | – | – | En dash |
| — | — | — | — | Em dash |
| … | … | … | … | Horizontal ellipsis |
| • | • | • | • | Bullet |
| † | † | † | † | Dagger |
| ‡ | ‡ | ‡ | ‡ | Double dagger |
| ‰ | ‰ | ‰ | ‰ | Per mille |
Currency, legal & units
| Character | Entity name | Decimal | Hex | What it is |
|---|---|---|---|---|
| ¢ | ¢ | ¢ | ¢ | Cent sign |
| £ | £ | £ | £ | Pound sign |
| ¥ | ¥ | ¥ | ¥ | Yen sign |
| € | € | € | € | Euro sign |
| $ | $ | $ | $ | Dollar sign |
| © | © | © | © | Copyright sign |
| ® | ® | ® | ® | Registered trade mark |
| ™ | ™ | ™ | ™ | Trade mark sign |
| ° | ° | ° | ° | Degree sign |
| ± | ± | ± | ± | Plus-minus sign |
| µ | µ | µ | µ | Micro sign |
Math symbols
| Character | Entity name | Decimal | Hex | What it is |
|---|---|---|---|---|
| × | × | × | × | Multiplication sign |
| ÷ | ÷ | ÷ | ÷ | Division sign |
| ¼ | ¼ | ¼ | ¼ | One quarter |
| ½ | ½ | ½ | ½ | One half |
| ¾ | ¾ | ¾ | ¾ | Three quarters |
| ≠ | ≠ | ≠ | ≠ | Not equal to |
| ≤ | ≤ | ≤ | ≤ | Less-than or equal to |
| ≥ | ≥ | ≥ | ≥ | Greater-than or equal to |
| ∞ | ∞ | ∞ | ∞ | Infinity |
| ∑ | ∑ | ∑ | ∑ | Summation |
| √ | √ | √ | √ | Square root |
Arrows
| Character | Entity name | Decimal | Hex | What it is |
|---|---|---|---|---|
| ← | ← | ← | ← | Leftwards arrow |
| ↑ | ↑ | ↑ | ↑ | Upwards arrow |
| → | → | → | → | Rightwards arrow |
| ↓ | ↓ | ↓ | ↓ | Downwards arrow |
| ↔ | ↔ | ↔ | ↔ | Left-right arrow |
Greek letters
| Character | Entity name | Decimal | Hex | What it is |
|---|---|---|---|---|
| α | α | α | α | Greek small letter alpha |
| β | β | β | β | Greek small letter beta |
| γ | γ | γ | γ | Greek small letter gamma |
| δ | δ | δ | δ | Greek small letter delta |
| π | π | π | π | Greek small letter pi |
| ω | ω | ω | ω | Greek small letter omega |
| Σ | Σ | Σ | Σ | Greek capital letter sigma |
| Ω | Ω | Ω | Ω | Greek capital letter omega |
Shapes & card suits
| Character | Entity name | Decimal | Hex | What it is |
|---|---|---|---|---|
| ♥ | ♥ | ♥ | ♥ | Black heart suit |
| ♦ | ♦ | ♦ | ♦ | Black diamond suit |
| ♣ | ♣ | ♣ | ♣ | Black club suit |
| ♠ | ♠ | ♠ | ♠ | Black spade suit |
| ☆ | ☆ | ★ | ★ | Black star |
| ✓ | ✓ | ✓ | ✓ | Check mark |
Named vs numeric entities: which one should you use?
Named entities (©) are easier to read in your source code — anyone scanning the HTML knows what the character is. Numeric entities (© or ©) work everywhere a name does and cover characters that have no name at all. Rule of thumb: use the name when one exists and your team will read the code; use the number when you need a character with no named form. Both must end with a semicolon — without it, the browser may print the code as literal text.
Convert text to HTML entities in 3 steps
- Open the HTML Entity Encoder and paste your text — a sentence, a code sample, a whole paragraph.
- Hit Encode. Reserved characters and special symbols are replaced with their entity codes; switch to Decode to turn entities back into plain text.
- Copy the output with the copy button and paste it straight into your HTML.
Honest limits
- Modern pages rarely need entities for ordinary letters. A page saved as UTF-8 can type ©, € or ñ directly — entities are still required for
<,>and&, which HTML would read as markup. - The encoder works on text you paste. It does not scan a whole website or rewrite your files — convert the snippet you need, then paste it in.
'is HTML5. On an old HTML4 page, use'for the apostrophe instead.- Entities are case-sensitive.
©works;©is a different code and means something else.
Frequently asked questions
What is an HTML entity?
A code that stands in for a character in HTML. It starts with &, ends with ;, and holds a name (like copy) or a number (like #169) in between. The browser shows the character instead of the code.
What are the 5 most common HTML entities?
The ampersand (&), less-than (<), greater-than (>), double quote (") and non-breaking space ( ). Together they cover almost every everyday use.
Do I need a semicolon after an entity?
Yes — always end the code with a semicolon. Without it the browser may print the code itself as plain text instead of the character.
Are HTML entities case-sensitive?
Yes. The name has to match exactly: © is the copyright sign, while © is a different code. The same goes for hex digits — © and © both work, but the letter casing of the name matters.
Can I just type © directly instead of using an entity?
Yes, on a page saved as UTF-8 you can type ©, € or ñ directly and they will display fine. Entities are still required for <, > and &, because HTML reads those as markup, not text.
How do I convert text to HTML entities?
Paste the text into the free HTML Entity Encoder, hit Encode, and copy the result. The tool also decodes entities back to plain text, and everything runs in your browser — nothing is uploaded.
Try it now
Ready? Encode text to HTML entities — free, instant, no signup, and your text never leaves your browser.