Identify Unicode Subscript Numbers
How to recognize Unicode subscript digits, how they differ from formatted subscripts, and when they hold up after copying, searching and screen reading.
A small, lowered number like the 2 in H₂O can come from two very different sources. It may be a dedicated Unicode character that is always a subscript, or it may be an ordinary digit that a document, web page or editor displays in a lowered, smaller style. The two look alike on screen but behave differently when text is copied, searched, normalized or read aloud. This review explains how to tell them apart and when each approach is the better choice.
Is a Unicode subscript number the right choice for your use?
Unicode subscript digits are useful when you need a subscript to survive in a plain-text field that has no formatting options, such as a short label, a chat message or a profile line. Their main benefit is portability of appearance: the lowered look is part of the character itself, so it does not depend on markup that the destination might strip.
The decisive tradeoff is that the stored character is no longer the ordinary digit. A subscript two is a different code point from the regular digit 2, so software that matches, sorts, counts or calculates with digits may not treat them as equal unless it applies compatibility normalization. Support in screen readers and search tools is also not uniform.
Plain digits, or digits styled with formatting, are usually preferable when the text must be searchable, machine-readable, accessible to assistive technology, or published in a context that already supports subscript formatting, such as a word processor, an HTML page or a typesetting system. Writing H2O or CO2 in plain text is often the safest fallback when you cannot verify how the destination handles the special characters.
What a subscript number actually is
There are two distinct mechanisms, and the word "subscript" is used for both.
- Unicode character substitution: the regular digit is replaced with a separate character from the Superscripts and Subscripts block, which spans U+2070 to U+209F. The stored text changes; the lowered shape is designed into the character.
- Formatting or presentation: the stored character remains the ordinary digit, and the lowered position is applied by markup or styling, for example the HTML sub element, the CSS vertical-align property, or a subscript button in a word processor. The text itself is unchanged; only its display differs.
The subscript digits zero through nine occupy consecutive code points, U+2080 through U+2089, and their official character names follow a simple pattern.
| Character | Code point | Unicode name |
| ₀ | U+2080 | SUBSCRIPT ZERO |
| ₁ | U+2081 | SUBSCRIPT ONE |
| ₂ | U+2082 | SUBSCRIPT TWO |
| ₃ | U+2083 | SUBSCRIPT THREE |
| ₄ | U+2084 | SUBSCRIPT FOUR |
| ₅ | U+2085 | SUBSCRIPT FIVE |
| ₆ | U+2086 | SUBSCRIPT SIX |
| ₇ | U+2087 | SUBSCRIPT SEVEN |
| ₈ | U+2088 | SUBSCRIPT EIGHT |
| ₉ | U+2089 | SUBSCRIPT NINE |
The same block also contains subscript plus, minus, equals and parentheses at U+208A through U+208E, plus a limited set of subscript letters. Not every letter has a subscript form, so a full subscript word or arbitrary variable name generally cannot be built from these characters alone.
Subscript digits are classified as compatibility characters. Unicode gives each one a compatibility decomposition to the matching ordinary digit, which is why NFKC or NFKD normalization turns H₂O into H2O. Canonical normalization (NFC or NFD) leaves them unchanged.
How to identify which kind you have
Visual inspection alone is unreliable, because a well-designed font can make a formatted digit and a Unicode subscript character look nearly identical. These clues help narrow it down:
- Paste the text into a plain-text field with no formatting. A Unicode subscript keeps its lowered shape; a formatted subscript usually becomes a full-size digit, though this depends on the destination.
- Place the cursor next to the number and move it one step at a time. Each subscript digit is a single character either way, so this confirms boundaries but not type; it does show whether a multi-digit subscript is separate characters.
- Check the code point. A value in the range U+2080 to U+2089 is a Unicode subscript digit; U+0030 to U+0039 is an ordinary digit, regardless of how it is displayed.
- Do not confuse subscripts with superscripts. Superscript one, two and three sit at U+00B9, U+00B2 and U+00B3, while the remaining superscript digits are in the U+2070 range.
The most dependable check is a code point inspector. Useful search terms for finding one include "Unicode character inspector", "Unicode code point lookup" or "identify Unicode character". Searching by official name, such as "SUBSCRIPT TWO", or by code point, such as "U+2082", is generally more precise than searching for "small numbers" or "subscript font". No specific tool was verified for this review, so confirm that any tool you choose reports both the code point and the character name.
If you have Python available, its standard unicodedata module can identify characters and show the effect of compatibility normalization:
import unicodedata
text = "H₂O"
for ch in text:
print(ch, f"U+{ord(ch):04X}", unicodedata.name(ch, "<no name>"))
print(unicodedata.normalize("NFKC", text))
For the input above, the loop reports LATIN CAPITAL LETTER H, SUBSCRIPT TWO and LATIN CAPITAL LETTER O, and the normalized result is H2O.
Will the result stay readable and usable after copying or sharing?
Copy and paste: because a Unicode subscript is a character rather than a style, it generally travels intact between applications that accept Unicode text. Formatted subscripts depend on whether the destination keeps rich formatting; many plain-text fields discard it and leave a normal digit. Behavior for any particular platform was not tested here.
Fonts and rendering: the subscript digits are well established, but a given font may not include them. When a font lacks the glyphs, the system may substitute another font, producing digits that look mismatched in size or weight, or it may show a placeholder box. Check the result in the fonts and devices your audience will actually use.
Assistive technology: screen readers may announce a subscript character by name, read it as an ordinary number, or skip it, depending on the software, its settings and the language profile. No documentation or scoped test for specific screen readers was available for this review, so this remains an open gap. For content where accessibility matters, plain digits with surrounding context, or properly marked-up subscripts, are the more predictable choice.
Search and editing: a search for H2O typed with an ordinary digit will only find H₂O if the search system applies compatibility normalization or similar matching. Some systems do and some do not, and none were tested here. Spreadsheets and calculators typically will not treat a subscript digit as a number, so values meant for computation should stay as ordinary digits.
Reading order is not affected: subscript digits are left-to-right characters and do not change bidirectional display the way some special characters can.
When to provide a plain-text equivalent
- The text will be searched, indexed or matched against other data.
- The numbers will be used in calculations, sorting or validation.
- The audience may rely on screen readers and you have not tested how they announce subscripts.
- The destination's font support is unknown.
- The content is scientific or technical and the publishing format already supports real subscript formatting.
In short, Unicode subscript digits are a reasonable tool for preserving the look of a subscript in plain-text-only settings, as long as you accept that they are different characters from ordinary digits. Identify them by code point rather than by appearance, and fall back to plain digits or formatting whenever searchability, computation or accessibility is the priority.