U+00B2

Superscript two²

Superscript two is a monochrome text character from the Unicode Latin-1 Supplement block, listed here under Numbers. Copy it with one click, or use the hex, octal, decimal and HTML entity codes below to embed it in web pages, code, and documents. It is often searched for as "number", "2", "squared", "power".

Quick facts

Unicode
U+00B2
Decimal
178
Hex
0x00B2
Octal
0o262

Unicode identity

FormatValueCopy
Code pointOfficial Unicode notationU+00B2
Official nameUnicodeData.txt, Unicode 18.0.0SUPERSCRIPT TWO
Unicode 1.0 nameLegacy aliasSUPERSCRIPT DIGIT TWO
DecimalBase 10178
HexadecimalBase 160x00B2
OctalBase 80o262
BinaryBase 20000000010110010
General categoryNumber, otherNo
Unicode blockU+0080–U+00FFLatin-1 Supplement
PlaneBasic Multilingual Plane (BMP, Plane 0)

HTML & CSS

FormatValueCopy
HTML entity (decimal)²
HTML entity (hex)²
HTML entity (named)²
CSS content escapeUse inside content: "…"\00B2
URL encodedPercent-encoded UTF-8%C2%B2

Programming languages

FormatValueCopy
JavaScript / TypeScript\u00B2
JSONUTF-16 surrogate pairs\u00B2
Python\u00B2
Java / C# / Kotlin\u00B2

Byte encodings

FormatValueCopy
UTF-82 bytesC2 B2
UTF-16 (BE)00B2
UTF-32 (BE)000000B2

How to type Superscript two

  • Windows

    Hold Alt and type +B2 with the hex numeric keypad option enabled, or type B2 then press Alt+X in Word and most Office apps.

  • macOS

    Enable the Unicode Hex Input keyboard, hold Option, and type 00B2. Or open Character Viewer (Control+Command+Space) and search "Superscript two".

  • Linux

    Press Ctrl+Shift+U, type b2, then press Space or Enter in GTK apps. IBus and most terminals support the same sequence.

  • HTML, CSS & code

    Paste the character directly, or use the escapes above: ² in HTML, \00B2 in CSS, and \u00B2 in JavaScript.

Official Unicode reference

Character name
SUPERSCRIPT TWO
Unicode 1.0 name
SUPERSCRIPT DIGIT TWO
Block
Latin-1 Supplement (U+0080–U+00FF)
General category
No — Number, other

Data from the Unicode Character Database, version 18.0.0. See the official code chart for the Latin-1 Supplement block: U0080.pdf (PDF, unicode.org).

Frequently asked questions

How do I copy the Superscript two symbol?

Click the Copy button at the top of this page, or select ² and press Ctrl+C (Cmd+C on Mac). It is plain Unicode text, so it pastes into documents, chats, code, and design tools.

What is the Unicode code point for Superscript two?

Superscript two is U+00B2 (decimal 178, hexadecimal 0x00B2, octal 0o262). It lives in the Latin-1 Supplement block (U+0080–U+00FF) of the Basic Multilingual Plane (BMP, Plane 0).

What is the official Unicode name of Superscript two?

The Unicode Standard (version 18.0.0) names this character "SUPERSCRIPT TWO"; its Unicode 1.0 name was "SUPERSCRIPT DIGIT TWO". Its General_Category is No (Number, other).

What is the HTML code for Superscript two?

Use ² or ², or the named entity ². In CSS, use content: "\00B2".

How do I type Superscript two in code?

JavaScript: "\u00B2". Python: "\u00B2". JSON and Java: "\u00B2". The UTF-8 byte sequence is C2 B2.

Is Superscript two an emoji?

No. Superscript two is a text symbol and renders as a monochrome glyph in the current font. Some platforms may offer an emoji variant when U+FE0F is appended.

View all numbers