²
Technical information
Symbol | ² | |
Name | Superscript two | |
Unicode number | U+00B2 | |
Category | Subscript and superscriptSuperscript numbersLatin-1 Supplement2. Latin-1 punctuation and symbols |
Description | The 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-16 | 0x00B2 | |
UTF-32 | 0x000000B2 |
Source Code
C, C++, and Java | "\u00B2" | |
CSS Code | \00B2 | |
JavaScript | "\u00B2" | |
Perl | \x{00B2} | |
Python 2 | u"\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 ².
input-group
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
²
select
button
button
Code examples in HTML and CSS
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