SMILES Chemical Notation Validator
Verify SMILES string syntax (atoms, bonds, rings, isomerism, parentheses). Highlights tokenization and valence errors.
SMILES: writing a molecule as a line of text
SMILES (Simplified Molecular-Input Line-Entry System) is a notation that encodes a molecular structure as a single ASCII string. Unlike the CAS number — an arbitrary registry key — SMILES describes the actual structure: which atoms are bonded to which. It is the lingua franca of cheminformatics, accepted by RDKit, Open Babel, PubChem and virtually every chemistry toolkit. This tool checks that a string is syntactically valid SMILES (there is no checksum — SMILES is a grammar, not a coded number).
The core syntax
- Atoms: the organic subset
B C N O P S F Cl Br Iis written bare; any other element (or one with charge/isotope/explicit H) goes in square brackets, e.g.[NH4+],[13C],[Fe]. - Bonds:
-single,=double,#triple,:aromatic; single/aromatic bonds are usually implicit. - Branches: parentheses, e.g. acetic acid
CC(=O)O. - Rings: matching digit labels open and close a ring — cyclohexane is
C1CCCCC1; two-digit ring numbers use%nn. - Aromaticity: lowercase atoms, e.g. benzene
c1ccccc1. - Stereochemistry:
/and\for double-bond geometry,@/@@for chirality.
Examples
- Water
O· ethanolCCO· acetic acidCC(=O)O - Aspirin
CC(=O)Oc1ccccc1C(=O)O - Caffeine
CN1C=NC2=C1C(=O)N(C)C(=O)N2C
Common pitfalls
- Case matters:
COis carbon–oxygen (methanol skeleton), butCois the element cobalt. Lowercase means aromatic or a two-letter symbol — never interchangeable. - Unmatched ring digits: every ring-opening digit needs its closing partner; a stray
1is invalid. - Unbalanced parentheses/brackets: branches and bracketed atoms must close.
- Not InChI or SMARTS: InChI is a different canonical identifier; SMARTS is a query language that extends SMILES and is not valid as a plain structure.
FAQ
Is there one correct SMILES per molecule? No — a molecule has many valid SMILES. Canonical SMILES (produced by a toolkit's algorithm) gives one reproducible string per structure.
Does valid syntax mean the molecule is real? Not necessarily — the grammar can be satisfied by a chemically implausible valence. Toolkits add a separate valence/sanitization check.
SMILES vs InChI? SMILES is compact and human-writable; InChI is a standardized canonical string designed for exact database matching. Many workflows store both.
Related Tools
CAS Number (Chemical) Validator
Validates CAS Registry Number (xxxxxxx-xx-x format) with official checksum used to identify chemical substances.
hreflang vs lang Consistency Checker
Compares the html lang attribute with the main link hreflang value and flags an exact match, the same base language with a different region, or a mismatch.
Order Number Validator
Validate common e-commerce order number formats: ORD-XXXX, ORDER-NNNN, #N alphanumeric. Auto-detects type.
Italian Codice Fiscale Validator
Validate Italian Codice Fiscale (16 chars, final checksum letter) — used in documents and contracts in Italy.
JWT alg Allowlist Policy Checker
Decodes the JWT header, reads its alg field and flags the token when the value is none or absent from the comma-separated list of algorithms you allow.
Twitter/X @handle Validator
Validate Twitter/X handle format: 1-15 chars, letters, digits and _. Does not check availability.