U+00B2 · Latin-1 Supplement
Superscript two ²: how to type it
Copy ² with one click, or type it with Alt + 0178 on Windows.
- WindowsAlt+0178 numeric keypad
- MacCtrl+⌘ Cmd+Space Character Viewer, then search
- Word00B2thenAlt+X
- iPhoneNo long-press for it. Copy it here.
- HTML
²or²
Every way to type ²
Only methods that exist on that system are shown as shortcuts.
Windows Alt code
- Turn on Num Lock.
- Hold Alt and type the digits on the numeric keypad (not the top row).
- Let go of Alt.
Mac Character Viewer
No Option-key shortcut exists on the U.S. layout. In the Character Viewer, search “superscript two” and double-click it.
Microsoft Word Alt + X
Type 00B2, then press Alt + X (Word for Windows).
Google Docs menu
Insert › Special characters, then search “superscript two”, or paste it from here.
iPhone and iPad copy
Not on a long-press of the default keyboard. Copy it here, or add a Text Replacement (Settings › General › Keyboard › Text Replacement).
Android symbol pages
Gboard keeps many common symbols on its symbol pages (tap ?123, then =\<). If it is not there, copy it here, or save it in Gboard’s Personal dictionary with a shortcut.
Linux Unicode input
GNOME and most GTK apps (IBus).
Chromebook Unicode input
Type the code after the underlined u appears.
How ² is stored in UTF-8
2 bytes (16 bits) for 1 code point
Codes
For HTML, CSS, JavaScript, JSON, Python and URLs.
| HTML entity | ² | |
|---|---|---|
| Unicode | U+00B2 | |
| HTML decimal | ² | |
| HTML hex | ² | |
| CSS content | \00B2 | |
| JavaScript | \u00B2 | |
| JSON | \u00b2 | |
| Python | \u00b2 | |
| UTF-8 bytes | C2 B2 | |
| UTF-16 | 00B2 | |
| URL encoded | %C2%B2 | |
| Python name | \N{SUPERSCRIPT TWO} |
From the Unicode Standard
Names, aliases and notes from the Unicode 13.0 names list.
- Unicode name SUPERSCRIPT TWO
- Category Other number (No)
- Block Latin-1 Supplement
- Also called squared
- Note other superscript digit characters: 2070-2079
Related symbols
Look-alikes named in the Unicode notes first, then neighbours in the same block.
| Symbol | Name | Code | Alt code |
|---|---|---|---|
| ¹ | Superscript one | U+00B9 | Alt + 0185 |
| ³ | Superscript three | U+00B3 | Alt + 0179 |
| ± | Plus-minus sign | U+00B1 | Alt + 0177 |
| ´ | Acute accent | U+00B4 | Alt + 0180 |
| ° | Degree sign | U+00B0 | Alt + 0176 |
| µ | Micro sign | U+00B5 | Alt + 0181 |
Questions
What is the Alt code for Superscript two (²)?
Hold Alt and type 0178 on the numeric keypad, then let go of Alt. The older code Alt + 253 also works in most programs.
How do I type ² on a Mac?
Character Viewer: press Ctrl + Cmd + Space and search its name, because no Option-key shortcut exists.
What is the HTML code for ²?
Use ² or ² (decimal) or ² (hex).
Sources: Unicode Character Database 13.0 and Unicode emoji 13.0 (Unicode, Inc.); Alt codes computed from code pages 437 and 1252; Mac keys from the Apple U.S. keyboard layout. How this page is made.