²

Technical information

Symbol²
NameSuperscript two
Unicode numberU+00B2
CategorySubscript and superscriptSuperscript numbersLatin-1 Supplement2. Latin-1 punctuation and symbols
DescriptionThe Unicode character ², or U+00B2, is named "Superscript Two". It is part of the "Latin-1 Supplement" block, which extends the original ASCII character set to include additional characters used in Western languages. This character falls under the "Number, Other" category. Visually, it represents the digit two in a smaller font size and positioned slightly above the baseline, which is the typical presentation style for superscript characters. In mathematical and scientific contexts, the superscript two is most commonly used to represent the square of a number or variable (for example, x² means "x squared", or "x times x"). It may also be used in textual contexts to indicate a footnote or reference mark.

Encoding

HTML Entity²
HTML Entity (hex)²
HTML Entity (named)²
URL Escape Code%C2%B2
UTF-8 (hex)0xC2 0xB2
UTF-8 (binary)1100001010110010
UTF-160x00B2
UTF-320x000000B2

Source Code

C, C++, and Java"\u00B2"
CSS Code\00B2
JavaScript"\u00B2"
Perl\x{00B2}
Python 2u"\u00B2"
Python 3\u00B2
Ruby\u{00B2}

Preview

This Unicode character looks like this ² in sentence and in bold like this ² and in italic like this ².

Font size:

²
12px
²
16px
²
20px
²
28px
²
36px
²
48px
²
72px

CSS Property: font-weight

²
100
²
200
²
300
²
400
²
500
²
600
²
700
²
800
²
900

HTML Forms and Input

input
disabled input
²
input-group
select
button
button

Code examples in HTML and CSS

<span>&#178;</span>

            
span {
    content: "\00B2";
}

The symbol in different fonts

²
-apple-system
²
Apple Color Emoji
²
Arial
²
BlinkMacSystemFont
²
Courier New
²
Georgia
²
Droid Sans
²
Helvetica
²
Noto Sans
²
Oxygen
²
Roboto
²
"Segoe UI"
²
sans-serif
²
Segoe UI Emoji
²
Segoe UI Symbol
²
system-ui
²
Times New Roman
²
Ubuntu
²
Verdana

References