HTML Entities and Character Codes

Named character references and numeric codes for the characters most often needed in HTML, from the reserved characters & < > " to symbols such as ©, €, ✓ and ♥. Every name here is in the WHATWG HTML named character reference list.

Quick HTML code lookups

Any character can be written as a decimal reference &#n; or a hex reference &#xh;. Named references are easier to read but exist only for a fixed list of characters. Names are case-sensitive: &Omega; is Ω but &omega; is ω.

HTML codes for commonly searched characters
LookupCharacterNamedDecimalHex
html code check✓&check;&#10003;&#x2713;
html code quote"&quot;&#34;&#x22;
html code &&&amp;&#38;&#x26;
html code copyright©&copy;&#169;&#xA9;
html code euro€&euro;&#8364;&#x20AC;
html code heart♥&hearts;&#9829;&#x2665;
html code space(no-break space)&nbsp;&#160;&#xA0;
html code tm™&trade;&#8482;&#x2122;

Sources: WHATWG: HTML Standard: Named character references

Reserved characters and spaces

In HTML text, & and < must be escaped as &amp; and &lt; so they are not read as markup. Inside attribute values, escape the quote character that delimits the value with &quot; or &apos;. A regular space needs no code; &nbsp; is a no-break space that keeps two words on the same line, and &#32; is an ordinary space.

Reserved characters and space entities
CharacterNamedDecimalHexCode pointName
&&amp;&#38;&#x26;U+0026Ampersand
<&lt;&#60;&#x3C;U+003CLess-Than Sign
>&gt;&#62;&#x3E;U+003EGreater-Than Sign
"&quot;&#34;&#x22;U+0022Quotation Mark
'&apos;&#39;&#x27;U+0027Apostrophe
(no-break space)&nbsp;&#160;&#xA0;U+00A0No-Break Space
 &ensp;&#8194;&#x2002;U+2002En Space
 &emsp;&#8195;&#x2003;U+2003Em Space
 &thinsp;&#8201;&#x2009;U+2009Thin Space
(soft hyphen)&shy;&#173;&#xAD;U+00ADSoft Hyphen

Sources: WHATWG: HTML Standard: Named character references

Symbol, punctuation, math and Greek entities

Common named references for typography, currency, math, arrows, card suits and Greek letters. The check mark ✓ (U+2713) has two names in the standard, &check; and &checkmark;.

Named HTML entities with numeric codes and Unicode names
CharacterNamedDecimalHexCode pointName
©&copy;&#169;&#xA9;U+00A9Copyright Sign
®&reg;&#174;&#xAE;U+00AERegistered Sign
™&trade;&#8482;&#x2122;U+2122Trade Mark Sign
€&euro;&#8364;&#x20AC;U+20ACEuro Sign
£&pound;&#163;&#xA3;U+00A3Pound Sign
¥&yen;&#165;&#xA5;U+00A5Yen Sign
¢&cent;&#162;&#xA2;U+00A2Cent Sign
¤&curren;&#164;&#xA4;U+00A4Currency Sign
§&sect;&#167;&#xA7;U+00A7Section Sign
&para;&#182;&#xB6;U+00B6Pilcrow Sign
·&middot;&#183;&#xB7;U+00B7Middle Dot
•&bull;&#8226;&#x2022;U+2022Bullet
…&hellip;&#8230;&#x2026;U+2026Horizontal Ellipsis
–&ndash;&#8211;&#x2013;U+2013En Dash
—&mdash;&#8212;&#x2014;U+2014Em Dash
‘&lsquo;&#8216;&#x2018;U+2018Left Single Quotation Mark
’&rsquo;&#8217;&#x2019;U+2019Right Single Quotation Mark
“&ldquo;&#8220;&#x201C;U+201CLeft Double Quotation Mark
”&rdquo;&#8221;&#x201D;U+201DRight Double Quotation Mark
«&laquo;&#171;&#xAB;U+00ABLeft-Pointing Double Angle Quotation Mark
»&raquo;&#187;&#xBB;U+00BBRight-Pointing Double Angle Quotation Mark
×&times;&#215;&#xD7;U+00D7Multiplication Sign
÷&divide;&#247;&#xF7;U+00F7Division Sign
°&deg;&#176;&#xB0;U+00B0Degree Sign
±&plusmn;&#177;&#xB1;U+00B1Plus-Minus Sign
−&minus;&#8722;&#x2212;U+2212Minus Sign
≤&le;&#8804;&#x2264;U+2264Less-Than Or Equal To
≥&ge;&#8805;&#x2265;U+2265Greater-Than Or Equal To
≠&ne;&#8800;&#x2260;U+2260Not Equal To
≈&asymp;&#8776;&#x2248;U+2248Almost Equal To
∞&infin;&#8734;&#x221E;U+221EInfinity
∑&sum;&#8721;&#x2211;U+2211N-Ary Summation
∏&prod;&#8719;&#x220F;U+220FN-Ary Product
√&radic;&#8730;&#x221A;U+221ASquare Root
µ&micro;&#181;&#xB5;U+00B5Micro Sign
½&frac12;&#189;&#xBD;U+00BDVulgar Fraction One Half
¼&frac14;&#188;&#xBC;U+00BCVulgar Fraction One Quarter
¾&frac34;&#190;&#xBE;U+00BEVulgar Fraction Three Quarters
²&sup2;&#178;&#xB2;U+00B2Superscript Two
³&sup3;&#179;&#xB3;U+00B3Superscript Three
‰&permil;&#8240;&#x2030;U+2030Per Mille Sign
♥&hearts;&#9829;&#x2665;U+2665Black Heart Suit
♠&spades;&#9824;&#x2660;U+2660Black Spade Suit
♣&clubs;&#9827;&#x2663;U+2663Black Club Suit
♦&diams;&#9830;&#x2666;U+2666Black Diamond Suit
✓&check;&#10003;&#x2713;U+2713Check Mark
✗&cross;&#10007;&#x2717;U+2717Ballot X
★&starf;&#9733;&#x2605;U+2605Black Star
☆&star;&#9734;&#x2606;U+2606White Star
←&larr;&#8592;&#x2190;U+2190Leftwards Arrow
→&rarr;&#8594;&#x2192;U+2192Rightwards Arrow
↑&uarr;&#8593;&#x2191;U+2191Upwards Arrow
↓&darr;&#8595;&#x2193;U+2193Downwards Arrow
↔&harr;&#8596;&#x2194;U+2194Left Right Arrow
⇒&rArr;&#8658;&#x21D2;U+21D2Rightwards Double Arrow
⇔&hArr;&#8660;&#x21D4;U+21D4Left Right Double Arrow
α&alpha;&#945;&#x3B1;U+03B1Greek Small Letter Alpha
β&beta;&#946;&#x3B2;U+03B2Greek Small Letter Beta
π&pi;&#960;&#x3C0;U+03C0Greek Small Letter Pi
Ω&Omega;&#937;&#x3A9;U+03A9Greek Capital Letter Omega
†&dagger;&#8224;&#x2020;U+2020Dagger
¡&iexcl;&#161;&#xA1;U+00A1Inverted Exclamation Mark
¿&iquest;&#191;&#xBF;U+00BFInverted Question Mark
ß&szlig;&#223;&#xDF;U+00DFLatin Small Letter Sharp S
é&eacute;&#233;&#xE9;U+00E9Latin Small Letter E With Acute
ñ&ntilde;&#241;&#xF1;U+00F1Latin Small Letter N With Tilde
ü&uuml;&#252;&#xFC;U+00FCLatin Small Letter U With Diaeresis

Sources: WHATWG: HTML Standard: Named character references; Unicode Consortium: Unicode Character Database: UnicodeData.txt

References

Frequently asked questions

What is the HTML code for a check mark?

Use &check; or &checkmark; for ✓ (U+2713), or the numeric codes &#10003; and &#x2713;. The heavier ✔ (U+2714) has no named reference; use &#10004;.

Do I need entities if my page is UTF-8?

Only for & and < in text (and the delimiting quote in attributes). With UTF-8 you can type ©, € or ♥ directly; entities remain useful when a character is invisible, like &nbsp;, or hard to type.