HTML Entity for Superscript Zero (⁰)

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

What Is the Superscript Zero Entity?

Superscript Zero (⁰) is the Unicode character at U+2070 in the Subscripts and Superscripts block. It looks like a small raised 0 and appears in power notation such as x⁰ and 10⁰.

Remember
Character     ⁰
Unicode       U+2070
Hex entity    ⁰
Decimal       ⁰
CSS escape    \2070
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>0</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&#x2070;HTML markup
Decimal entity&#8304;HTML markup
CSS escape\2070Stylesheet content
Named entity—Not defined in HTML5
Semantic tag<sup>0</sup>HTML (formatting, not the ⁰ glyph)

When to use which

SituationUse
Need the Unicode glyph ⁰Type ⁰, or &#x2070; / &#8304;
Generated text via ::before / ::aftercontent: "\2070"
Semantic superscript for any text<sup>0</sup>
Plain digit zero (not superscript)Type 0 (U+0030)
Looking for &sup0; or similarDoes not exist — use numeric form

Live Preview

Superscript Zero rendered in common writing contexts.

Inline text Exponent rule: x⁰ = 1 (for x ≠ 0)
Large glyph ⁰
In a power 10⁰ = 1
Monospace x⁰ → 1
With entities Hex: ⁰ | Decimal: ⁰
Semantic <sup> x0 (tag styles digit 0)

Complete HTML Example

One page that shows Superscript Zero 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 zero in a single document.

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

How It Works

1. Hex: U+2070 → &#x2070; in HTML. The browser turns it into ⁰.

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

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

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

Pitfalls & Tips

Common mistakes when working with Superscript Zero entities.

Named?

No named entity

HTML5 does not define &sup0; or similar. Use numeric forms.

CSS vs HTML

Do not mix escapes

\2070 belongs in CSS. &#x2070; / &#8304; belong in HTML.

⁰ vs 0

Different characters

⁰ is U+2070; digit 0 is U+0030. Do not treat them as the same.

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 &#8304;, not &#8304.

Fonts

Check the glyph

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

Browser Support

Superscript Zero (U+2070) and its numeric entity forms (&#x2070;, &#8304;, CSS \\2070) are supported in all mainstream browsers. Glyph shape depends on the font.

✓ Universal support

Superscript Zero (⁰)

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

Bottom line: Use &#x2070; or &#8304; for the Unicode glyph, \\2070 only inside CSS content, and <sup>0</sup> when you want semantic superscript.

Key Takeaways

  • Unicode: Superscript Zero is U+2070 (decimal 8304).
  • HTML: use &#x2070; or &#8304; when you need an entity.
  • CSS: use \2070 inside content for generated text.
  • Alternative: use <sup>0</sup> for semantic superscript formatting.

One line: U+2070 → &#x2070; / &#8304; / CSS \2070, or semantic <sup>0</sup>.

Frequently Asked Questions

Use &#x2070; (hex), &#8304; (decimal), or the CSS escape \2070 in the content property. All render ⁰. You can also paste the character ⁰ directly when your file is UTF-8.
U+2070 (hex 2070, decimal 8304). It belongs to the Subscripts and Superscripts Unicode block.
No. HTML5 does not define a named entity for ⁰. Use numeric references like &#x2070; or &#8304;.
Use ⁰ (or its entities) when you need the exact Unicode superscript glyph. Use <sup>0</sup> when you want semantic superscript formatting for arbitrary text.
No. Digit zero is U+0030. Superscript Zero is U+2070 — a different character with a different code point.
HTML entities (&#8304; or &#x2070;) go in markup. The CSS escape \2070 is used in stylesheets (usually in the content property of ::before/::after). Both render ⁰.

Did you know?

Superscript zero is Unicode U+2070 (decimal 8304). HTML5 has no named entity for it — use &#x2070; or &#8304;. It is a different character from digit zero (U+0030).

Next: Digit One (1)

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

Digit 1 tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

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