Subscript Generator
Write subscript text and chemical formulas to copy and paste: H₂O, CO₂, C₆H₁₂O₆, SO₄²⁻ and x₁, with HTML <sub> code and a list of characters that have no subscript.
Digits after an element symbol or a closing bracket become subscripts; a leading number (2H₂O) stays a coefficient; a final + or − is a charge. Write charges with ^ (SO4^2-) when in doubt.
| Format | Result |
|---|---|
| Unicode | C₆H₁₂O₆ + 6O₂ → 6CO₂ + 6H₂O |
| HTML | C<sub>6</sub>H<sub>12</sub>O<sub>6</sub> + 6O<sub>2</sub> → 6CO<sub>2</sub> + 6H<sub>2</sub>O |
Write chemical formulas and indices that keep their subscripts when you paste them into a chat, a slide, a spreadsheet cell or a social post: H₂O, CO₂, C₆H₁₂O₆, SO₄²⁻, x₁. Formula mode knows the element symbols, so it lowers only the digits that belong in a subscript and raises ionic charges; underscore mode lowers whatever follows _, and you can also convert all of the text.
How to use this tool
- Type the formula or text: H2O, Ca(OH)2, SO4^2- or x_1.
- Choose formula mode for chemistry, underscore mode for maths indices, or all text.
- Copy the Unicode result, or the HTML version for a web page.
- Check the note: characters with no subscript form stay normal.
Formula
In a formula, digits right after an element symbol or a closing bracket → subscript; a final + or − (with its number) → superscript charge
Element symbols are checked against all 118 elements, so words like Hello or A4 are left alone (but a word that is also a valid formula, such as B12, is converted). Leading numbers are coefficients and stay normal (2H₂O), as do numbers after a hydrate dot (CuSO₄·5H₂O). For a charge without ^, two or more digits before the sign mean “last digit is the charge” (SO42- → SO₄²⁻); one digit is the charge of a single-element ion (Fe3+ → Fe³⁺) but a subscript in a polyatomic ion (NH4+ → NH₄⁺). Unicode subscripts exist for the digits, + − = ( ) and the letters a e h i j k l m n o p r s t u v x only.
Example
The sample “C6H12O6 + 6O2 → 6CO2 + 6H2O” becomes C₆H₁₂O₆ + 6O₂ → 6CO₂ + 6H₂O: the coefficients 6 stay full size, while every digit after an element symbol is lowered. In HTML the first term is C<sub>6</sub>H<sub>12</sub>O<sub>6</sub>.
Frequently asked questions
How do I type H₂O with a small 2?
Type H2O here in formula mode and copy H₂O. The ₂ is a real Unicode subscript character, so it stays small wherever you paste it.
Why do some letters not become subscript?
Unicode only has subscript forms for 17 lower-case letters, the digits and a few signs. For any other character, use the HTML <sub> version or your editor’s subscript button.
How do I write an ion charge such as SO₄²⁻?
Type SO4^2- (or SO42-). The ^ makes it explicit that 2- is the charge, which avoids any guessing.
Last updated:
Page address with these inputs: https://kakao.mobile/tools/subscript-generator/
Cite or embed this tool
kakaoCalc. (2026, November 8). Subscript Generator. https://kakao.mobile/tools/subscript-generator/
“Subscript Generator.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/subscript-generator/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms