Subscript Two

Shortcodes

Copy and paste codes for Subscript Two symbol ₂ to use in your websites, apps, blogs, and more.

Unicode
U+2082
HTML Code
₂
HEX Code
₂
CSS Code
\2082
JS/JSON
\u2082
Unix/C/PHP/JAVA
0x2082
URL-encode
%E2%82%82
copied

Customize ₂ Symbol

Customize ₂ symbol as you like and download Subscript 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 Subscript Two symbol ₂ ?

  • You can try inserting Subscript Two symbol 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 Subscript Two symbol where they are supported.

How to add Subscript Two symbol in HTML, CSS, and JS?

HTML Methods:

1. Direct Symbol:
<span>₂</span>
2. HTML Decimal Code:
<span>&#8322;</span>
3. Hexadecimal Code:
<span>&#x2082;</span>
Preview:

CSS Method:

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

JavaScript Methods:

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