²
ASCII 178
ASCII Character
Superscript Two
ASCII byte 178 (0xB2) — Unicode U+00B2. Standard ASCII is 0–127; extended bytes 128–255 use Windows-1252.
How to type ²
Windows
- Copy ² with the Copy Symbol button above and paste it anywhere.
- In HTML, use ² or hex ².
- In JavaScript, use String.fromCharCode(178).
Mac
- Copy ² with the Copy Symbol button and paste it (fastest method).
- Open System Settings → Keyboard → Input Sources and add Unicode Hex Input (if needed).
- Select Unicode Hex Input from the menu bar input menu.
- Hold Option (⌥), type 00B2 (from U+00B2), then release Option.
- Or open Edit → Emoji & Symbols (or press Ctrl + Cmd + Space) and search for the character.
- In HTML on Mac editors, you can also paste ².
Linux
- Copy ² with the Copy Symbol button and paste it.
- Press Ctrl + Shift + U, type 00b2 (from U+00B2), then press Enter or Space.
- On GNOME, you can also use Ctrl + . (or Ctrl + ;) to open the character picker.
- In HTML, use ².
ASCII character details
| Parameter | Value | Copy |
|---|---|---|
| Symbol |
²
|
|
| Symbol Name |
Superscript Two
|
— |
| ASCII Decimal |
178
|
|
| ASCII Hex |
0xB2
|
|
| Unicode Code |
U+00B2
|
|
| HTML Decimal Code |
²
|
|
| HTML Hex Code |
²
|
|
| HTML Entity |
²
|
|
| CSS Code |
\00B2
|
|
| JavaScript Code |
\u00B2
|
|
| Category |
ASCII Extended / Windows-1252 (128–255)
|
— |
FAQs about Superscript Two ASCII Code Symbol
What is the ASCII code for Superscript Two ASCII Code Symbol?
ASCII decimal 178, hex 0xB2, Unicode U+00B2.
How do I copy ²?
Click Copy Symbol on this page to copy the character directly.
How do I type ASCII 178 in JavaScript?
Use String.fromCharCode(178) to output this character in JavaScript.
About this ASCII Character
Extended ASCII byte 178 (0xB2, U+00B2) is superscript two. Part of the complete extended ASCII table (Windows-1252, 128–255).
Tags: superscript-two,ascii,extended-ascii,178,0xB2,U+00B2,ascii table,copy symbol
