SMILES to Molecular Formula Converter

In short: Paste a SMILES string and get molecular formula, molecular weight, IUPAC name, and PubChem CID when available. It is free, works in your web browser and needs no download.

Paste a SMILES string to get the molecular formula and supporting PubChem metadata.

Quick answer: paste SMILES such as CCO or CC(=O)OC1=CC=CC=C1C(=O)O, then convert to formula.
Molecular formula output appears here.

About SMILES and Molecular Formula

SMILES describes molecular connectivity as a compact text string. A molecular formula summarizes the atom counts in the molecule, such as C9H8O4 for aspirin.

How the formula is worked out

SMILES lists heavy atoms explicitly, but most hydrogens are implicit: each atom gets enough hydrogens to fill its normal valence. To build the formula, the tool counts every explicit atom, adds the implicit hydrogens, and writes the result in Hill order: carbon first, hydrogen second, then all other elements alphabetically.

Worked example

For ethyl acetate, CCOC(=O)C:

Things to watch

Need mass too? Use SMILES to Molecular Weight or the Exact Mass Calculator.

Last updated: