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 Subscript Two 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 add Subscript Two symbol in HTML, CSS, and JS?

Insert ₂ Subscript Two using HTML

1. Copy-paste Subscript Two directly:
<span>₂</span>
2. HTML Decimal Code:
<span>&#8322;</span>
3. Hexadecimal Code:
<span>&#x2082;</span>
Preview:

Add Subscript Two symbol with CSS

.subscript-two::before {
    content: '\\2082';
}
Preview: Subscript Two

Subscript Two JavaScript Code

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