⁰ is the Unicode character SUPERSCRIPT ZERO, code point U+2070 (decimal 8304) in the Superscripts and Subscripts block, added in Unicode 1.1. In HTML write ⁰, and in UTF-8 it is the 3 bytes E2 81 B0.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2070 |
| Decimal | 8304 |
| UTF-8 bytes | E2 81 B0 |
| UTF-16 (big-endian) | 2070 |
| UTF-32 | 00002070 |
| HTML decimal | ⁰ |
| HTML hex | ⁰ |
| CSS | \2070 |
| JavaScript | \u2070 |
| JSON | \u2070 |
| Python | \u2070 |
| Python by name | \N{SUPERSCRIPT ZERO} |
| Java, C# | \u2070 |
| Rust, Swift | \u{2070} |
| Go, C, C++ | \u2070 |
| URL (percent-encoded) | %E2%81%B0 |
JavaScript and JSON strings store text as UTF-16, so this character is one code unit long. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | SUPERSCRIPT ZERO |
| Code point | U+2070 (decimal 8304) |
| Block | Superscripts and Subscripts (U+2070–U+209F) |
| General category | No: Other number |
| Script | Common |
| Bidirectional class | EN: European number |
| Numeric value | 0 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Decomposition
SUPERSCRIPT ZERO has a compatibility decomposition (super) to the sequence below. NFKC and NFKD normalisation replace it with that sequence, which can change how text looks, so use them for search, not for storage.
Nearby in Superscripts and Subscripts
- ⁱ U+2071 Superscript Latin Small Letter I
- ⁴ U+2074 Superscript Four
- ⁵ U+2075 Superscript Five
- ⁶ U+2076 Superscript Six
- ⁷ U+2077 Superscript Seven
- ⁸ U+2078 Superscript Eight
- ⁹ U+2079 Superscript Nine
- ⁺ U+207A Superscript Plus Sign
All 46 characters: Superscripts and Subscripts.
Official reference
Questions people ask
- What is the HTML code for ⁰?
- Use ⁰ (decimal) or ⁰ (hex).
- What is the UTF-8 encoding of U+2070?
- E2 81 B0 (hex), 3 bytes. In a URL it is %E2%81%B0.
- How do I write U+2070 in JavaScript or Python?
- JavaScript: \u2070. Python: \u2070.
Source
Unicode Character Database 18.0.0 (Unicode License v3); HTML entity names from the WHATWG HTML Standard (CC BY 4.0). The encodings above are computed from the code point and checked against Python's encoders. How the character looks depends on your fonts.
Legal entity
Devansh Yadav
Moradabad, Uttar Pradesh
Governing law: Courts at Moradabad, Uttar Pradesh
Phone: +91 8433475698
Legal: legal@analyzeit.in