Superscript two

² is the Unicode character “SUPERSCRIPT TWO” (U+00B2). It belongs to the Latin 1 Supplement block and was added in Unicode 1.1. Click it to copy, or use the codes below.

² codes

UnicodeCode point U+00B2
HTML codeDecimal, works in any HTML page ²
HTML hexHexadecimal HTML code ²
HTML entityNamed HTML entity ²
CSSFor the CSS content property \00B2
JavaScriptEscape in JavaScript strings \u00B2
PythonEscape in Python strings \u00B2
URL encodedPercent-encoded UTF-8 %C2%B2
UTF-8Bytes in UTF-8 C2 B2
UTF-16Code units in UTF-16 00B2
Alt codeWindows, number pad Alt + 253

How to type ²

Copy and paste

Click to copy it, then paste with Ctrl + V (⌘ + V on a Mac) or a long press on phones.

Windows

Hold Alt and type 253 on the number pad (Num Lock on), then let go of Alt.

In Microsoft Word, type 00B2 and press Alt + X.

Mac

Press Control + ⌘ + Space to open the Character Viewer, then search for “superscript two”.

iPhone and Android

Copy it here and paste it. To type it again later, save it as a text replacement (iPhone: Settings › General › Keyboard › Text Replacement; Gboard: Settings › Dictionary › Personal dictionary).

HTML and CSS

Unicode U+00B2. Every format is on the superscript two page.

About ²

Unicode name
SUPERSCRIPT TWO
Code point
U+00B2 (178)
Block
Latin 1 Supplement
Category
Other Number
Unicode version
1.1