Unicode subscripts and superscripts

How Unicode subscript and superscript characters actually work, when they are suitable, and what copy, search, and accessibility limits to expect.

Is this transformation suitable for my intended use?

Unicode subscript and superscript conversion is suitable when you need a compact, plain-text look for a short formula, ordinal, footnote marker, or chemical formula in a place that does not support rich formatting. The main benefit is that the raised or lowered appearance travels with the characters themselves, so the result can be pasted into chat, comments, filenames, and other fields that strip HTML or styles.

The decisive tradeoff is incomplete coverage plus a change of identity: only some letters, digits, and signs have dedicated Unicode counterparts, and those counterparts are different characters from the originals. Search, sort, spell-check, and many editors treat “2” and “₂” as unrelated. Prefer ordinary digits and letters, or markup such as HTML sub and sup, when the text must stay searchable, fully spelled, machine-parsed, or read unambiguously by assistive technology. Prefer markup or a math renderer when you need a complete alphabet, stacked fractions, or consistent sizing across fonts.

  • Use Unicode super/subscripts for short, decorative or informal labels that must remain plain text.
  • Use them for a few well-supported tokens such as ¹²³, ⁿ, ⁺, ⁻, and common chemical digits like H₂O.
  • Keep plain ASCII or structured markup when every letter must be available, when the string will be searched or compared, or when the destination is a form, database, or code identifier.
  • Keep a plain-text equivalent nearby whenever the styled form is the public display and the original spelling is the canonical record.

What this transformation actually changes

This is Unicode character substitution, not a font, not CSS, and not a reverse or mirror of the string. Each matched character is replaced by a different code point whose glyph is drawn smaller and shifted up or down. The stored text changes. Visual presentation tools that only restyle the same letters leave the original code points in place; this transformation does not.

The replacements come from a limited repertoire. Latin-1 supplies ¹, ², and ³. The Superscripts and Subscripts block supplies the remaining digits ⁰⁴⁻⁹ and ₀₋₉, plus a handful of letters and operators such as ⁿ ⁱ ⁺ ⁻ ⁼ ⁽ ⁾ and ₐ ₑ ₒ ₓ ₊ ₋ ₌ ₍ ₎. Other modifier letters exist elsewhere in Unicode, but there is no complete super or subscript Latin alphabet, and most punctuation, accented letters, and symbols have no counterpart. Characters without a mapping are typically left unchanged, which produces mixed baseline text rather than a fully raised or lowered word.

H2O     →  H₂O      (DIGIT TWO → SUBSCRIPT TWO, U+2082)
x^2     →  x²       (DIGIT TWO → SUPERSCRIPT TWO, U+00B2)
CO2     →  CO₂
a^n     →  aⁿ       (if SUPERSCRIPT LATIN SMALL LETTER N is used)
word    →  ʷᵒʳᵈ     (only if each letter has a mapped modifier; many letters will not)

The examples above replace one base character with one dedicated super or subscript character. Combining marks attached to a source letter are not automatically repositioned onto the substitute; if a tool maps only the base letter, a following accent can be left behind or applied to the wrong glyph. Multi-code-point emoji are outside this mapping and should be left intact. The words reverse, mirror, and font do not describe this process: the reading order stays left to right, glyphs are not flipped, and the typeface is whatever the destination already uses, provided it contains the needed glyphs.

Compatibility decomposition is a related stored-text fact, not a display trick. Under NFKC and NFKD, many of these characters fold back to their ordinary equivalents (² to 2, ₙ to n). That is useful for search-normalization pipelines and a hazard if you assume the super or subscript form will survive a “normalize then compare” step. NFC and NFD leave most of these characters as themselves. This article does not verify any particular converter’s mapping table; if a tool’s sample output disagrees with the Unicode names above, the tool is using a different, possibly private, substitution list.

Readability and usability after copying or sharing

Copy and paste usually preserves the substituted code points, because they are real characters in the string. What the recipient sees depends on the font and the renderer. A missing glyph becomes a box, a blank, or a fallback from another face, so the same “H₂O” can look consistent in one app and broken in another. There is no supplied test of a named destination here, so treat rendering as environment-specific rather than guaranteed.

Reading order does not reverse. The characters still run in logical order, which is why this transformation is unlike mirrored or bidi display. Editing is another matter: a subscript digit is a single character, so backspace deletes the whole digit, but cursor movement, spell-check, and find-and-replace operate on the substitute, not on the original “2”. Someone searching for H2O will not match H₂O unless the search engine folds compatibility equivalents.

Assistive technology behavior is not uniform and is not verified here for any named screen reader. Possible outcomes include speaking the compatibility letter or digit, announcing “superscript” or “subscript”, skipping an unmapped glyph, or treating the character as punctuation. Because those outcomes differ by engine, voice, and punctuation settings, do not rely on Unicode super or subscripts to convey meaning that a listener must hear, such as an exponent that changes a value. Keep a plain-text equivalent (H2O, x^2, 10^-3) for accessibility, for indexing, and for any workflow that will later parse the string as data.

A practical check before you commit to the transformation: confirm every character you need has a real Unicode super or subscript; paste the result into the actual destination; search for both the styled form and the original spelling; and keep the original spelling as the canonical version whenever meaning, retrieval, or reuse matter more than the raised or lowered look.