How to type Superscript Zero
To type Superscript Zero (⁰), press Alt + 8304 on Windows, holding Alt while typing the digits on the numeric keypad, or write ⁰ in HTML. On any system you can copy it from this page, or enter its codepoint U+2070 directly: Ctrl+Shift+U then 2070 on Linux, or 2070 then Alt+X in Microsoft Word.
Superscript Zero
- Copy it
- Unicode
- U+2070
- Windows
- Alt + 8304 needs regedit
| Where | Shortcut | How |
|---|---|---|
| Windows | Alt + 8304 | Above 255, so Windows will not accept it as typed. Copy the character instead. |
| Mac | N/A | Press the keys together. |
| HTML | ⁰ | Paste this into HTML source. |
| Unicode | U+2070 | SUPERSCRIPT ZERO |
Other math symbols
⁰ lives in the Superscripts and Subscripts block (U+2070-U+209F), raised and lowered digits and letters. Within Unicode it is classified as No, a number that is not a digit. Fractions and superscript digits sit here. Its bidirectional class makes it a European number.
What happens to ⁰ in a search box
⁰ is a superscript form: Unicode says it can be rewritten as 0, one character. Anything that normalises text to NFKC before comparing it does exactly that, which is why ⁰ pasted into a search field, a URL slug or a username can come back as 0 and match text that never contained ⁰ at all. NFC, the form this site uses, leaves it alone. Unicode also records its numeric value as 0, so software that asks a character what number it is gets 0 rather than an error.
What ⁰ gets confused with
Unicode's own confusables table, the one used to catch lookalike domain names, groups ⁰ with º (U+00BA, Masculine Ordinal). They are separate characters that render close enough to be mistaken for one another, so a search or a string comparison will separate them where your eye will not. If Superscript Zero is not matching where you expect it to, one of these is the usual reason.
How Superscript Zero behaves in software
⁰ takes one column in a terminal.
Every way to write Superscript Zero
| Form | Value |
|---|---|
| Codepoint | U+2070 |
| Decimal | 8304 |
| UTF-8 bytes | E2 81 B0 |
| UTF-16 bytes | 20 70 |
| HTML entity | ⁰ |
| HTML numeric | ⁰ or ⁰ |
| CSS | \2070 |
| JavaScript | \u2070 |
| Python | \u2070 |
| URL-encoded | %E2%81%B0 |
| SVG | 2070.svg · (SIL Open Font License) |
If ⁰ arrives as â�°
Its three UTF-8 bytes E2 81 B0 are being read one at a time as Windows-1252. The text is undamaged; the reader has to be told it is UTF-8.