Superscript Two Superscript Digit Two is the Unicode character ² at codepoint U+00B2 in the Latin-1 Supplement block of the Basic Multilingual Plane (BMP). Click the character above to copy it to your clipboard — or use one of the
encodings below to embed it in HTML, CSS, JavaScript, Python or plain text.
Technical Reference
| Unicode Codepoint | |
| Decimal | |
| UTF-8 (hex) | |
| UTF-16 (hex) | |
| HEX Entity | |
| HTML Entity | |
| CSS (\xxxx) | |
| JavaScript | |
| Python |
How to Use Superscript Two Superscript Digit Two
To use the Superscript Two Superscript Digit Two symbol (²) in HTML, insert the
entity ² directly into your markup. The decimal entity ² works in any HTML-serialised document.
In CSS pseudo-elements use content: '\B2';.
In JavaScript and TypeScript the escape '\u00B2' evaluates to ². In Python source, write '\u00B2'.
The character encodes to C2 B2 as UTF-8 bytes and 00B2 as UTF-16 code units. Its decimal codepoint is 178.
This is a text-based Unicode character. It will render in the current font on most platforms. If a font lacks this glyph, the browser may show a placeholder or fall back to a system font.