Numbers & Fractions

Subscript Two ₂

U+2082 Added in Unicode 1.1 (1993) Formerly “subscript digit two”

₂ is the digit two written in subscript form, used to show a count below the normal text line.

Alt code Alt+8322
Codes
Unicode
Unicode name
Decimal
Windows Alt code
HTML entity
HTML decimal
HTML hex
LaTeX
Encodings & code escapes +
UTF-8 (hex bytes)
UTF-16 (hex units)
UTF-32
URL encoded
CSS content
JavaScript / TypeScript
JSON, Java, C#, C/C++
Python
Go
Rust, Swift, PHP, Ruby
Perl

Click any value to copy it. All escapes refer to the same code point U+2082.

How to type ₂ on Windows

The fastest method on a full-size keyboard is the Alt code Alt+8322.

  1. Make sure Num Lock is on.
  2. Hold down the Alt key.
  3. Type 8322 on the numeric keypad (the number row will not work).
  4. Release Alt. The subscript two symbol ₂ appears.

Note: Alt+8322 is a Unicode decimal code, not a classic code-page Alt code. It works in Microsoft Word, WordPad and some other apps, but not in Notepad or most browsers. In those apps, copy the symbol from this page instead.

No numeric keypad?

Press Win+. to open the emoji panel, choose the Symbols tab (Ω) and search for "subscript two". Or open Character Map from the Start menu, find ₂, click Select, then Copy.

How to type ₂ on a Mac

There is no direct keyboard shortcut for ₂ on a Mac.

For any symbol, the Character Viewer works: press Control+⌘+Space, type "subscript two" in the search box and double-click the result. It will be remembered under Frequently Used.

How to type ₂ on iPhone and iPad

The iOS keyboard does not include ₂, so the reliable way is to copy it from this page, then press and hold in any text field and tap Paste.

If you use it often, create a shortcut: open Settings → General → Keyboard → Text Replacement, paste ₂ in the Phrase field and type a short code such as ;subscript in the Shortcut field. Typing that code will then insert ₂ anywhere.

How to type ₂ on Android

Copy the symbol from this page, then long-press in a text field and choose Paste. Gboard also keeps a clipboard history: tap the clipboard icon on the toolbar to paste it again later.

For a permanent shortcut, open Gboard settings → Dictionary → Personal dictionary, add ₂ as the word and a short code as the shortcut.

How to type ₂ in Microsoft Word

  1. Type the Unicode hex code 2082 where you want the symbol.
  2. Press Alt+X. Word converts the code into ₂.

This works on Windows in Word, Outlook and OneNote and needs no numeric keypad. You can also go to Insert → Symbol → More Symbols, set the font to a Unicode font and type 2082 in the Character code box. In Excel, the formula =UNICHAR(8322) returns the symbol.

How to type ₂ in Google Docs

Open Insert → Special characters, then either search for "subscript two" or draw the symbol in the sketch box. Click the result to insert it. In Google Sheets, use =CHAR(8322).

₂ in HTML, CSS and code

FormatCode
HTML entity₂
HTML decimal₂
HTML hex₂
CSS content"\2082"
JavaScript"\u2082"
Python"\u2082"
LaTeX_2
URL encoded%E2%82%82

Because ₂ is a standard Unicode character (U+2082), you can also paste it directly into any UTF-8 file. The escaped forms above are only needed when the file encoding is uncertain or the symbol must be entered on a keyboard without it.

Where the subscript two symbol is used

Chemistry relies on it for molecular formulas, such as H₂O or CO₂, where the number shows atom count. It also appears in math for indexed variables like x₂ or a₂ in a sequence. Some fonts render it so small it can be confused with a regular lowered "2" or the superscript ².

Frequently asked questions

Why does H2O use a subscript 2 instead of a regular 2? +

The subscript shows that a water molecule contains two hydrogen atoms bonded to one oxygen atom, following standard chemical notation rules.

Is ₂ the same as the superscript ²? +

No. ₂ sits below the text line and usually marks a quantity or index, while ² sits above the line and often means squared or an exponent.

What is the Alt code for the subscript two symbol? +

The Alt code for ₂ is Alt+8322. Hold Alt, type 8322 on the numeric keypad, then release Alt. This is a Unicode code, so it works in Word and WordPad but not in every app; in other apps paste the symbol instead.

How do I type ₂ on a Mac? +

There is no dedicated Mac shortcut for ₂. Open the Character Viewer with Control + Command + Space, search for "subscript two", and double-click it. Or copy it from this page.

How do I type the subscript two symbol on iPhone or Android? +

Phone keyboards do not include ₂ by default. Copy it from this page and paste it, or add it as a text replacement shortcut in Settings so you can type it with a short abbreviation.

What is the HTML code for ₂? +

Use ₂ in HTML. In CSS use content: "\2082" and in JavaScript use "\u2082".

✓ Copied to clipboard