HTML Number Entities

Beginner
7 min read
Updated: Sep 2026
1 example
Digits, fractions, Roman

What Are HTML Number Entities?

HTML number entities are character references for number-shaped glyphs — ASCII digits, superscripts and subscripts, vulgar fractions, circled dingbat numerals, and Roman numeral code points.

Remember
Named (common)  ½ ¼ ¾ ¹ ² ³
Digits          type 0–9 (or 0–9 when explicit)
Circled / CSS   ❶ · content: "\2776"
Prefer UTF-8    type the glyph when the whole toolchain is Unicode-safe

Prefer named forms when HTML defines them; use hex or decimal from the table when there is no short name. For operators and relations, see HTML Math Entities.

Quick Reference

Search by symbol, Unicode, hex, decimal, or entity name.

SymbolUnicodeHex codeHTML codeHTML entity
0U+003000-
1U+003111-
2U+003222-
3U+003333-
4U+003444-
5U+003555-
6U+003666-
7U+003777-
8U+003888-
9U+003999-
⁰U+2070⁰⁰-
¹U+00B9¹¹¹
²U+00B2²²²
³U+00B3³³³
⁴U+2074⁴⁴-
⁵U+2075⁵⁵-
⁶U+2076⁶⁶-
⁷U+2077⁷⁷-
⁸U+2078⁸⁸-
⁹U+2079⁹⁹-
₀U+2080₀₀-
₁U+2081₁₁-
₂U+2082₂₂-
₃U+2083₃₃-
₄U+2084₄₄-
₅U+2085₅₅-
₆U+2086₆₆-
₇U+2087₇₇-
₈U+2088₈₈-
₉U+2089₉₉-
❶U+2776❶❶-
❷U+2777❷❷-
❸U+2778❸❸-
❹U+2779❹❹-
❺U+277A❺❺-
❻U+277B❻❻-
❼U+277C❼❼-
❽U+277D❽❽-
❾U+277E❾❾-
❿U+277F❿❿-
➀U+2780➀➀-
➁U+2781➁➁-
➂U+2782➂➂-
➃U+2783➃➃-
➄U+2784➄➄-
➅U+2785➅➅-
➆U+2786➆➆-
➇U+2787➇➇-
➈U+2788➈➈-
➉U+2789➉➉-
➊U+278A➊➊-
➋U+278B➋➋-
➌U+278C➌➌-
➍U+278D➍➍-
➎U+278E➎➎-
➏U+278F➏➏-
➐U+2790➐➐-
➑U+2791➑➑-
➒U+2792➒➒-
➓U+2793➓➓-
↉U+2189↉↉-
¼U+00BC¼¼¼
½U+00BD½½½
¾U+00BE¾¾¾
⅐U+2150⅐⅐-
⅑U+2151⅑⅑-
⅒U+2152⅒⅒-
⅓U+2153⅓⅓⅓
⅔U+2154⅔⅔⅔
⅕U+2155⅕⅕⅕
⅖U+2156⅖⅖-
⅗U+2157⅗⅗⅗
⅘U+2158⅘⅘⅘
⅙U+2159⅙⅙⅙
⅚U+215A⅚⅚⅚
⅛U+215B⅛⅛⅛
⅜U+215C⅜⅜⅜
⅝U+215D⅝⅝⅝
⅞U+215E⅞⅞⅞
⅟U+215F⅟⅟-
ⅠU+2160ⅠⅠ-
ⅡU+2161ⅡⅡ-
ⅢU+2162ⅢⅢ-
ⅣU+2163ⅣⅣ-
ⅤU+2164ⅤⅤ-
ⅥU+2165ⅥⅥ-
ⅦU+2166ⅦⅦ-
ⅧU+2167ⅧⅧ-
ⅨU+2168ⅨⅨ-
ⅩU+2169ⅩⅩ-
ⅪU+216AⅪⅪ-
ⅫU+216BⅫⅫ-
ⅬU+216CⅬⅬ-
ⅭU+216DⅭⅭ-
ⅮU+216EⅮⅮ-
ⅯU+216FⅯⅯ-
ⅰU+2170ⅰⅰ-
ⅱU+2171ⅱⅱ-
ⅲU+2172ⅲⅲ-
ⅳU+2173ⅳⅳ-
ⅴU+2174ⅴⅴ-
ⅵU+2175ⅵⅵ-
ⅶU+2176ⅶⅶ-
ⅷU+2177ⅷⅷ-
ⅸU+2178ⅸⅸ-
ⅹU+2179ⅹⅹ-
ⅺU+217Aⅺⅺ-
ⅻU+217Bⅻⅻ-
ⅼU+217Cⅼⅼ-
ⅽU+217Dⅽⅽ-
ⅾU+217Eⅾⅾ-
ⅿU+217Fⅿⅿ-
ↀU+2180ↀↀ-
ↁU+2181ↁↁ-
ↂU+2182ↂↂ-
ↃU+2183ↃↃ-
ↄU+2184ↄↄ-
ↅU+2185ↅↅ-
ↆU+2186ↆↆ-

When to Use Which

SituationUse
Ordinary digits 0–9Type them directly (UTF-8)
Common fractions½, ¼, ¾, ⅓, ⅔
Superscripts ¹ ² ³¹, ², ³
Other superscripts / subscriptsHex / decimal from the table above
Circled dingbat numerals❶ or CSS content: "\2776"
Complex equationsMathML or KaTeX / MathJax — not entities alone

Live Preview

Common number glyphs from character references.

Digits and superscripts 0–9 · 10² m³
Vulgar fractions ½ ¼ ¾ ⅓ ⅔
Dingbat circled ❶ ❷ ❸ ❹ ❺
Roman (Unicode) Ⅹ Ⅺ Ⅻ ⅰ ⅱ
Large type ½ ❶ Ⅰ

Complete HTML Example

One page that shows digit references, named fractions and superscripts, and a CSS circled numeral. Use View Output or open the live editor.

Digits + Fractions + Superscripts + CSS

Explicit digit refs, named fractions, powers, and a stylesheet-injected circled one.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>HTML Number Entities</title>
  <style>
    .circled-one::after {
      content: "\2776";
    }
  </style>
</head>
<body>
  <p>Digits (decimal refs): &#48;&#49;&#50;</p>
  <p>Fractions: &frac12; &frac14; &frac34;</p>
  <p>Powers: 10&sup2; m&sup3;</p>
  <p>Circled via CSS: <span class="circled-one"></span></p>
</body>
</html>
Try It Yourself

How It Works

1. Digits: &#48;–&#50; are explicit decimal references for 0–2. Typing 012 is usually better for normal text.

2. Named: &frac12;, &frac14;, &frac34;, &sup2;, and &sup3; are HTML named references for common fractions and superscripts.

3. CSS: \2776 in content injects circled digit one (U+2776). Escapes belong in stylesheets, not as HTML entities.

4. Same glyph: named, hex, decimal, CSS, and typed UTF-8 all resolve to the same Unicode character when the code point matches.

Pitfalls & Tips

Common mistakes when working with number entities.

Named

Prefer names when available

&frac12; and &sup2; are clearer than numeric forms. Use the table for symbols without a short HTML5 name.

Digits

Type 0–9 by default

Entities for ASCII digits are optional teaching tools — not required for ordinary body text.

Font

Dingbat coverage varies

Circled numerals need fonts that include Dingbats. Test on target devices.

A11y

Pair glyphs with text

Do not rely on circled dingbats alone for “step 1” — keep accessible text nearby.

CSS vs HTML

Do not mix escapes

\2776 belongs in CSS. &#x2776; / &#10102; belong in HTML.

Semicolon

End references

Always finish with ; — write &frac12; and &#189;, not bare forms.

Browser Support

Named and numeric number character references work in all mainstream browsers with UTF-8 documents. Visible glyphs for dingbats and Number Forms depend on font coverage.

✓ Universal support

HTML Number Entities

Encode with named, hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
Number entities Full support

Bottom line: Prefer named entities when listed. Type ASCII digits directly. Use numeric forms from the table for circled and Roman forms. Use CSS escapes only inside content.

Key Takeaways

  • Named: &frac12;, &frac14;, &sup2;, &sup3;.
  • Numeric: use hex / decimal from the Quick Reference for circled and Roman forms.
  • CSS: use escapes such as \2776 inside content for generated text.
  • Default: type ASCII digits; save entities for special number glyphs.

One line: named when available → numeric from the table → CSS escape only in content.

Frequently Asked Questions

Character references for number-shaped glyphs: digits, superscripts and subscripts, vulgar fractions, circled numerals, Roman numerals, and related forms. They use the same &name;, &#…;, and &#x…; mechanisms as any other HTML entity.
Use &sup2; and &sup3;, or &#x00B2; / &#178; and &#x00B3; / &#179;. For other superscripts and all subscripts, copy hex or decimal from the Quick Reference table.
Named entities include &frac12;, &frac14;, &frac34;, &frac13;, and &frac23;. Otherwise use the numeric codes from the same table row.
Each circled dingbat is a single Unicode character (for example U+2776). Use &#x2776; or the decimal value from the table, or inject it via CSS content with a matching escape such as \2776.
HTML entities go in markup. CSS uses backslash hex in content on ::before/::after (for example \2776 for a circled one). Prefer HTML for body text and CSS when the design injects the glyph.
Usually no — type them directly in UTF-8. Use &#48;–&#57; only when you need explicit encoding (restricted pipelines, teaching markup).

Did you know?

Common number glyphs have short HTML5 names — &frac12;, &frac14;, &frac34;, &sup1;, &sup2;, &sup3;. ASCII digits usually need no entity. Circled dingbats and many Roman forms use numeric references from the table.

Next: Punctuation Entities

Continue to HTML punctuation entities — quotes, dashes, and related forms.

Punctuation Entities tutorial →

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