Squared Symbol (Superscript Two)

Unicode Name: Superscript Two

²

Shortcodes

Copy and paste codes for Squared Symbol (Superscript Two) ² to use in your websites, apps, blogs, and more.

Unicode
U+00B2
Alt Code
178
HTML Code
²
HTML Entity
²
HEX Code
²
CSS Code
\0B2
JS/JSON
\u00B2
Unix/C/PHP/JAVA
0xB2
URL-encode
%C2%B2
copied

Customize ² Symbol

Customize ² symbol as you like and download Squared Symbol (Superscript Two) as SVG or PNG or copy its HTML code to use in your projects.

Preview helps customize symbol. Downloaded image and HTML code may have size/spacing differences.
²
 

How to type Squared Symbol (Superscript Two) ² ?

Using Squared Symbol (Superscript Two) Alt Code:

You can type the Squared Symbol (Superscript Two) ² using your keyboard by using the Alt Code for Squared Symbol (Superscript Two). Before you begin, ensure that your Num Lock is turned on, and use the Numpad to type the code. Then, follow these simple steps:

  1. Hold down the Alt key on your keyboard.
  2. Type the Alt code 178 using the Numpad.
  3. Release the Alt key.

This will make the ² appear on your screen.

Alternative Methods:

  • You can try inserting Squared Symbol (Superscript Two) using these system tools:
    • Mac Character Viewer (Control + Command + Space)
    • Windows Emoji/Symbol Picker (Win + .)
    • Windows Character Map (charmap.exe)
  • Note: These tools may not include all Unicode symbols
  • Copy and paste the ² symbol directly from this website.
  • Use provided codes for Squared Symbol (Superscript Two) where they are supported.

How to add Squared Symbol (Superscript Two) in HTML, CSS, and JS?

HTML Methods:

1. Direct Symbol:
<span>²</span>
2. HTML Decimal Code:
<span>&#178;</span>
3. HTML Entity:
<span>&sup2;</span>
4. Hexadecimal Code:
<span>&#x00B2;</span>
Preview: ²

CSS Method:

.symbol::before {
    content: '\\0B2';
}
Preview: Symbol

JavaScript Methods:

1. Direct Symbol:
document.querySelector('.symbol').textContent = '²';
2. Unicode Escape:
document.querySelector('.symbol').textContent = '\u00B2';
Preview: ²