HTML Entity for Asterisk operator (∗)

Beginner
⏱️ 5 min read
📚 Updated: May 2026
🎯 1 Code Example
Unicode U+2217

What You'll Learn

How to insert the asterisk operator (, Unicode U+2217) in HTML. This is the centered mathematical asterisk defined in the Mathematical Operators block—not the same code point as the ASCII star on your keyboard (U+002A, *). For the ASCII character, see Asterisk math (U+002A).

You can write it as ∗, ∗, ∗, or \2217 in CSS content. Browsers map ∗ to U+2217 per the HTML named-character reference list.

⚡ Quick Reference — Asterisk operator (U+2217)

Unicode U+2217

Mathematical Operators

Hex Code ∗

Hexadecimal reference

HTML Code ∗

Decimal reference

Named Entity ∗

Readable in source

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2217
Hex code       ∗
HTML code      ∗
Named entity   ∗
CSS code       \2217
1

Complete HTML Example

Hex, decimal, named entity ∗, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2217";
  }
 </style>
</head>
<body>

<p>Asterisk using Hexa Decimal: &#x2217;</p>
<p>Asterisk using HTML Code: &#8727;</p>
<p>Asterisk using HTML Entity: &lowast;</p>
<p id="point">Asterisk using CSS Entity: </p>

</body>
</html>
Try it Yourself

🌐 Browser Support

&lowast; and numeric references for U+2217 are supported in all modern browsers:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

U+2217 beside the ASCII asterisk (U+002A) for comparison (glyphs can look similar depending on the font):

Operator (U+2217) a ∗ b
ASCII star (U+002A) a * b
Large U+2217
Monospace conv ∗ kernel
Named entity Same glyph: ∗ = ∗

🧠 How It Works

1

Hexadecimal Code

&#x2217; selects U+2217 using hex digits 2217.

HTML markup
2

Decimal HTML Code

&#8727; is decimal 872710 = 0x2217.

HTML markup
3

CSS Entity

\2217 is the CSS escape for the same code point in content (or other CSS strings that accept escapes).

CSS stylesheet
4

Named Entity

&lowast; is the standard named form for U+2217—do not confuse with &ast; (U+002A).

HTML markup
=

Same visual result

All references resolve to (ASTERISK OPERATOR). Block: U+2200–U+22FF Mathematical Operators.

Use Cases

Typical reasons to use U+2217 instead of the keyboard *:

📐 Math notation

Operator glyph in equations where Unicode semantics matter (e.g. convolution-style prose).

📚 Specs & standards

Documents that distinguish operator characters from ASCII punctuation.

📄 Lists & UI

Decorative bullets when you want the operator glyph rather than U+002A.

🔍 Search docs

Explaining wildcard syntax while showing a typographic operator star.

💻 Code docs

Narrative text about operators without tripping Markdown emphasis rules on *.

♿ Accessibility

Still pair footnote or “required” stars with visible text or ARIA.

🌐 i18n

Stable Unicode code point across locales for the operator character.

💡 Best Practices

Do

  • Pick &lowast; or numeric forms and stay consistent in one document
  • Use math fonts (STIX, Cambria Math) for aligned equation layouts
  • Document whether your style guide means U+2217 or U+002A for “star” operators
  • Reserve \2217 for CSS content, not raw HTML text
  • Link readers to U+002A when they need the ASCII asterisk

Don’t

  • Assume &ast; and &lowast; are the same (they are not)
  • Use U+2217 in passwords or code that must match literal ASCII *
  • Mix U+002A and U+2217 randomly in one formula without reason
  • Paste CSS escapes into HTML text nodes
  • Rely on glyph shape alone to teach the code-point difference—name the Unicode values

Key Takeaways

1

U+2217 is the asterisk operator; U+002A is ASCII *

&lowast; &#x2217;
2

Decimal &#8727; is equivalent to hex &#x2217;

&#8727;
3

CSS: \2217 inside content

\2217
4

Block: Mathematical Operators (with ∗, ×, ∑, etc.)

5

For keyboard-style stars in prose, see Asterisk math

❓ Frequently Asked Questions

Use &lowast;, &#8727;, &#x2217;, or \2217 in CSS content.
U+2217 ASTERISK OPERATOR. Decimal 8727, hex 2217.
No. &lowast; is U+2217; &ast; is U+002A (ASCII asterisk). They may look alike but are different characters.
HTML character references live in markup; \2217 is for CSS strings. Same glyph, different syntax.
Use U+002A for keyboard-style stars, passwords, and code. Use U+2217 when you explicitly want the mathematical operator character or clearer separation from ASCII in typography.

Explore More HTML Entities!

Discover 1500+ HTML character references — currency symbols, arrows, math operators, emojis, and more.

All HTML Entities →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful