| Symbol Name | Superscript Two |
| Unicode Version | 1.1 |
| Unicode | U+00B2 |
| Unicode block | |
| General category | Other Number (No) |
| CSS Code | \00B2 |
| Hex Code | 0x00B2 |
| HTML Code | ² |
| LaTeX | ^{2} |
| Symbol | ² |
| URL encode (UTF-8 percent) | %C2%B2 |
| Spoken / screen reader name | Superscript Two |
| UTF-8 | C2 B2 |
| UTF-16 | 00B2 |
| UTF-32 | 000000B2 |
1\documentclass{article}2\usepackage{pifont}3^{2}4\end{document}You can type the superscript two symbol on most modern devices with the help of following methods:
Alt + 178 on Windows (numeric keypad with Num Lock), or insert via Character Map.
Edit → Emoji & Symbols, search "superscript two", or use Unicode Hex Input with 00B2.
Ctrl + Shift + U, type 00b2, then Enter (layout-dependent).
Paste from this page, use text replacement, or pick from the symbol keyboard.
Paste from this page or use a keyboard with enclosed numeral support.
1span.superscript-two::before { content: "\00B2"; }1<span>²</span>Superscript Two symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | '\u00B2' or String.fromCodePoint(0x00B2) |
| Python | '\N{SUPERSCRIPT TWO}' or chr(178) |
| Rust | '\u{00B2}' |
| C / C++ | UTF-8 source or wchar_t with U+00B2 |
| Go | string(rune(0x00B2)) |
| Ruby | "\u00B2" |