HTML Symbols, Entity Names, and Numeric Character Codes

HTML symbols can be written directly as Unicode characters or represented with named entities, hexadecimal character references, and decimal character references. This guide lists commonly used mathematical, arrow, currency, reserved, and typographic symbols with codes that can be placed in HTML content.

How HTML Symbol Codes Work

A named HTML entity begins with an ampersand and ends with a semicolon, as in ©. A decimal reference adds # before the Unicode code point, while a hexadecimal reference adds #x.

</>
Copy
<p>Named entity: &amp;copy;</p>
<p>Decimal reference: &amp;#169;</p>
<p>Hexadecimal reference: &amp;#x00A9;</p>

All three lines display the copyright symbol: ©. Named entities are readable, but not every Unicode symbol has one. Decimal and hexadecimal references can represent any valid Unicode code point.

Use UTF-8 for consistent character handling and declare it near the beginning of the document head:

</>
Copy
<meta charset="UTF-8">

Common Mathematical HTML Symbols

CharacterEntityHex CodeDecimal CodeDescription
&forall;&#x2200;&#8704;For all
&part;&#x2202;&#8706;Partial differential
&exist;&#x2203;&#8707;There exists
&empty;&#x2205;&#8709;Empty set
&nabla;&#x2207;&#8711;Nabla
&isin;&#x2208;&#8712;Element of
&ni;&#x220B;&#8715;Contains as member
&prod;&#x220F;&#8719;N-ary product
&sum;&#x2211;&#8721;N-ary summation
&lowast;&#x2217;&#8727;Asterisk operator
&radic;&#x221A;&#8730;Square root
&prop;&#x221D;&#8733;Proportional to
&infin;&#x221E;&#8734;Infinity
&ang;&#x2220;&#8736;Angle
&and;&#x2227;&#8743;Logical and
&or;&#x2228;&#8744;Logical or
&cap;&#x2229;&#8745;Intersection
&cup;&#x222A;&#8746;Union
&int;&#x222B;&#8747;Integral
&there4;&#x2234;&#8756;Therefore
&sim;&#x223C;&#8764;Tilde operator
&cong;&#x2245;&#8773;Congruent to
&asymp;&#x2248;&#8776;Almost equal to
&ne;&#x2260;&#8800;Not equal to
&equiv;&#x2261;&#8801;Identical to
&le;&#x2264;&#8804;Less than or equal to
&ge;&#x2265;&#8805;Greater than or equal to

HTML Arrow Symbols and Codes

Arrow symbols are commonly used for directional labels, text annotations, breadcrumbs, and explanatory content. When an arrow functions as an interactive control, include a descriptive text label or accessible name rather than relying on the symbol alone.

CharacterEntityHex CodeDecimal CodeDescription
&larr;&#x2190;&#8592;Leftwards arrow
&uarr;&#x2191;&#8593;Upwards arrow
&rarr;&#x2192;&#8594;Rightwards arrow
&darr;&#x2193;&#8595;Downwards arrow
&harr;&#x2194;&#8596;Left-right arrow
&crarr;&#x21B5;&#8629;Downwards arrow with corner leftwards
&lArr;&#x21D0;&#8656;Leftwards double arrow
&uArr;&#x21D1;&#8657;Upwards double arrow
&rArr;&#x21D2;&#8658;Rightwards double arrow
&dArr;&#x21D3;&#8659;Downwards double arrow
&hArr;&#x21D4;&#8660;Left-right double arrow

HTML Currency Symbols and Codes

Currency symbols should be accompanied by enough context to identify the intended currency. For example, the dollar sign may refer to several currencies, so financial content may also need an ISO currency code such as USD, CAD, or AUD.

CharacterEntity or Numeric ReferenceHex CodeDecimal CodeDescription
$&dollar;&#x0024;&#36;Dollar sign
¢&cent;&#x00A2;&#162;Cent sign
£&pound;&#x00A3;&#163;Pound sign
¤&curren;&#x00A4;&#164;Currency sign
¥&yen;&#x00A5;&#165;Yen sign
&euro;&#x20AC;&#8364;Euro sign
&#8361;&#x20A9;&#8361;Won sign
&#8373;&#x20B5;&#8373;Cedi sign
&#8377;&#x20B9;&#8377;Indian rupee sign
&#8363;&#x20AB;&#8363;Dong sign

Reserved HTML Characters and Entity Codes

Some characters have a structural meaning in HTML. Use character references when a reserved character must appear as text, particularly for the less-than sign and ampersand.

CharacterNamed EntityHex CodeDecimal CodeDescription
&&amp;&#x0026;&#38;Ampersand
<&lt;&#x003C;&#60;Less-than sign
>&gt;&#x003E;&#62;Greater-than sign
&quot;&#x0022;&#34;Quotation mark
&apos;&#x0027;&#39;Apostrophe

For example, write the following references when an HTML element must be shown as visible text rather than interpreted by the browser:

</>
Copy
<p>Use &amp;lt;strong&amp;gt; to begin a strong element.</p>

Common Typographic HTML Symbols

CharacterEntityHex CodeDecimal CodeDescription
©&copy;&#x00A9;&#169;Copyright sign
®&reg;&#x00AE;&#174;Registered sign
&trade;&#x2122;&#8482;Trademark sign
§&sect;&#x00A7;&#167;Section sign
&para;&#x00B6;&#182;Pilcrow or paragraph sign
&bull;&#x2022;&#8226;Bullet
&hellip;&#x2026;&#8230;Horizontal ellipsis
&ndash;&#x2013;&#8211;En dash
&mdash;&#x2014;&#8212;Em dash
 &nbsp;&#x00A0;&#160;Non-breaking space

Named Entities versus Copy-and-Paste HTML Symbols

With a UTF-8 document, most symbols can be copied and pasted directly into HTML. Character references remain useful when the character is reserved by HTML, difficult to type, visually ambiguous in source code, or must be generated from a known Unicode code point.

  • Use a named entity when a familiar and valid entity name improves source readability.
  • Use a decimal or hexadecimal reference when the symbol has no named HTML entity.
  • End character references with a semicolon to avoid ambiguous parsing.
  • Do not use a symbol as a substitute for meaningful text when its purpose may be unclear.

HTML Symbols, Fonts, and Accessibility

A browser can display a Unicode symbol only if an available font contains the required glyph. Appearance may vary between operating systems, browsers, and fonts. Test uncommon symbols on the devices supported by the website.

Decorative symbols should not create distracting screen-reader output. For functional symbols, provide an accessible name that describes the action. A right-arrow button, for example, should be labelled “Next” rather than depending on the arrow character to communicate its purpose. Use an icon or SVG when consistent shape, sizing, or branding is required; use an HTML symbol when a text character is semantically and visually sufficient.

HTML Symbols FAQs

What is an HTML entity?

An HTML entity is a named character reference such as &copy; or &rarr;. The browser replaces the reference with its corresponding character when rendering the page.

How do I add an arrow symbol in HTML?

Enter the arrow directly in a UTF-8 document or use its entity or numeric reference. For example, &rarr;, &#8594;, and &#x2192; all display a rightwards arrow: →.

Should I use a named, decimal, or hexadecimal HTML code?

Use whichever form makes the source easiest to maintain. Named entities are readable but are not available for every symbol. Decimal and hexadecimal references both identify a Unicode code point and render the same character.

Why does an HTML symbol appear as a box or missing character?

The active font may not contain that glyph, or the document may use an incorrect character encoding. Declare UTF-8, verify the code point, and test with a font that supports the required Unicode range.

Can HTML symbols replace icons?

They can replace simple text-like icons when variations in font rendering are acceptable. Use SVG or a suitable icon asset when exact appearance, complex graphics, or consistent cross-platform rendering is required.

HTML Symbols Editorial QA Checklist

  • Verify that each displayed symbol matches its Unicode hexadecimal and decimal code point.
  • Confirm that every listed named entity renders the same character shown in its table row.
  • Check that numeric references contain #, hexadecimal references contain #x, and all references end with a semicolon.
  • Test reserved-character examples to ensure the browser displays them as text instead of interpreting them as markup.
  • Confirm that the page declares UTF-8 and that uncommon symbols render in the website’s supported fonts.
  • Provide text labels or accessible names when arrows or other symbols are used as interactive controls.
  • Identify ambiguous currency symbols with a currency name or ISO code where the surrounding text does not make the currency clear.