QuickRef.
Reference table

HTML Entities

The named and numeric codes for the characters HTML reserves or hides. Search the set, see how each one renders, and copy the entity you need.

Entity lookup46 of 46 shown
HTML named and numeric character references
GlyphNamedNumericDescriptionGroup
<&lt;&#60;Less-than signMarkup
>&gt;&#62;Greater-than signMarkup
&&amp;&#38;AmpersandMarkup
"&quot;&#34;Double quotation markMarkup
'&apos;&#39;Apostrophe / single quoteMarkup
 &nbsp;&#160;Non-breaking spaceSpacing
©&copy;&#169;Copyright signSymbols
®&reg;&#174;Registered trademarkSymbols
&trade;&#8482;Trademark signSymbols
&euro;&#8364;Euro signCurrency
£&pound;&#163;Pound sterlingCurrency
¥&yen;&#165;Yen signCurrency
¢&cent;&#162;Cent signCurrency
°&deg;&#176;Degree signSymbols
±&plusmn;&#177;Plus-minus signMath
×&times;&#215;Multiplication signMath
÷&divide;&#247;Division signMath
&minus;&#8722;Minus signMath
&ne;&#8800;Not equal toMath
&le;&#8804;Less-than or equal toMath
&ge;&#8805;Greater-than or equal toMath
&infin;&#8734;InfinityMath
&ndash;&#8211;En dashPunctuation
&mdash;&#8212;Em dashPunctuation
&lsquo;&#8216;Left single quotePunctuation
&rsquo;&#8217;Right single quotePunctuation
&ldquo;&#8220;Left double quotePunctuation
&rdquo;&#8221;Right double quotePunctuation
&hellip;&#8230;Horizontal ellipsisPunctuation
&bull;&#8226;BulletPunctuation
&larr;&#8592;Leftwards arrowArrows
&uarr;&#8593;Upwards arrowArrows
&rarr;&#8594;Rightwards arrowArrows
&darr;&#8595;Downwards arrowArrows
&harr;&#8596;Left-right arrowArrows
&hearts;&#9829;Black heart suitSymbols
&spades;&#9824;Black spade suitSymbols
&clubs;&#9827;Black club suitSymbols
&diams;&#9830;Black diamond suitSymbols
¼&frac14;&#188;One quarterMath
½&frac12;&#189;One halfMath
¾&frac34;&#190;Three quartersMath
§&sect;&#167;Section signSymbols
&para;&#182;Pilcrow / paragraph signSymbols
&dagger;&#8224;DaggerPunctuation
&Dagger;&#8225;Double daggerPunctuation

Click a named entity to copy it. The glyph column shows how it renders.

Why HTML entities exist

HTML uses a handful of characters as structure. The less-than and greater-than signs delimit tags, the ampersand opens an entity, and quotation marks bound attribute values. If you want any of those characters to appear as literal text rather than markup, you have to escape it, and an entity is how you do that. The named character references are defined by the WHATWG HTML Standard, so a browser resolves them the same way everywhere.

Entities also give you a portable way to write characters that are awkward to type or that might not survive a copy and paste, from a non breaking space to a mathematical symbol or an arrow. On a UTF-8 page you can often insert those characters directly, but the four markup sensitive characters still need escaping, and numeric entities remain the dependable fallback when a named form does not exist.

The four you must always escape

  • The less-than sign, so text is not read as the start of a tag.
  • The greater-than sign, for symmetry and to avoid edge cases.
  • The ampersand, so it is not read as the start of another entity.
  • The double quotation mark inside attribute values.

Frequently asked questions

FAQ
What is an HTML entity?

An HTML entity is an escape sequence that represents a character which is either reserved in HTML or hard to type. It begins with an ampersand and ends with a semicolon, for example the named form for a copyright sign or the numeric form using a code point. The browser renders the entity as the intended character.

When do I have to use entities?

You must escape the characters that HTML treats as markup. Write the less-than and greater-than entities so a browser does not read them as a tag, and escape the ampersand so it is not read as the start of another entity. Inside attribute values you should also escape quotation marks.

What is the difference between named and numeric entities?

A named entity uses a memorable word between the ampersand and semicolon. A numeric entity uses the character's Unicode code point, in decimal or in hex with an x prefix. Numeric entities work for any character, while named ones exist only for a defined set, so numeric is the reliable fallback.

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

For most symbols, no. A UTF-8 page can contain a euro sign or an em dash directly. You still must escape the four markup sensitive characters, the less-than sign, greater-than sign, ampersand, and quotation marks inside attributes, because those change how the HTML is parsed.

See also