HTML Entity for Superscript Eight (⁸)

Beginner
6 min read
Updated: Sep 2026
1 example
Unicode U+2078

What Is the Superscript Eight Entity?

Superscript Eight (⁸) is the Unicode character at U+2078 in the Subscripts and Superscripts block. It looks like a small raised 8 and appears in power notation such as x⁸ and 10⁸.

Remember
Character     ⁸
Unicode       U+2078
Hex entity    ⁸
Decimal       ⁸
CSS escape    \2078
Named entity  (none)

All of these produce the same glyph: ⁸. Prefer the Unicode character (or its entities) when you need that exact glyph; use <sup>8</sup> when you want semantic superscript formatting instead.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character⁸HTML text (UTF-8)
Hex entity&#x2078;HTML markup
Decimal entity&#8312;HTML markup
CSS escape\2078Stylesheet content
Named entity—Not defined in HTML5 (unlike &sup1;–&sup3;)
Semantic tag<sup>8</sup>HTML (formatting, not the ⁸ glyph)

When to use which

SituationUse
Need the Unicode glyph ⁸Type ⁸, or &#x2078; / &#8312;
Generated text via ::before / ::aftercontent: "\2078"
Semantic superscript for any text<sup>8</sup>
Plain digit eight (not superscript)Type 8 (U+0038)
Looking for &sup8;Does not exist — use numeric form

Live Preview

Superscript Eight rendered in common writing contexts.

Inline text Eighth power: x⁸
Large glyph ⁸
In a power 10⁸ = 100,000,000   2⁸ = 256
Monospace x⁸ → eighth power
With entities Hex: ⁸ | Decimal: ⁸
Semantic <sup> x8 (tag styles digit 8)

Complete HTML Example

One page that shows Superscript Eight with the hex entity, decimal entity, CSS escape, and the semantic <sup> option. Use View Output or open the live editor.

Hex + Decimal + CSS + <sup>

Four ways to show a raised eight in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Superscript Eight (⁸) in HTML</title>
  <style>
    #point::after {
      content: "\2078";
    }
  </style>
</head>
<body>
  <p>Superscript Eight using Hex Code: &#x2078;</p>
  <p>Superscript Eight using HTML Code: &#8312;</p>
  <p id="point">Superscript Eight using CSS Entity: </p>
  <p>Semantic alternative: x<sup>8</sup></p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+2078 → &#x2078; in HTML. The browser turns it into ⁸.

2. Decimal: same code point as 8312 → &#8312;. Same result as hex.

3. CSS: use \2078 in content (not an HTML entity). #point::after appends that ⁸ after the paragraph text.

4. Semantic <sup>: x<sup>8</sup> styles digit eight as a superscript. Prefer this when you need meaning, not a specific Unicode glyph.

Pitfalls & Tips

Common mistakes when working with Superscript Eight entities.

Named?

No &sup8;

HTML5 has &sup1;, &sup2;, and &sup3; only. For ⁸, use numeric forms.

CSS vs HTML

Do not mix escapes

\2078 belongs in CSS. &#x2078; / &#8312; belong in HTML.

⁸ vs 8 vs ₈

Different characters

⁸ is U+2078; digit 8 is U+0038; subscript ₈ is U+2088.

Glyph vs tag

Choose intentionally

Use the Unicode glyph for exact look; use <sup> for semantic superscript on any text.

Semicolon

End references

Always finish with ; — write &#8312;, not &#8312.

Fonts

Check the glyph

Some fonts draw ⁸ weakly. If appearance matters, test the font or prefer <sup>.

Browser Support

Superscript Eight (U+2078) and its numeric entity forms (&#x2078;, &#8312;, CSS \\2078) are supported in all mainstream browsers. Glyph shape depends on the font.

✓ Universal support

Superscript Eight (⁸)

Encode with hex, decimal, or CSS escape — or use <sup> for semantic formatting.

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
U+2078 / entities Full support

Bottom line: Use &#x2078; or &#8312; for the Unicode glyph, \\2078 only inside CSS content, and <sup>8</sup> when you want semantic superscript.

Key Takeaways

  • Unicode: Superscript Eight is U+2078 (decimal 8312).
  • HTML: use &#x2078; or &#8312; when you need an entity.
  • CSS: use \2078 inside content for generated text.
  • Alternative: use <sup>8</sup> for semantic superscript formatting.

One line: U+2078 → &#x2078; / &#8312; / CSS \2078, or semantic <sup>8</sup>.

Frequently Asked Questions

Use &#x2078; (hex), &#8312; (decimal), or the CSS escape \2078 in the content property. All render ⁸. You can also paste the character ⁸ directly when your file is UTF-8.
U+2078 (hex 2078, decimal 8312). It belongs to the Subscripts and Superscripts Unicode block.
No. HTML5 defines &sup1;, &sup2;, and &sup3;, but not &sup8;. Use numeric references like &#x2078; or &#8312;.
Use ⁸ (or its entities) when you need the exact Unicode superscript glyph. Use <sup>8</sup> when you want semantic superscript formatting for arbitrary text.
No. Digit eight is U+0038. Subscript eight is U+2088 (₈). Superscript Eight is U+2078 (⁸) — a different character.
HTML entities (&#8312; or &#x2078;) go in markup. The CSS escape \2078 is used in stylesheets (usually in the content property of ::before/::after). Both render ⁸.

Did you know?

Superscript eight is Unicode U+2078 (decimal 8312). HTML5 has no named entity for it — unlike &sup1;, &sup2;, and &sup3;. Use &#x2078; or &#8312;. It is a different character from digit eight (U+0038) and from subscript eight ₈ (U+2088).

Next: Digit Nine (9)

Continue the entity series with the HTML reference for digit nine — a different character from superscript eight.

Digit 9 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