HTML Entities Cheat Sheet: Complete Reference for 2026

HTML entities are special codes that display reserved characters and symbols in web pages. If you’ve ever tried to write a < symbol in HTML and watched your page break, you already know why entities exist. This cheat sheet covers every entity you’ll actually use, organized for quick reference.

What Are HTML Entities?

Certain characters have special meaning in HTML. The browser interprets < as the start of an HTML tag, & as the start of an entity, and > as the end of a tag. To display these characters as visible text instead, you replace them with HTML entities.

An HTML entity starts with an ampersand (&) and ends with a semicolon (;). Between them is either a named reference (like &amp;) or a numeric code (like &#38;).

Essential HTML Entities (Must Know)

These five entities are required for writing valid HTML. Memorize them:

CharacterNamed EntityNumeric EntityDescription
&&amp;&#38;Ampersand
<&lt;&#60;Less than
>&gt;&#62;Greater than
"&quot;&#34;Double quote
'&apos;&#39;Single quote / apostrophe

Spacing & Invisible Characters

CharacterNamed EntityNumeric EntityDescription
 &nbsp;&#160;Non-breaking space
&ensp;&#8194;En space
&emsp;&#8195;Em space
&thinsp;&#8201;Thin space
­&shy;&#173;Soft hyphen (invisible break point)

Typography & Punctuation

CharacterNamed EntityNumeric EntityDescription
&mdash;&#8212;Em dash
&ndash;&#8211;En dash
&hellip;&#8230;Ellipsis
·&middot;&#183;Middle dot
&bull;&#8226;Bullet
&lsquo;&#8216;Left single quote
&rsquo;&#8217;Right single quote
&ldquo;&#8220;Left double quote
&rdquo;&#8221;Right double quote
«&laquo;&#171;Left angle quote
»&raquo;&#187;Right angle quote

Currency Symbols

CharacterNamed EntityNumeric EntityDescription
$&dollar;&#36;Dollar
&euro;&#8364;Euro
£&pound;&#163;Pound
¥&yen;&#165;Yen
¢&cent;&#162;Cent

Math & Technical Symbols

CharacterNamed EntityNumeric EntityDescription
×&times;&#215;Multiplication
÷&divide;&#247;Division
±&plusmn;&#177;Plus-minus
&ne;&#8800;Not equal
&le;&#8804;Less than or equal
&ge;&#8805;Greater than or equal
°&deg;&#176;Degree
&infin;&#8734;Infinity

Common Symbols & Arrows

CharacterNamed EntityNumeric EntityDescription
©&copy;&#169;Copyright
®&reg;&#174;Registered
&trade;&#8482;Trademark
&larr;&#8592;Left arrow
&rarr;&#8594;Right arrow
&uarr;&#8593;Up arrow
&darr;&#8595;Down arrow
&check;&#10003;Check mark

Named vs Numeric Entities: Which to Use

Named entities (like &amp;) are easier to read and remember. Use them when available. Numeric entities (like &#38;) work for any Unicode character, even those without named references. Use numeric entities when you need obscure symbols or want maximum compatibility with older parsers.

There’s also a hexadecimal form: &#x26; is equivalent to &#38;. Hex codes map directly to Unicode code points, making them useful if you’re looking up characters in Unicode charts.

When to Use HTML Entities

  • Always encode &, <, >, and quotes inside HTML attributes.
  • Use entities for special typography like em dashes, curly quotes, and non-breaking spaces.
  • Use entities when displaying code examples that contain HTML tags.
  • Skip entities for standard Unicode characters if your document uses UTF-8 encoding (which it should). You can type accented characters like é directly.
Try the Free HTML Formatter Now

When working with HTML that contains many entities, a formatter helps you spot errors and keep your code readable. The Tools Oasis HTML Formatter beautifies your markup so you can see exactly where entities are used and whether they’re correctly closed.

Try It Free — No Signup Required