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 Squared Symbol (Superscript Two) 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 number 178 using the Numpad.
  3. Release the Alt key.

This will make the ² appear on your screen.

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

Insert ² Squared Symbol (Superscript Two) using HTML

1. Copy-paste Squared Symbol (Superscript Two) directly:
<span>²</span>
2. HTML Decimal Code:
<span>&#178;</span>
3. HTML Entity:
<span>&sup2;</span>
4. Hexadecimal Code:
<span>&#x00B2;</span>
Preview: ²

Add Squared Symbol (Superscript Two) with CSS

.squared-symbol::before {
    content: '\\0B2';
}
Preview: Squared Symbol (Superscript Two)

Squared Symbol (Superscript Two) JavaScript Code

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