html entity character-code web-dev reference

HTML Entities Character Reference: Complete List and Guide (2026)

A comprehensive reference of HTML entities, character codes, and symbols. Includes a complete table of common, Greek, mathematical, and symbolic characters for web developers.

2026-04-12 Use This Tool

HTML Entities Character Reference: Complete List and Guide (2026)

When building websites, you often need to display characters that have special meaning in HTML (like < and >) or characters that aren't on your keyboard (like © or ). These are represented using HTML Entities.

An HTML entity can be a named entity (like &copy;) or a numeric entity (like &#169;). This guide provides a complete reference for the most commonly used HTML entities.


1. Quick Search: Essential HTML Entities

If you just need the five "must-know" entities for security and basic markup, here they are:

Character Entity Name Entity Number Description
< &lt; &#60; Less than (Start of tag)
> &gt; &#62; Greater than (End of tag)
& &amp; &#38; Ampersand (Start of entity)
" &quot; &#34; Double quotation mark
' &apos; &#39; Single quotation mark / Apostrophe

2. Complete HTML Character Reference Table

Common Characters and Symbols

Character Entity Name Entity Number Description
&nbsp; &#160; Non-breaking space
© &copy; &#169; Copyright symbol
® &reg; &#174; Registered trademark
&trade; &#8482; Trademark symbol
§ &sect; &#167; Section sign
&para; &#182; Pilcrow (paragraph) sign
&bull; &#8226; Bullet point
&hellip; &#8230; Horizontal ellipsis
&mdash; &#8212; Em dash
&ndash; &#8211; En dash

Currency Symbols

Character Entity Name Entity Number Description
&euro; &#8364; Euro sign
£ &pound; &#163; Pound sterling sign
¥ &yen; &#165; Yen / Yuan sign
¢ &cent; &#162; Cent sign
¤ &curren; &#164; Generic currency sign

Mathematical Operators

Character Entity Name Entity Number Description
± &plusmn; &#177; Plus-minus sign
× &times; &#215; Multiplication sign
÷ &divide; &#247; Division sign
&radic; &#8730; Square root
&infin; &#8734; Infinity sign
&asymp; &#8776; Almost equal to
&ne; &#8800; Not equal to
&le; &#8804; Less-than or equal to
&ge; &#8805; Greater-than or equal to
&sum; &#8721; Summation (sigma)
&prod; &#8719; Product sign
&int; &#8747; Integral sign

Greek Alphabet

Character Entity Name Entity Number Description
α &alpha; &#945; Greek small letter alpha
β &beta; &#946; Greek small letter beta
γ &gamma; &#947; Greek small letter gamma
Δ &Delta; &#916; Greek capital letter Delta
Σ &Sigma; &#931; Greek capital letter Sigma
Ω &Omega; &#937; Greek capital letter Omega
π &pi; &#960; Greek small letter pi
θ &theta; &#952; Greek small letter theta

Arrows and Layout

Character Entity Name Entity Number Description
&larr; &#8592; Left arrow
&uarr; &#8593; Up arrow
&rarr; &#8594; Right arrow
&darr; &#8595; Down arrow
&harr; &#8596; Left-right arrow
&crarr; &#8629; Carriage return arrow

3. Categories of HTML Entities

Reserved Characters

In HTML, some characters are reserved. For example, you cannot use the < or > signs directly in your text because the browser will mistake them for tags. You must use &lt; and &gt;. Similarly, the & must be encoded as &amp; because it is the start of an entity.

Currency and Legal

Symbols like © (Copyright), ® (Registered), and various currency signs are not standard on all keyboards or might be corrupted by different character encodings (like shifting from UTF-8 to ISO-8859-1). Using entities ensures they display correctly across all systems.

Mathematical Operators

For technical writing or scientific documentation, HTML provides a wide range of mathematical symbols. While many are available in Unicode, named entities like &infin; make the code much more readable than raw character codes.


4. Usage Tips: How to Use Entities

In HTML

Simply type the entity name or number directly into your HTML code:

<p>Copyright &copy; 2026 Tool3M</p>
<p>3 &lt; 5 is a true statement.</p>

In JavaScript

If you are setting the textContent of an element, you use the literal character. But if you are building an HTML string, use the entity:

// Correct for HTML injection
const myString = "5 &times; 10 = 50";
element.innerHTML = myString;

// Using Unicode in JS strings
const mySymbol = "\u00A9"; // ©

In CSS

In CSS "content" properties (used with :before or :after), you use a backslash followed by the hexadecimal value:

.copyright:before {
  content: "\00A9"; /* Unicode for © */
}

5. Frequently Asked Questions (FAQ)

What is the difference between an entity name and an entity number?

An entity name (like &quot;) is a human-readable mnemonic. An entity number (like &#34;) refers to the character's Unicode/ISO-10646 code point. Not all characters have names, but every character has a number. Numbers are generally safer for older browsers or XML contexts.

Why do I need to escape the ampersand (&)?

The ampersand & is the "trigger" character for HTML entities. If you have a URL like index.php?id=1&name=test, the &name part might be misinterpreted by some browsers as a named entity (though modern browsers are quite smart about this). To be 100% safe, always write &amp;.

Is there a security risk with HTML entities?

Yes. Failing to encode HTML entities is the root cause of Cross-Site Scripting (XSS). If a user submits <script>alert(1)</script> and you display it directly, the browser executes the script. If you encode it as &lt;script&gt;..., it is displayed safely as text.

Should I use UTF-8 instead of entities?

Modern web development prefers using UTF-8 encoding throughout the stack. In a UTF-8 document, you can type characters like © or π directly. However, you must still escape the reserved characters (<, >, &, ", ') for security and syntax reasons.


Related Tools on Tool3M