How to Type the Superscript Two

²

Click the button to copy the Superscript Two.

Superscript Two Codes

Symbol²
UnicodeU+00B2
HTML named entity²
HTML decimal²
HTML hexadecimal²
CSS escape\00B2
JavaScript escape\u00B2
Windows Alt codeAlt + 0178

How to Type ² on Windows

For a one-time use, the copy button is the fastest and most reliable choice. When the Alt code listed above is available, turn on Num Lock, hold Alt, enter the digits on the numeric keypad, and release Alt. The number row above the letters does not normally work for legacy Alt codes.

In Microsoft Word and several Office applications, type 00B2 and press Alt + X. Word converts the hexadecimal Unicode value into ². Press Alt + X again to switch it back to the code.

How to Type ² on a Mac

Open Character Viewer with Control + Command + Space, search for Superscript Two, and select the character. Some common symbols also have direct Option-key shortcuts, but Character Viewer is more consistent across keyboard layouts.

Chromebook, Linux, iPhone, and Android

On a Chromebook, press Ctrl + Shift + U, enter 00b2, and press Enter. Many Linux applications use the same Unicode entry sequence. On phones and tablets, hold a related key to check for alternate characters; when the symbol is not offered, copy it from this page and paste it into the destination app.

Using ² in HTML and CSS

UTF-8 pages can usually include the symbol directly. The named or numeric HTML references above are useful when source code clarity or encoding compatibility matters. In CSS generated content, use the CSS escape shown in the table, followed by a space when another hexadecimal character immediately follows it.