Overview
Introduction
Chemical formulas and mathematical indices normally need subscript numbers, which plain text can't do without either giving up or reaching for HTML's <sub> tag.
Unicode actually defines real subscript code points for digits and a small set of letters, so genuine subscript text is possible in plain text too.
What Is Subscript Writer?
A converter that maps digits, a small set of lowercase letters, and the symbols +, -, =, (, ) to their real Unicode subscript code points.
It runs entirely client-side as part of this site's String Tools collection, so nothing you paste is ever uploaded to a server.
How Subscript Writer Works
The tool looks up each character in a table of known Unicode subscript code points, drawn from the Superscripts and Subscripts block plus a handful of Phonetic Extensions and Latin Extended-C characters, and substitutes it when a mapping exists.
The transformation happens synchronously in JavaScript the moment you type, with no network round trip involved.
When To Use Subscript Writer
Use it for a chemical formula (like H₂O), a mathematical index, or a stylized subscript effect in a caption or chat message.
It's a fast way to get correct subscript characters without memorizing obscure Unicode code points.
Often used alongside Superscript Writer and Tiny Text Generator.
Features
Advantages
- Produces real Unicode characters that work in plain text, not just inside HTML.
- Covers digits and the most commonly needed subscript letters in one tool.
- Leaves unmapped characters untouched, so a formula mixing subscript digits with ordinary capitals comes through with only the intended parts changed.
Limitations
- Unicode's subscript letter coverage is limited to a-e-h-i-j-k-l-m-n-o-p-r-s-t-u-v-x; letters like b, c, d, f, g, q, w, y, and z have no subscript form and pass through unchanged.
- These are novelty look-alike characters, not real formatting, so they render differently depending on the reader's font and platform, and screen readers may not read them correctly, making this best for informal captions rather than accessible body text.
Examples
Best Practices & Notes
Best Practices
- Use it for short chemical or index-style expressions rather than full sentences, since readability drops quickly with subscript text.
- Check the result in your target platform's font, since subscript coverage varies.
- Write chemical formulas with the element symbols as ordinary capitals and only the counts subscripted, which is both the correct convention and what this tool's coverage supports.
Developer Notes
The lookup table is a single flat `Record<string, number>` covering the 17 lowercase letters with real Unicode subscript forms, digits 0-9, and the symbols +, -, =, (, ); the subscript j (U+2C7C) is a Latin Extended-C character rather than a member of the main Superscripts and Subscripts block, which is easy to miss if you only check the obvious code point range.
Subscript Writer Use Cases
- Writing a chemical formula like H₂O or CO₂
- Adding a mathematical index like xₙ
- Styling a caption with a subscript effect
Common Mistakes
- Expecting every letter to have a subscript form; only a-e-h-i-j-k-l-m-n-o-p-r-s-t-u-v-x do.
- Expecting uppercase letters to convert; this tool intentionally only maps lowercase letters.
Tips
- Combine with the Superscript Writer tool to write exponent- and index-style text side by side.
- Uppercase letters have no Unicode subscript forms at all, so a formula relying on them passes through unchanged rather than failing visibly.