Chemical Formula Formatter

Chemistry Subscript Generator

Turn h2so4 into
Proper H2SO4 Instantly

Correct element symbols, capitalisation, and subscripts — all 118 elements supported. No signup, no limits, completely free.

Copied!
⚗ SubscriptLab Chemical Formula Formatter
Input
Output
Formatted formula appears here…
Live · 118 elements
Quick Examples — click to try
h2o H₂O
h2so4 H₂SO₄
na2co3 Na₂CO₃
ca(oh)2 Ca(OH)₂
ch3cooh CH₃COOH
fe2o3+3co Fe₂O₃+3CO
reactionfull eq.
mgcl2 MgCl₂
c6h12o6 C₆H₁₂O₆
al2(so4)3 Al₂(SO₄)₃
Features

Built for Real Chemistry

Every part of the parser is designed for accurate chemical notation — not just generic text transformation.

118 Elements

Full periodic table coverage. Na, not NA. Co, not CO. Every symbol is correctly cased.

Live Conversion

Paste entire blocks of text with multiple formulas at once.

Reactions & Equations

Handles + operators, → arrows, coefficients, and full balanced equations.

4 Output Modes

Unicode subscripts, HTML tags, plain text, or colour-highlighted output.

Brackets Support

ca(oh)2 → Ca(OH)₂. Nested and grouped formulas handled correctly.

Bulk Input

Paste multiple formulas — each line is processed independently.

One-Click Copy

Copy Unicode or raw HTML output instantly — ready to paste anywhere.

Mobile Friendly

Fully responsive — works perfectly on phones, tablets, and desktops.

How It Works

Three Simple Steps

Enter Your Formula

Type or paste any chemical formula in lowercase — like h2so4, na2co3, or a full reaction equation.

Auto-Formatted Instantly

The parser identifies all 118 element symbols, applies correct casing, and converts numbers to subscripts in real time.

Copy & Use Anywhere

Copy Unicode or HTML output and paste into Word, Google Docs, your website, WhatsApp, or any platform.

FAQ

Common Questions

In standard chemical notation, element symbols follow a strict convention: the first letter is always uppercase and the second letter (if present) is always lowercase. So sodium is Na, calcium is Ca, chlorine is Cl, and cobalt is Co — not NA, CA, CL, or CO. This tool uses a lookup of all 118 IUPAC element symbols and applies these rules precisely.

Unicode mode produces actual subscript characters (₂, ₃, ₄) that you can paste into any text field — social media, Word, WhatsApp, Notion, and so on. HTML mode produces(H2O) which render correctly in web pages and HTML emails and give full typographic control.

Yes. The formatter preserves operators (+, =, →) and numerical coefficients. So an input like “fe2o3 + 3co → fe3o4” becomes “Fe₂O₃ + 3CO → Fe₃O₄” — coefficients stay as normal numbers, only the subscripts within formulas are converted.

Yes. Brackets are handled correctly — ca(oh)2 becomes Ca(OH)₂ and al2(so4)3 becomes Al₂(SO₄)₃. Each group inside parentheses is parsed independently, so element casing resets after each opening bracket.

Completely free, with no signup or account required. The entire formatter runs in your browser — nothing is sent to any server. You can use it as many times as you like for any purpose.

What Is a Chemistry Subscript Generator?

A chemistry subscript generator converts raw, unformatted text input — like “h2so4” or “naoh” — into properly formatted scientific notation following IUPAC conventions. This means applying the correct capitalisation to element symbols (Na, not NA), converting digit characters into Unicode subscripts (H₂O, not H2O), and preserving operators for reaction equations.

Proper chemical notation is important in education, research, publishing, and online content. Writing H₂SO₄ instead of H2SO4 communicates scientific literacy and is required in academic papers, lab reports, chemistry textbooks, and scientific websites. Unfortunately, most text editors and keyboards make subscript formatting cumbersome — this tool solves that instantly.

The formatter uses a complete lookup of all 118 IUPAC chemical element symbols from hydrogen (H) to oganesson (Og). It applies a left-to-right parser that tries to match two-letter symbols first (Na, Mg, Cl, Fe, etc.) before falling back to single-letter symbols (C, H, O, N, S) — ensuring that cobalt is always Co and not misread as two separate elements C and O.