² Superscript Two
Unicode U+00B2
Unicode & Shortcodes
U+00B2²²\00B2\u00B2²178C2 B200B2%C2%B2Usage & Context
How to type Superscript Two on Mac / Windows / Linux?
Windows: Use the Alt code (178) on the numeric keypad.
macOS: Use Character Viewer (Control + Command + Space) and search by name, or copy/paste.
Linux: Use the Character Map app or a Compose key sequence, then paste into your app.
You can also copy and paste ² directly from this page. Windows Alt code: Alt + 178. Make sure Num Lock is on when using Alt codes, and use the numeric keypad instead of the top row numbers.
- Hold the Alt key (Windows).
- Type 178 on the numeric keypad, then release Alt.
How to type Superscript Two on iOS / Android?
On iOS, long-press the globe/emoji key and search in the symbol picker, or paste the symbol.
On Android, open the symbols keyboard or use your app’s character panel, then paste.
How to add Superscript Two in HTML?
Use an HTML entity, a decimal code, or a hex code. All of them render the same symbol in your markup.
<span>² symbol</span>
<span>² symbol</span>
<span>² symbol</span>
How to add Superscript Two in CSS?
CSS escapes work inside the content property. This is most useful with ::before or ::after.
.symbol::after {
content: "\00B2";
}
<span class="symbol"></span>How to add Superscript Two in JavaScript / JSON?
Use Unicode escapes in strings for a stable, language-neutral representation.
const symbol = "\u00B2"; console.log(symbol);
{
"symbol": "\u00B2"
}How to add Superscript Two in URL / Query string?
Use percent-encoding. In JavaScript, use encodeURIComponent.
https://example.com?q=%C2%B2
How to add Superscript Two in LaTeX / Markdown?
For math contexts, LaTeX or Markdown math blocks are the safest way to render this symbol.
\(x^{2}\)Inline math: $x^{2}$How to add Superscript Two in Word / Google Docs / Excel?
In Word or Google Docs, go to Insert → Symbol (or Special Characters) and search the Unicode name.
In Word, you can type 00B2 and press Alt+X to convert it.
=UNICHAR(178)
Encoding notes
UTF-8 and UTF-16 byte sequences are listed above for developer tools, debugging, or data pipelines.