Subscript Generator for Chemical Formulas
Use this subscript generator for chemical formulas to format H2O as H₂O, preserve element letters and copy the result.
Enter one neutral formula, such as 2H2O or Ca(OH)2. Preserve element capitalization.
Formatted formula
Example: H₂O
The formula tool needs JavaScript to load. If it stays unavailable, enable JavaScript and reload this page.
How to type subscripts in a chemical formula
Type a formula such as H2O, review the result H₂O, then select Copy formula. The subscript generator keeps uppercase and lowercase letters as you entered them and lowers the digits that follow an element or a closing parenthesis. All conversion happens in your browser. The output is plain Unicode text that you can paste into a message, note, slide title or spreadsheet label.
Use the example buttons to see water, carbon dioxide and calcium hydroxide. Each example fills the same input you can edit. When pasting from class notes, start with a single formula in ordinary letters and digits. Extra spaces around the whole input are trimmed. Spaces inside a formula, math operators and reaction arrows produce a message asking for a single formula.
Copyable chemical formula examples
- H2O → H₂O. The ₂ applies to the preceding H. Oxygen has an implied count of one.
- CO2 → CO₂. Capital O is oxygen. Keep the capital letters as written.
- C6H12O6 → C₆H₁₂O₆. Both digits of the count 12 move below the line together.
- Ca(OH)2 → Ca(OH)₂. The ₂ applies to the OH group inside the parentheses.
- 2H2O → 2H₂O. The leading 2 is a coefficient and stays on the regular line.
- 2Cu(NO3)2 → 2Cu(NO₃)₂. The initial coefficient stays regular. The oxygen count and the count after the group are lowered.
When should a number stay on the regular line?
A count after an element or a closing parenthesis belongs below the line. A coefficient before the formula belongs on the regular line. In 2H₂O, the first 2 gives the number of water molecules and the second gives the number of hydrogen atoms in each molecule. If you are copying the formula into a discussion or a presentation, glance at both numbers after pasting so their positions remain clear.
Uppercase and lowercase letters carry meaning, too. Co names cobalt, while CO consists of carbon and oxygen. When a formula contains an element with a two-letter symbol, keep that second letter lowercase. The formatter follows the pattern of a capital letter and an optional lowercase letter, so always check that you have entered the intended symbol.
Which formulas work in this converter?
Use this formatter for single neutral formulas written with element-like symbols, positive integer counts, balanced parentheses and an optional whole-number coefficient at the start. It checks the input pattern for formatting. For checking element names, chemical validity, ionic charges, isotope notation, hydrate dots, bracketed complexes and full reaction equations, use a chemistry-aware editor or reference. In longer documents or assignments, use the native equation and subscript features recommended by your instructor or publisher.
Where can you paste a Unicode formula?
Paste into a text field that accepts Unicode. The subscript digits travel with the formula, and the destination’s font controls how they look. Some systems render subscript characters at different heights, or read the digits differently with a screen reader. When the formula is essential to understanding an instruction, include a plain-language explanation or use semantic formatting in the destination document.
Need to shrink letters as well as digits for a caption or bio? Use the tiny font generator to compare small caps, superscript and subscript text side by side.
Frequently asked questions
How do I copy H₂O with a subscript 2?
Type H2O in the input, then choose Copy formula. Use the H2O example button if you prefer.
What happens to the first number in 2H2O?
The initial number stays regular as a coefficient. The count after H moves below the line, so the result is 2H₂O.
Can I format Ca(OH)2?
Yes. The tool keeps the parentheses and lowers the count after the closing parenthesis, giving Ca(OH)₂.
Does this work for charges or reaction equations?
Use a chemistry-aware editor for charges, reaction equations and other complex notation. This tool formats one neutral formula at a time.