² superscript two
U+00B2 · SUPERSCRIPT TWO
How to type ²
Shortcuts verified against Microsoft, Apple and X.Org documentation.
Windows
- Alt code
- Hold Alt, type Alt+0178 on the numeric keypad, release Alt.
- Alt code
- The short code Alt+253 also works on US English systems (code page 437).
- Alt codes need the numeric keypad with Num Lock on. On a laptop without one, use the Word method or copy the character.
- Alt+X in Word and Outlook
- Type 00B2 then press Alt+X. The code turns into ².
- US-International keyboard
- With the US-International layout enabled: AltGr+2.
- Character Map
- Open Character Map (search “charmap” in the Start menu), find ², click Select then Copy.
Google Docs: Insert > Special characters, then type “superscript two (squared)” or draw ². Your operating system shortcut also works inside Docs.
Mac
- Option key
- There is no Option shortcut for ² on the US keyboard layout.
- Unicode Hex Input
- Switch to Unicode Hex Input, hold Option and type 00B2.
- Character Viewer
- Press Control+Command+Space, search “superscript two (squared)” and double-click ².
Google Docs: Insert > Special characters, then type “superscript two (squared)” or draw ². Your operating system shortcut also works inside Docs.
iPhone and iPad
- iPhone keyboard
- ² is not in the English keyboard pop-up on iPhone.
- Or just copy it
- Tap ² at the top of this page and paste it anywhere.
Google Docs: Insert > Special characters, then type “superscript two (squared)” or draw ². Your operating system shortcut also works inside Docs.
Android
- Android keyboard (Gboard)
- Touch and hold the 2 key, slide to ², release.
- Or just copy it
- Tap ² at the top of this page and paste it anywhere.
Google Docs: Insert > Special characters, then type “superscript two (squared)” or draw ². Your operating system shortcut also works inside Docs.
Linux
- Compose key
- Press Compose ^ 2 (enable the Compose key in your keyboard settings first).
- Unicode entry (GTK apps and Chromebook)
- Press Ctrl+Shift+U, type b2, then press Space or Enter.
Google Docs: Insert > Special characters, then type “superscript two (squared)” or draw ². Your operating system shortcut also works inside Docs.
Chromebook
- Chromebook
- Press Ctrl+Shift+U, type b2, press Enter. Or add the US International keyboard in Settings.
- US-International keyboard
- With the US-International layout enabled: AltGr+2.
Google Docs: Insert > Special characters, then type “superscript two (squared)” or draw ². Your operating system shortcut also works inside Docs.
Codes for developers
Click any value to copy it
- Unicode
- Unicode name
- HTML named entity
- HTML decimal
- HTML hex
- CSS
- JavaScript
- Python
- Java / C# / Kotlin
- URL encoded (UTF-8)
- UTF-8 bytes
Questions about ²
How do I type ² on Windows?
Hold Alt and type 0178 on the numeric keypad, then release Alt. In Word you can also type 00B2 and press Alt+X.
How do I type ² on a Mac?
Hold the ² key on your Mac keyboard and pick ² from the pop-up accent menu, or use the Character Viewer (Control+Command+Space).
How do I type ² on my phone?
On iPhone and Android, press and hold the 2 key and slide to ².
What is the HTML code for ²?
Use ² or the numeric entity ² (hex ²). In CSS write \B2, in JavaScript \u00B2.