How to Type Squared Symbol (²)

Copy it, then paste with Ctrl + V (Cmd + V on Mac).

Quick answer

MethodHow
Copy and pasteUse the copy button above
WindowsAlt + 0178
MacCtrl + Cmd + Space (Character Viewer)
Microsoft WordType 00B2, then press Alt + X
Chromebook and LinuxCtrl + Shift + U, type 00B2, press Enter
HTML² or ²
CSS\00B2
JavaScript\u00B2
UnicodeU+00B2 (Superscript Two)

How to type the Squared Symbol on Windows

Hold Alt and type 0178 on the numeric keypad (Num Lock on), then release Alt.

You can also type 253 on the numeric keypad (older code page).

No numeric keypad? On a laptop, use Win + . or open Character Map (search for charmap in Start).

In Microsoft Word, type 00B2 and then press Alt + X to turn the code into ².

How to type the Squared Symbol on a Mac

Press Ctrl + Cmd + Space to open the Character Viewer, search for the name and double-click it.

On a Chromebook or Linux

Press Ctrl + Shift + U, type 00b2, then press Enter or Space.

On iPhone and Android

Switch to the symbols keyboard (123 then #+= on iPhone, ?123 then =\< on Android). If it is not there, copy it from this page.

In Google Docs

Go to Insert > Special characters and search for "squared symbol".

About this character

Used for squares and areas, as in ft².

In Excel and Google Sheets

Use the formula =UNICHAR(178) in Excel 2013 or later and in Google Sheets. It returns ² in the cell, so you can combine it with other text, for example ="25"&UNICHAR(178).

In Microsoft Word, PowerPoint and Outlook

  • Unicode shortcut: type 00B2, then press Alt + X. Word turns the code into ². Press Alt + X again to turn it back into the code.
  • Insert menu: Insert > Symbol > More Symbols, choose the "(normal text)" font, set "from" to Unicode (hex) and enter 00B2 in the Character code box.
  • AutoCorrect shortcut: File > Options > Proofing > AutoCorrect Options. Type a shortcut such as (x) in "Replace" and ² in "With". From then on, Word replaces the shortcut automatically.

Make your own shortcut on any device

  • Mac, iPhone and iPad: System Settings > Keyboard > Text Replacements (Mac) or Settings > General > Keyboard > Text Replacement (iPhone and iPad). Add ² with a short phrase. It syncs across your Apple devices.
  • Android (Gboard): Settings > Dictionary > Personal dictionary > choose your language > + . Enter ² as the word and a shortcut.
  • Windows: press Win + V to turn on clipboard history and pin ² so it is always one click away.

For developers

FormatCode
HTML entity&sup2; or &#178; or &#x00B2;
CSS content"\00B2"
JavaScript"\u00B2" or String.fromCodePoint(178)
Python"\u00B2" or chr(178)
URL encoded%C2%B2
UTF-8 bytesC2 B2
UTF-160x00B2
Unicode code pointU+00B2 (decimal 178)

Alt code not working?

  1. Turn on Num Lock. Alt codes only work with the numeric keypad, not the number row above the letters.
  2. Hold Alt the whole time and type all digits before releasing it.
  3. Laptop without a keypad? Use Win + . (period) to open the symbol panel, or copy ² from the top of this page.
  4. Wrong character appears? Codes with a leading zero (Alt + 0xxx) and codes without one (Alt + xxx) come from different character sets, so they give different characters. Use the code exactly as shown on this page.
  5. Some apps block Alt codes. In that case use copy and paste or the Unicode method above.

Character details

PropertyValue
Official Unicode nameSuperscript Two
CategoryOther number
CharacterNameWindowsMacHTML
‰Per Mille SignAlt + 0137Option + Shift + R&permil;
¬Not SignAlt + 0172Option + L&not;
±Plus-Minus SignAlt + 0177Option + Shift + =&plusmn;
³Cubed SymbolAlt + 0179Character Viewer&sup3;
µMicro SignAlt + 0181Option + M&micro;
¹Superscript OneAlt + 0185Character Viewer&sup1;
¼One Quarter FractionAlt + 0188Character Viewer&frac14;
½One Half FractionAlt + 0189Character Viewer&frac12;
¾Three Quarters FractionAlt + 0190Character Viewer&frac34;
×Multiplication SignAlt + 0215Character Viewer&times;

Type symbols faster

If you use a symbol every day, a text replacement shortcut is the fastest method on every device: type a short code such as "(deg)" and your computer or phone swaps in the symbol automatically. For symbols you use only occasionally, keep this page bookmarked or install Typeri as an app for one-tap access, even offline. And if you are still looking at the number row while you type codes, our number drills build the muscle memory for every digit.

More questions

What is the Unicode for squared symbol? U+00B2, decimal 178.

How do I type ² on a laptop without a number pad? Press Win + . (period) to open the emoji and symbol panel, or type the hex code followed by Alt + X in Word. On a Mac, use the Option shortcut or Ctrl + Cmd + Space.

How do I insert ² in Excel? Type =UNICHAR(178) in a cell, or copy ² from this page and paste it.

Why does my Alt code type the wrong symbol? Codes with a leading zero use the Windows-1252 character set, and codes without it use the older code page 437, so Alt + 0xxx and Alt + xxx give different characters. Also make sure you use the numeric keypad with Num Lock on.

Related characters

Frequently asked questions

What is the Alt code for ²?

On Windows, hold Alt and type 0178 on the numeric keypad.

How do I type ² on a Mac?

Open the Character Viewer with Ctrl + Cmd + Space and search for it.

What is the HTML code for ²?

Use &sup2; or &#178; in HTML.