HTML Entities

HTML Entities are used to display reserved characters and special characters on a webpage. HTML cannot display all characters directly because some are reserved for HTML syntax.

To write special characters in HTML, we use HTML Entities. An HTML entity can be written using an Entity Name (like <) or an Entity Number (like <). Entity numbers can also be in hexadecimal format (like <).

For example, to display the less-than symbol (<) in HTML, you would use &lt; or &#60; in your code.

We can also use EMOJIS in HTML using Entities. Check out the HTML Emojis List below.

HTML Reserved Characters

Reserved Characters in HTML.

  1. <
  2. >
  3. &
  4. "

Why Use HTML Entities?

HTML entities ensure that special characters are displayed correctly in browsers. Without entities, reserved characters might be interpreted as HTML code, breaking the page layout.

For example:

  • To display <p> in text, use &lt;p&gt;
  • To show a copyright symbol ©, use &copy;

HTML Entities List

HTML Entities can be written using Entity name or Entity Number (ASCII Code). To use Entity Name, type &entityname; and to use Entity Number, type &#ascii;. To write Entity Number in Hexadecimal, use &#xhexecode;. See examples

Symbol Description Entity Name Entity Number
space  &#32; 
! Exclamation Mark  &#33; 
" Quotation Mark  &#34; 
# Hash  &#35; 
$ Dollar Sign &dollar;  &#36; 
% Percent Sign  &#37; 
& Ampersand Sign &amp;  &#38; 
' Apostrophe  &#39; 
( Opening Brackets  &#40; 
) Closing Bracket  &#41; 
* Asterisk  &#42; 
+ Plus  &#43; 
, Comma  &#44; 
- Hyphen  &#45; 
. Period  &#46; 
/ Forward Slash  &#47; 
0 Zero  &#48; 
1 One  &#49; 
2 Two  &#50; 
3 Three  &#51; 
4 Four  &#52; 
5 Five  &#53; 
6 Six  &#54; 
7 Seven  &#55; 
8 Eight  &#56; 
9 Nine  &#57; 
: Colon  &#58; 
; Semi Colon  &#59; 
< Less Than &lt;  &#60; 
= Equal To  &#61; 
> Greater Than &gt;  &#62; 
? Question Mark  &#63; 
@ "At" Symbol  &#64; 
A Upper case A  &#65; 
B Upper case B  &#66; 
C Upper case C  &#67; 
D Upper case D  &#68; 
E Upper case E  &#69; 
F Upper case F  &#70; 
G Upper case G  &#71; 
H Upper case H  &#72; 
I Upper case I  &#73; 
J Upper case J  &#74; 
K Upper case K  &#75; 
L Upper case L  &#76; 
M Upper case M  &#77; 
N Upper case N  &#78; 
O Upper case O  &#79; 
P Upper case P  &#80; 
Q Upper case Q  &#81; 
R Upper case R  &#82; 
S Upper case S  &#83; 
T Upper case T  &#84; 
U Upper case U  &#85; 
V Upper case V  &#86; 
W Upper case W  &#87; 
X Upper case X  &#88; 
Y Upper case Y  &#89; 
Z Upper case Z  &#90; 
[ Brackets Open  &#91; 
\ Back Slash  &#92; 
] Brackets Close  &#93; 
^ Caret  &#94; 
_ Underscore  &#95; 
` Single Quote  &#96; 
a Lower case a  &#97; 
b Lower case b  &#98; 
c Lower case c  &#99; 
d Lower case d  &#100; 
e Lower case e  &#101; 
f Lower case f  &#102; 
g Lower case g  &#103; 
h Lower case h  &#104; 
i Lower case i  &#105; 
j Lower case j  &#106; 
k Lower case k  &#107; 
l Lower case l  &#108; 
m Lower case m  &#109; 
n Lower case n  &#110; 
o Lower case o  &#111; 
p Lower case p  &#112; 
q Lower case q  &#113; 
r Lower case r  &#114; 
s Lower case s  &#115; 
t Lower case t  &#116; 
u Lower case u  &#117; 
v Lower case v  &#118; 
w Lower case w  &#119; 
x Lower case x  &#120; 
y Lower case y  &#121; 
z Lower case z  &#122; 
{ Opening Curly Brace  &#123; 
| Vertical Line  &#124; 
} Closing Curly Brace  &#125; 
~ Tilde  &#126; 
 Delete &#127; 
Euro &euro; &#128; 
&#130; 
ƒ f with hook &#131; 
Quotation mark &#132; 
ellipsis &hellip;  &#133; 
Dagger &dagger;  &#134; 
Double dagger  &#135; 
ˆ Circumflex &circ;  &#136; 
Per mile &permil;  &#137; 
Š grapheme, s with caron &scaron;  &#138; 
Guillemet  &#139; 
Œ  &#140; 
Ž The grapheme  &#142; 
Open Single quote  &#145; 
Close Single Quote  &#146; 
Open Double Quote &quot;  &#147; 
Close Double Quote &quot;  &#148; 
Bullet  &#149; 
Hypen  &#150; 
Dash &dash;  &#151; 
˜ Tilde &tilde;  &#152; 
Trade Mark &trade;  &#153; 
š grapheme, S with caron  &#154; 
Guillemet  &#155; 
œ  &#156; 
ž grapheme  &#158; 
Ÿ  &#159; 
¡ exclamation mark  &#161; 
¢ Cent &cent;  &#162; 
£ Pound &pound;  &#163; 
¤ Currency Sign &curren;  &#164; 
¥ Yen &yen;  &#165; 
¦ broken bar &brvbar;  &#166; 
§ Section &sect;  &#167; 
¨ diaeresis  &#168; 
© Copyright &copy;  &#169; 
ª Ordinal indicator, feminine  &#170; 
« guillemets &laquo;  &#171; 
¬ Negation  &#172; 
® Registered &reg;  &#174; 
¯ Macron &macr;  &#175; 
° Degree &deg;  &#176; 
± Plus Minus &plusmn;  &#177; 
² Power 2  &#178; 
³ Power 3  &#179; 
´ Acute accent &acute;  &#180; 
µ Micro Symbol &micro;  &#181; 
Paragraph symbol &para;  &#182; 
·  &#183; 
¸  &#184; 
¹  &#185; 
º  &#186; 
» &raquo;  &#187; 
¼ One Fourth  &#188; 
½ One Half  &#189; 
¾ Three Fourth  &#190; 
¿ Inverted Question Mark  &#191; 
À agrave &agrave;  &#192; 
Á aacute &aacute;  &#193; 
 A-circumflex &Acirc;  &#194; 
à A with tilde &Atilde;  &#195; 
Ä A with umlaut &Auml;  &#196; 
Å A with ring &Aring;  &#197; 
Æ A with  &#198; 
Ç C cedilla &Ccedil;  &#199; 
È E Grave &Egrave;  &#200; 
É E Acute &Eacute;  &#201; 
Ê E Circumflex &Ecirc;  &#202; 
Ë E Umlaut &Euml;  &#203; 
Ì I acute &Iacute;  &#204; 
Í I grave &Igrave;  &#205; 
Î I acute &Icirc;  &#206; 
Ï I Umlaut &Iuml;  &#207; 
Ð E th  &#208; 
Ñ  &#209; 
Ò O grave &Ograve;  &#210; 
Ó O acute &Oacute;  &#211; 
Ô O with &Ocirc;  &#212; 
Õ O with &Otilde;  &#213; 
Ö O with &Ouml;  &#214; 
× Multiplication Sign  &#215; 
Ø &Oslash;  &#216; 
Ù U with &Ugrave;  &#217; 
Ú U with &Uacute;  &#218; 
Û U with &Ucirc;  &#219; 
Ü U with &Uuml;  &#220; 
Ý Y with  &#221; 
Þ  &#222; 
ß Beta &beta;  &#223; 
à a with  &#224; 
á a with  &#225; 
â a with  &#226; 
ã a with  &#227; 
ä a with  &#228; 
å a with  &#229; 
æ a with  &#230; 
ç  &#231; 
è e with  &#232; 
é e with  &#233; 
ê e with  &#234; 
ë e with  &#235; 
ì i with  &#236; 
í i with  &#237; 
î i with  &#238; 
ï i with  &#239; 
ð i with  &#240; 
ñ n with  &#241; 
ò o with  &#242; 
ó o with  &#243; 
ô o with  &#244; 
õ o with  &#245; 
ö o with  &#246; 
÷ Divide  &#247; 
ø oslash &oslash;  &#242; 
ù ugrave &ugrave;  &#249; 
ú uacute &uacute;  &#250; 
û ucirc &ucirc;  &#251; 
ü uuml &uuml;  &#252; 
ý  &#253; 
þ  &#254; 
ÿ yuml &yuml  &#255; 
euro &euro;  &#8364; 
Indian Rupee ................ &#8377; 
trademark &trade;  &#8482; 
Right Arrow &rarr; &#8594;
Left Arrow &larr; &#8592;
Open Curly Double Quote &ldquo; &#8220;
Close Curly Double Quote &rdquo; &#8221;
Black Spade Suit &spades; &#9829;
Black Club Suit &clubs; &#9827;
Black Heart Suit &hearts; &#9827;
Black Diamond Suit &diams; &#9830;

Emoji Unicode or Entities

HTML Entities can also be used to display HTML Emojis. Emojis are written using hexadecimal Unicode values. For example, 😁 displays 😁.

Emoji entities may not be supported in all web browsers or older operating systems, as they are relatively new. Always test compatibility.

Emoji Emoji Entity
😁  &#x1F601; 
😂  &#x1F602; 
😃  &#x1F603; 
😄  &#x1F604; 
😅  &#x1F605; 
😆  &#x1F606; 
😇  &#x1F607; 
😈  &#x1F608; 
😉  &#x1F609; 
😐  &#x1F610; 
😑  &#x1F611; 
😒  &#x1F612; 
😓  &#x1F613; 
😔  &#x1F614; 
😕  &#x1F615; 
😖  &#x1F616; 
😗  &#x1F617; 
😘  &#x1F618; 
😙  &#x1F619; 
😠  &#x1F620; 
😡  &#x1F621; 
😢  &#x1F622; 
😣  &#x1F623; 
😤  &#x1F624; 
😥  &#x1F625; 
😦  &#x1F626; 
😧  &#x1F627; 
😨  &#x1F628; 
😩  &#x1F629; 
😰  &#x1F630; 
😱  &#x1F631; 
😲  &#x1F632; 
😳  &#x1F633; 
😴  &#x1F634; 
😵  &#x1F635; 
😶  &#x1F636; 
😷  &#x1F637; 
😸  &#x1F638; 
😹  &#x1F639; 
🙀  &#x1F640; 
🙁  &#x1F641; 
🙂  &#x1F642; 
🙃  &#x1F643; 
🙄  &#x1F644; 
🙅  &#x1F645; 
🙆  &#x1F646; 
🙇  &#x1F647; 
🙈  &#x1F648; 
🙉  &#x1F649; 

There are thousands of HTML entities beyond what's listed here. You can experiment with different ASCII or Unicode numbers to discover more. For a full reference, check official W3C documentation.


Search Entity by ASCII Code

You can search for an HTML entity by entering an ASCII or Unicode code number below. The corresponding character will appear next to the input.