Go to main content
Bypass navigation bar HTML Reference HTML Tags HTML Tutorials
Bypass language selection
Bypass location bar

Location: Home > HTML Reference > Character reference

Bypass main content

Character reference

A character reference is a small piece of code used to represent some characters in HTML documents. Mainly used to insert symbols that don't belong to the document's character encoding (or, in many cases, symbols that are hard to input), character references can be inserted using a regular expression. In fact, each character reference can be inserted in three different ways:

  • By its entity name: Every character reference has an entity asigned. The format to insert a symbol by its entity name is composed by an ampersand symbol ("&") followed by the entity name and a semicolon (";"). For example, the pound symbol ("£") can be encoded as "£".
  • By its decimal value: As well as with entities, a unique number is asociated with each character reference. The format is composed by the ampersand symbol ("&") followed by the numeral symbol ("#"), the asociated number and a semicolon (";"). For example, the pound symbol ("£") is encoded as "£".
  • By its hexadecimal value: This is exactly as the decimal notation with the difference that the number is in hexadecimal format and a lowercase "x" letter is added after the umeral symbol ("#"). Letters in the hexadecimal numbers must be uppercase. For example, the code for the pound symbol ("£") is "£".

Many browsers don't provide support for all character entities and they usually render a white square ("") or a question mark ("?" or "�") instead. On the other hand, the hexadecimal notation for character references is not supported by many browsers, making of it a poorly fiable way of reproducing symbols. With this said, it becomes clear that the better way to represent character references is using the decimal notation.

Character reference tables

Below are three lists of character references showing all three ways to write them and the representation of each symbol available for HTML documents. XHTML documents include the apostrophe symbol, refered as "'" (by its entity name), "'" (by its decimal value) and "&#x27" (by its hexadecimal value).

Note that, as this character reference has been recently introduced, many browsers still can't process it by its entity name, so the decimal representation is the most recommended.

Markup-significant and internationalization

NameDecimalHexaChar
" " " "
& & & &
&lt; &#60; &#x3C; <
&gt; &#62; &#x3E; >
&OElig; &#338; &#x152; Œ
&oelig; &#339; &#x153; œ
&Scaron; &#352; &#x160; Š
&scaron; &#353; &#x161; š
&Yuml; &#376; &#x178; Ÿ
&circ; &#710; &#x2C6; ˆ
&tilde; &#732; &#x2DC; ˜
&ensp; &#8194; &#x2002;  
&emsp; &#8195; &#x2003;  
&thinsp; &#8201; &#x2009;  
&zwnj; &#8204; &#x200C;
&zwj; &#8205; &#x200D;
&lrm; &#8206; &#x200E;
&rlm; &#8207; &#x200F;
&ndash; &#8211; &#x2013;
&mdash; &#8212; &#x2014;
&lsquo; &#8216; &#x2018;
&rsquo; &#8217; &#x2019;
&sbquo; &#8218; &#x201A;
&ldquo; &#8220; &#x201C;
&rdquo; &#8221; &#x201D;
&bdquo; &#8222; &#x201E;
&dagger; &#8224; &#x2020;
&Dagger; &#8225; &#x2021;
&permil; &#8240; &#x2030;
&lsaquo; &#8249; &#x2039;
&rsaquo; &#8250; &#x203A;
&euro; &#8364; &#x20AC;

ISO 8859-1 (Latin 1)

NameDecimalHexaChar
&nbsp; &#160; &#xA0;  
&iexcl; &#161; &#xA1; ¡
&cent; &#162; &#xA2; ¢
&pound; &#163; &#xA3; £
&curren; &#164; &#xA4; ¤
&yen; &#165; &#xA5; ¥
&brvbar; &#166; &#xA6; ¦
&sect; &#167; &#xA7; §
&uml; &#168; &#xA8; ¨
&copy; &#169; &#xA9; ©
&ordf; &#170; &#xAA; ª
&laquo; &#171; &#xAB; «
&not; &#172; &#xAC; ¬
&shy; &#173; &#xAD; ­
&reg; &#174; &#xAE; ®
&macr; &#175; &#xAF; ¯
&deg; &#176; &#xB0; °
&plusmn; &#177; &#xB1; ±
&sup2; &#178; &#xB2; ²
&sup3; &#179; &#xB3; ³
&acute; &#180; &#xB4; ´
&micro; &#181; &#xB5; µ
&para; &#182; &#xB6;
&middot; &#183; &#xB7; ·
&cedil; &#184; &#xB8; ¸
&sup1; &#185; &#xB9; ¹
&ordm; &#186; &#xBA; º
&raquo; &#187; &#xBB; »
&frac14; &#188; &#xBC; ¼
&frac12; &#189; &#xBD; ½
&frac34; &#190; &#xBE; ¾
&iquest; &#191; &#xBF; ¿
&Agrave; &#192; &#xC0; À
&Aacute; &#193; &#xC1; Á
&Acirc; &#194; &#xC2; Â
&Atilde; &#195; &#xC3; Ã
&Auml; &#196; &#xC4; Ä
&Aring; &#197; &#xC5; Å
&AElig; &#198; &#xC6; Æ
&Ccedil; &#199; &#xC7; Ç
&Egrave; &#200; &#xC8; È
&Eacute; &#201; &#xC9; É
&Ecirc; &#202; &#xCA; Ê
&Euml; &#203; &#xCB; Ë
&Igrave; &#204; &#xCC; Ì
&Iacute; &#205; &#xCD; Í
&Icirc; &#206; &#xCE; Î
&Iuml; &#207; &#xCF; Ï
&ETH; &#208; &#xD0; Ð
&Ntilde; &#209; &#xD1; Ñ
&Ograve; &#210; &#xD2; Ò
&Oacute; &#211; &#xD3; Ó
&Ocirc; &#212; &#xD4; Ô
&Otilde; &#213; &#xD5; Õ
&Ouml; &#214; &#xD6; Ö
&times; &#215; &#xD7; ×
&Oslash; &#216; &#xD8; Ø
&Ugrave; &#217; &#xD9; Ù
&Uacute; &#218; &#xDA; Ú
&Ucirc; &#219; &#xDB; Û
&Uuml; &#220; &#xDC; Ü
&Yacute; &#221; &#xDD; Ý
&THORN; &#222; &#xDE; Þ
&szlig; &#223; &#xDF; ß
&agrave; &#224; &#xE0; à
&aacute; &#225; &#xE1; á
&acirc; &#226; &#xE2; â
&atilde; &#227; &#xE3; ã
&auml; &#228; &#xE4; ä
&aring; &#229; &#xE5; å
&aelig; &#230; &#xE6; æ
&ccedil; &#231; &#xE7; ç
&egrave; &#232; &#xE8; è
&eacute; &#233; &#xE9; é
&ecirc; &#234; &#xEA; ê
&euml; &#235; &#xEB; ë
&igrave; &#236; &#xEC; ì
&iacute; &#237; &#xED; í
&icirc; &#238; &#xEE; î
&iuml; &#239; &#xEF; ï
&eth; &#240; &#xF0; ð
&ntilde; &#241; &#xF1; ñ
&ograve; &#242; &#xF2; ò
&oacute; &#243; &#xF3; ó
&ocirc; &#244; &#xF4; ô
&otilde; &#245; &#xF5; õ
&ouml; &#246; &#xF6; ö
&divide; &#247; &#xF7; ÷
&oslash; &#248; &#xF8; ø
&ugrave; &#249; &#xF9; ù
&uacute; &#250; &#xFA; ú
&ucirc; &#251; &#xFB; û
&uuml; &#252; &#xFC; ü
&yacute; &#253; &#xFD; ý
&thorn; &#254; &#xFE; þ
&yuml; &#255; &#xFF; ÿ

Symbols, mathematical symbols, and Greek letters

NameDecimalHexaChar
&fnof; &#402; &#x192; ƒ
&Alpha; &#913; &#x391; Α
&Beta; &#914; &#x392; Β
&Gamma; &#915; &#x393; Γ
&Delta; &#916; &#x394; Δ
&Epsilon; &#917; &#x395; Ε
&Zeta; &#918; &#x396; Ζ
&Eta; &#919; &#x397; Η
&Theta; &#920; &#x398; Θ
&Iota; &#921; &#x399; Ι
&Kappa; &#922; &#x39A; Κ
&Lambda; &#923; &#x39B; Λ
&Mu; &#924; &#x39C; Μ
&Nu; &#925; &#x39D; Ν
&Xi; &#926; &#x39E; Ξ
&Omicron; &#927; &#x39F; Ο
&Pi; &#928; &#x3A0; Π
&Rho; &#929; &#x3A1; Ρ
&Sigma; &#931; &#x3A3; Σ
&Tau; &#932; &#x3A4; Τ
&Upsilon; &#933; &#x3A5; Υ
&Phi; &#934; &#x3A6; Φ
&Chi; &#935; &#x3A7; Χ
&Psi; &#936; &#x3A8; Ψ
&Omega; &#937; &#x3A9; Ω
&alpha; &#945; &#x3B1; α
&beta; &#946; &#x3B2; β
&gamma; &#947; &#x3B3; γ
&delta; &#948; &#x3B4; δ
&epsilon; &#949; &#x3B5; ε
&zeta; &#950; &#x3B6; ζ
&eta; &#951; &#x3B7; η
&theta; &#952; &#x3B8; θ
&iota; &#953; &#x3B9; ι
&kappa; &#954; &#x3BA; κ
&lambda; &#955; &#x3BB; λ
&mu; &#956; &#x3BC; μ
&nu; &#957; &#x3BD; ν
&xi; &#958; &#x3BE; ξ
&omicron; &#959; &#x3BF; ο
&pi; &#960; &#x3C0; π
&rho; &#961; &#x3C1; ρ
&sigmaf; &#962; &#x3C2; ς
&sigma; &#963; &#x3C3; σ
&tau; &#964; &#x3C4; τ
&upsilon; &#965; &#x3C5; υ
&phi; &#966; &#x3C6; φ
&chi; &#967; &#x3C7; χ
&psi; &#968; &#x3C8; ψ
&omega; &#969; &#x3C9; ω
&thetasym; &#977; &#x3D1; ϑ
&upsih; &#978; &#x3D2; ϒ
&piv; &#982; &#x3D6; ϖ
&bull; &#8226; &#x2022;
&hellip; &#8230; &#x2026;
&prime; &#8242; &#x2032;
&Prime; &#8243; &#x2033;
&oline; &#8254; &#x203E;
&frasl; &#8260; &#x2044;
&weierp; &#8472; &#x2118;
&image; &#8465; &#x2111;
&real; &#8476; &#x211C;
&trade; &#8482; &#x2122;
&alefsym; &#8501; &#x2135;
&larr; &#8592; &#x2190;
&uarr; &#8593; &#x2191;
&rarr; &#8594; &#x2192;
&darr; &#8595; &#x2193;
&harr; &#8596; &#x2194;
&crarr; &#8629; &#x21B5;
&lArr; &#8656; &#x21D0;
&uArr; &#8657; &#x21D1;
&rArr; &#8658; &#x21D2;
&dArr; &#8659; &#x21D3;
&hArr; &#8660; &#x21D4;
&forall; &#8704; &#x2200;
&part; &#8706; &#x2202;
&exist; &#8707; &#x2203;
&empty; &#8709; &#x2205;
&nabla; &#8711; &#x2207;
&isin; &#8712; &#x2208;
&notin; &#8713; &#x2209;
&ni; &#8715; &#x220B;
&prod; &#8719; &#x220F;
&sum; &#8721; &#x2211;
&minus; &#8722; &#x2212;
&lowast; &#8727; &#x2217;
&radic; &#8730; &#x221A;
&prop; &#8733; &#x221D;
&infin; &#8734; &#x221E;
&ang; &#8736; &#x2220;
&and; &#8743; &#x2227;
&or; &#8744; &#x2228;
&cap; &#8745; &#x2229;
&cup; &#8746; &#x222A;
&int; &#8747; &#x222B;
&there4; &#8756; &#x2234;
&sim; &#8764; &#x223C;
&cong; &#8773; &#x2245;
&asymp; &#8776; &#x2248;
&ne; &#8800; &#x2260;
&equiv; &#8801; &#x2261;
&le; &#8804; &#x2264;
&ge; &#8805; &#x2265;
&sub; &#8834; &#x2282;
&sup; &#8835; &#x2283;
&nsub; &#8836; &#x2284;
&sube; &#8838; &#x2286;
&supe; &#8839; &#x2287;
&oplus; &#8853; &#x2295;
&otimes; &#8855; &#x2297;
&perp; &#8869; &#x22A5;
&sdot; &#8901; &#x22C5;
&lceil; &#8968; &#x2308;
&rceil; &#8969; &#x2309;
&lfloor; &#8970; &#x230A;
&rfloor; &#8971; &#x230B;
&lang; &#9001; &#x2329;
&rang; &#9002; &#x232A;
&loz; &#9674; &#x25CA;
&spades; &#9824; &#x2660;
&clubs; &#9827; &#x2663;
&hearts; &#9829; &#x2665;
&diams; &#9830; &#x2666;

Diseño y desarrollo: Latitud29.com

Links and logos|Contact|Beyond HTML|Tools and resources|Sitemap|Webmaster|Donate