U+00B2

Superscript Two

Superscript Two (²) shown large, with its baseline, x-height and cap height
Alt code
Alt 0178
HTML
²
Unicode
U+00B2

The superscript two (²) is Unicode U+00B2, HTML ², Alt 0178 on Windows.

Superscript two is Unicode code point U+00B2, written ². Copy it with the button above and paste it anywhere text goes; the code table covers HTML, CSS, JavaScript and, where one exists, a Windows alt code.

Render test

Checking whether this device has a font that can draw ².

Superscript Two in every code representation: Unicode, HTML, CSS, JavaScript, UTF-8/UTF-16 and Windows alt code.
Symbol²
UnicodeU+00B2
NameSuperscript Two
HTML (decimal)²
HTML (hex)²
CSS content\00B2
JavaScript / JSON\u00B2
UTF-8 bytes0xC2 0xB2
UTF-16 units0x00B2
Windows alt codeAlt 0178 or Alt 253

Source: Unicode Character Database. Code point verified as assigned in Unicode 17.0. Last updated . Report an error

How do you type the superscript two on each platform?

Find your platform in the first column.

Every way to type the superscript two ², by platform
WhereHow to type it
Any deviceClick the ² at the top of this page. It goes straight to your clipboard, and you paste it with Ctrl+V on Windows or Cmd+V on a Mac. This is the only method that behaves identically everywhere.
WindowsHold Alt and type 0178 on the numeric keypad, then release Alt. With the leading zero Windows reads the number from the Windows-1252 code page. Alt 253, without the zero, reads code page 437, the old DOS set, and gives the same character on US-English Windows; other system languages can map that shorter number to a different character. The number row above the letters does not work for this.
macOSAdd Unicode Hex Input under Keyboard settings, switch to it, then hold Option and type 00B2. Without that input source, open the Character Viewer with Control+Command+Space and search for superscript two.
Linux and ChromeOSPress Ctrl+Shift+U, type 00b2, then press Enter or the space bar. This works in GTK applications and with IBus.
Microsoft WordType 00B2 in the document, then press Alt and X together with the cursor immediately after the last digit. Word replaces the digits with ².
Google DocsInsert, then Special characters, then paste U+00B2 or type superscript two in the search box. You can also draw the shape in the sketch pad on the right.
Excel and Google SheetsUse the formula UNICHAR(178) in a cell. Copy the cell and paste it as a value if you want the character rather than the formula.
HTMLWrite ² or ². There is no standard named entity for this character. On a page served as UTF-8 the character itself also works.
CSSUse content: "\00B2" inside a ::before or ::after rule. Terminate the escape with a space if the next character is also a hexadecimal digit.
JavaScriptThe escape \u00B2 produces this character inside a string literal, and the same escape is valid in JSON.

More detail per platform: Windows alt codes, special characters on a Mac, special characters in Word and HTML entities.

Frequently asked questions

How do I copy the superscript two symbol?

Press the Copy ² button at the top of this page, or click the large ², and it is placed on your clipboard. Paste it anywhere with Ctrl+V or Cmd+V. It is a real text character, so it works in documents, chats and code.

What is the Unicode code point for superscript two?

The superscript two has the Unicode code point U+00B2. In HTML you can write it as ² or ².

What is the alt code for the superscript two symbol?

On Windows, hold the Alt key and type 0178 or 253 on the numeric keypad, then release Alt. Copying the ² from this page is quicker and works on any device.

Is the superscript two an emoji or a text character?

It is a plain Unicode text character, not an image or an emoji sticker. That means the ² inherits the surrounding font, size and color wherever you paste it, and it works in places emoji often do not, such as usernames, file names and code.

Related symbols