PureDevTools

HTML Entities Cheat Sheet

Instant reference for 200+ HTML entities — search by name, character, or code; click to copy named (&), decimal (&), hex (&), or Unicode; organized by Currency, Math, Arrows, Greek, and more

All processing happens in your browser. No data is sent to any server.
Click to copy:&name;&#decimal;&#xHEX;U+code

Most Commonly Used HTML Entities

Click any code to copy it to your clipboard.

CharDescriptionNameDecimalHexUnicode
<Less-than sign (HTML reserved)
>Greater-than sign (HTML reserved)
&Ampersand (HTML reserved)
"Quotation mark (HTML reserved)
'Apostrophe (HTML5)
SPSpace (regular breaking space)
NBSPNon-breaking space
©Copyright sign
Trade mark sign
®Registered sign
Em dash
En dash
Horizontal ellipsis
Bullet

You type <script> in your blog post content and the browser tries to execute it. You need &lt;script&gt; instead. Or you’re adding a copyright symbol and can’t remember if it’s &copy;, &#169;, or &#xa9;. Or you need the right arrow (→) in a nav breadcrumb and Google gives you 8 different arrow entities without showing which one is which. You need a searchable reference with named, decimal, and hex codes all in one place.

Why This Cheat Sheet (Not MDN or W3Schools)

MDN’s HTML entity reference is exhaustive (2,000+ entities) but overwhelming when you just need the 20 you use regularly. W3Schools lists entities but doesn’t show the actual rendered character next to the code. This cheat sheet covers 200+ commonly used entities — currency, math, arrows, Greek letters, typography — with the character, named entity, decimal code, and hex code side by side. Searchable and filterable in your browser; no data is sent anywhere.

What Are HTML Entities?

An HTML entity is a special code that tells the browser to display a character that either has a special meaning in HTML or cannot easily be typed on a standard keyboard. Every entity starts with an ampersand (&) and ends with a semicolon (;).

There are three ways to reference the same character:

FormatExampleDescription
Named entity&amp;Mnemonic name — easiest to read
Decimal numeric&#38;Base-10 Unicode code point
Hex numeric&#x26;Base-16 Unicode code point

All three forms are equivalent. The browser renders &amp;, &#38;, and &#x26; identically as the & character.


The 5 Reserved HTML Characters

These five characters have special meaning in HTML and must be escaped whenever they appear in text content or attribute values:

CharacterNamedDecimalWhen to escape
<&lt;&#60;Inside text content or attribute values — misread as tag start
>&gt;&#62;Inside text content — misread as tag end
&&amp;&#38;Always — starts an entity reference
"&quot;&#34;Inside double-quoted attribute values
'&apos;&#39;Inside single-quoted attribute values (HTML5)

Rule of thumb: If your editor’s HTML highlighter turns your text orange or red, you probably need to escape it.


Non-Breaking Space (&nbsp;)

The non-breaking space (&nbsp;, &#160;) looks identical to a regular space but prevents the browser from wrapping the line at that position. Use it to:

<!-- Without &nbsp;: "10" and "kg" can end up on separate lines -->
10 kg

<!-- With &nbsp;: always stays on one line -->
10&nbsp;kg

Typography Essentials

Em Dash vs En Dash vs Hyphen

CharacterEntityUse
- (hyphen)- (literal)Compound words: state-of-the-art; line-break continuation
(en dash)&ndash;Ranges: pages 10–20; connections: New York–London
(em dash)&mdash;Clause separator — like a strong parenthetical — in prose

Quotation Marks

Straight quotes (" ') are ASCII and fine in code. For typographically correct prose, use curly quotes:

CharacterNamedDecimalUse
"&ldquo;&#8220;Opening double quote
"&rdquo;&#8221;Closing double quote / closing apostrophe
'&lsquo;&#8216;Opening single quote
'&rsquo;&#8217;Closing single quote / apostrophe in contractions
&copy; 2026 Acme Corp.          <!-- © 2026 Acme Corp. -->
Widget Pro&trade;               <!-- Widget Pro™ -->
Coca-Cola&reg;                  <!-- Coca-Cola® -->

Currency Symbols

SymbolNamedDecimalCurrency
$&#36;US Dollar
&euro;&#8364;Euro
£&pound;&#163;British Pound
¥&yen;&#165;Japanese Yen / Chinese Yuan
¢&cent;&#162;Cent
&#8377;Indian Rupee
&#8383;Bitcoin
&#8381;Russian Ruble

If your HTML file is saved as UTF-8 (which is the modern standard), you can paste currency symbols directly without using entities. Entities are useful when you need to guarantee the character survives encoding changes or when working in a limited character set.


Mathematical Operators

Common math operators used in documentation, formulas, and scientific content:

5 &times; 3 = 15          <!-- 5 × 3 = 15 -->
10 &divide; 2 = 5          <!-- 10 ÷ 2 = 5 -->
&plusmn;0.5                <!-- ±0.5 -->
x &le; 10                  <!-- x ≤ 10 -->
x &ge; 0                   <!-- x ≥ 0 -->
x &ne; 0                   <!-- x ≠ 0 -->
&infin;                    <!-- ∞ -->
&radic;16 = 4              <!-- √16 = 4 -->

Greek Letters

Greek letters appear frequently in mathematics, science, and engineering. All 24 lowercase and 24 uppercase Greek letters have named HTML entities:

LetterNamedLetterNamed
α&alpha;Α&Alpha;
β&beta;Β&Beta;
γ&gamma;Γ&Gamma;
δ&delta;Δ&Delta;
π&pi;Π&Pi;
σ&sigma;Σ&Sigma;
ω&omega;Ω&Omega;
θ&theta;Θ&Theta;
λ&lambda;Λ&Lambda;
μ&mu;Μ&Mu;

Arrows

HTML provides named entities for directional arrows:

ArrowNamedDescription
&larr;Left arrow
&rarr;Right arrow
&uarr;Up arrow
&darr;Down arrow
&harr;Left-right arrow
&lArr;Left double arrow
&rArr;Right double arrow
&hArr;Left-right double arrow
&crarr;Carriage return arrow

Named Entities vs. Direct UTF-8 Characters

Modern HTML documents should declare <meta charset="UTF-8">. With UTF-8 encoding, you can paste most Unicode characters directly — no entity required. For example, © 2026 and &copy; 2026 are identical.

When to prefer entities over direct characters:

  1. The 5 reserved characters (< > & " ') — always escape these
  2. Invisible or ambiguous characters&nbsp;, &shy; (soft hyphen) are clearer as entities
  3. Limited-charset environments — plain-text emails, legacy systems, or tools that mangle non-ASCII
  4. Code readability&mdash; is unambiguous; a lone can look like a hyphen

When UTF-8 is fine:


Frequently Asked Questions

Can I use HTML entities in CSS content property?

Yes. In CSS, use the Unicode escape with a backslash: content: "\00A9" for ©. CSS does not support HTML entity names like &copy;.

Do HTML entities work in XML and SVG?

Named HTML entities work in HTML documents. In XML and SVG (which are stricter), only the five predefined XML entities are guaranteed: &amp;, &lt;, &gt;, &quot;, &apos;. Use numeric references (&#169;) for other characters in XML/SVG.

Why does my &nbsp; show as literal text?

Make sure the surrounding document is parsed as HTML (not plain text). Check that the Content-Type header is text/html and the file has a proper <!DOCTYPE html> declaration.

Is &apos; valid HTML?

&apos; is defined in HTML5 and XML but was not part of HTML 4. For maximum compatibility in legacy contexts, use &#39; instead. In modern HTML5, both work.

What is the soft hyphen (&shy;)?

The soft hyphen (&shy;, &#173;) is an invisible hint to the browser: “if you need to break this word across lines, you may break it here and show a hyphen.” It only appears when a line break actually occurs. Use it in long compound words like hand&shy;crafted.

Related Tools

More HTML & Markdown Tools