About superscript two
Superscript two is a raised digit used in expressions such as m². It is a separate text character and does not apply superscript styling to nearby text.
How to type ²
Source-checked methodsMicrosoft Word
Windows desktopUnicode conversion in Word for Windows
Type 00B2, select those hexadecimal digits, then press Alt + X to insert ².
Applies to Word for Windows. Use a font that contains the character. This is Unicode conversion, not a Windows Alt code.
Source documentationmacOS
Character ViewerCharacter Viewer
Choose Edit → Emoji & Symbols, search for “superscript two” or its code 00B2, then select the character to insert it.
Expand Character Viewer if needed. Available characters depend on font support.
Apple documentationMicrosoft Excel
Formula=UNICHAR(178)
Enter =UNICHAR(178) in a cell to return ².
Excel 2013 or later. The English function name is shown; localized Excel may use another name. Paste values if you need text without a formula.
Source documentationGoogle Docs
Desktop pickerInsert → Special characters
On a computer, choose Insert → Special characters and search for U+00B2 or superscript two. Select the matching symbol.
Google Docs and Slides on desktop. If the picker does not offer the symbol, copy it here and paste it into your document.
Source documentationLinux
GNOME / GTKCtrl + Shift + U, 00B2, Enter
In a compatible GNOME/GTK text field, press Ctrl + Shift + U, release the keys, type 00B2, then press Enter.
Applies to GNOME/GTK Unicode entry, not every Linux application. Use copy and paste when the app intercepts this shortcut.
Source documentationFor iPhone and Android, you can copy the character above and paste it into an app that supports it.
Using it in HTML
Insert ² in HTML text, or paste ² directly in a UTF-8 document. If a box appears instead of the character, choose a font with support for U+00B2.