Workspace
Water

Molecular Properties

FormulaH₂O
Mol. Weight18.02 g/mol
CategoryInorganic
Heavy Atoms1
SMILESO

Bonds & Functional Groups

Single bonds2

Universal solvent; bent molecular geometry

Letters to Numbers Logo

Letters to Numbers

Trusted Conversion Tools

Structural Formula Calculator

Visualize the 2D structural formula of any molecule. Choose from 40+ molecules or enter your own SMILES notation to render bonds, atoms, and functional groups.

Who Is It For?

Chemistry Students

Visualize the structural formulas of molecules you are studying. Look up common organic compounds, amino acids, sugars, and drugs to see how atoms are connected and what functional groups are present.

Teachers & Educators

Generate 2D structural diagrams for lecture slides, handouts, and exam questions without needing a full chemistry drawing application. Download structures as PNG images.

Researchers & Chemists

Quickly verify SMILES notation by rendering the structure, check functional groups, and generate images of molecular structures for presentations and reports.

Pharmacy & Medical Students

Examine the structural formulas of common drugs — aspirin, ibuprofen, paracetamol, caffeine, dopamine — and see their functional groups and molecular properties in context.

Biochemistry Students

Explore the structures of biological molecules including amino acids (glycine, alanine, phenylalanine), sugars (glucose, fructose, ribose), and understand how their functional groups relate to their biological roles.

Self-Learners

Learn organic chemistry by experimenting with SMILES notation — enter different structures and see how changes to the notation affect the structural formula and functional group composition.

How It Works

Choose a molecule from the library (searchable by name, formula, or SMILES across 40+ molecules organized by category) or switch to Custom SMILES mode and enter any valid SMILES string. The structural formula is rendered instantly as a 2D diagram showing atoms, bonds (single, double, triple, and aromatic), and bond angles. Switch between light and dark canvas themes. The properties panel shows molecular formula, molecular weight, bond counts, functional groups, and a description of the molecule. Download the structure as a PNG image.

Features

  • 40+ molecule library across 11 categories (inorganic, hydrocarbons, aromatic, alcohols, acids, sugars, amino acids, drugs, and more)
  • Custom SMILES input — render any molecule with valid SMILES notation
  • Real-time 2D structure rendering powered by SmilesDrawer
  • Color-coded atoms: carbon (black/white), oxygen (red), nitrogen (blue), sulfur (yellow), phosphorus (orange)
  • Light and dark canvas themes for the structural diagram
  • Molecular properties: formula, molecular weight, bond counts, heavy atom count
  • Functional group detection (hydroxyl, carbonyl, carboxylic acid, amide, alkene, alkyne, amine, aromatic, and more)
  • Atom count breakdown for custom SMILES inputs
  • Download structural formula as PNG image
  • No sign-up required — free and instant

Your Privacy Matters

All processing happens in your browser. We never store, send, or log your data. Completely private and secure.

What Is a Structural Formula?

A structural formula is a chemical notation that shows not just what atoms are present in a molecule (as an empirical or molecular formula does) but also how those atoms are connected to each other — their bonding arrangement. While the molecular formula of ethanol is simply C₂H₆O, its structural formula shows that it is CH₃–CH₂–OH: a methyl group connected to a methylene group connected to a hydroxyl group. This connectivity information is what distinguishes structural isomers — molecules with the same molecular formula but completely different structures, properties, and behaviors.

The term encompasses several related notations: condensed structural formulas (showing groups like CH₃CH₂OH), Lewis structures (showing all bonds and lone pairs), skeletal formulas (showing only the carbon skeleton and heteroatoms), and full 2D structural diagrams (what this tool renders) that show every atom and every bond explicitly.

What Is SMILES Notation?

SMILES (Simplified Molecular Input Line Entry System) is a text-based notation for describing molecular structures using ASCII characters. It was developed by David Weininger in the 1980s and has become the standard input format for chemical informatics software. Every atom, bond, ring, stereocenter, and charge in a molecule can be encoded as a compact string of characters.

Basic SMILES rules:

  • Atoms — Written as their element symbol. Carbon is C, Nitrogen is N, Oxygen is O, Sulfur is S. Atoms with non-standard valence or charge are enclosed in brackets: [NH4+], [Fe2+].
  • Single bonds — Implied between adjacent atoms. CC means ethane (C–C).
  • Double bonds — Written with =. C=O is formaldehyde (C=O).
  • Triple bonds — Written with #. C#N is hydrogen cyanide (C≡N).
  • Branches — Enclosed in parentheses. CC(=O)O is acetic acid — a carbon with a double-bonded oxygen branch and a hydroxyl group.
  • Rings — Indicated by ring-closure numbers. c1ccccc1 is benzene — the ring opens and closes at the atoms labeled 1.
  • Aromatic atoms — Written in lowercase. c for aromatic carbon, n for aromatic nitrogen.
  • Stereochemistry — @@ for counterclockwise, @ for clockwise arrangement at a chiral center. / and \ for geometric isomers around double bonds.

Types of Chemical Bonds Shown

The structural formula diagram renders four types of bonds, each drawn distinctively:

  • Single bonds (σ bonds) — Drawn as a single line. Found in alkanes, alcohols, ethers, amines, and most saturated compounds. Atoms bonded by a single bond can rotate freely around that bond axis.
  • Double bonds (σ + π bonds) — Drawn as two parallel lines. Found in alkenes, carbonyl groups (C=O), carboxylic acids, esters, amides, and imines. Double bonds restrict rotation, which is why cis and trans isomers exist.
  • Triple bonds (σ + 2π bonds) — Drawn as three parallel lines. Found in alkynes (C≡C) and nitriles (C≡N). Triple bonds make the atoms and their immediate neighbors linear.
  • Aromatic bonds — Drawn as alternating single/double lines within a ring, or as a circle inside the ring. Aromatic bonds represent delocalized electrons shared equally across all ring atoms — they are intermediate between single and double bonds in both length and strength.

Color Coding of Atoms

The structural diagram uses the standard CPK color scheme (named after chemists Corey, Pauling, and Koltun) to color different elements:

  • Carbon (C) — Dark gray/black (light theme) or white (dark theme)
  • Oxygen (O) — Red
  • Nitrogen (N) — Blue
  • Sulfur (S) — Yellow/amber
  • Phosphorus (P) — Orange
  • Halogens (F, Cl) — Green; Bromine (Br) — dark red; Iodine (I) — violet

This color scheme is universal in chemistry software and helps you quickly identify functional groups and heteroatoms in complex molecules.

Functional Groups and What They Tell You

Functional groups are specific arrangements of atoms within a molecule that give it characteristic chemical properties. Identifying them tells you how the molecule will likely react, whether it is acidic or basic, how it interacts with water, and often where it is found in biology or industry. Key groups detected by this tool:

  • Hydroxyl (–OH) — Alcohol/phenol. Makes molecules polar and water-soluble. Enables hydrogen bonding.
  • Carbonyl (C=O) — Core of aldehydes and ketones. Highly reactive; undergoes nucleophilic addition.
  • Carboxylic acid (–COOH) — Acidic; ionizes in water to release H⁺. Found in amino acids, fatty acids, vinegar.
  • Amide (–CONH–) — Bond linking amino acids in proteins (peptide bond). Relatively stable.
  • Amine (–NH₂) — Basic group. Found in amino acids, neurotransmitters, drugs.
  • Alkene (C=C) — Double bond; restricted rotation; reacts with halogens, acids via addition reactions.
  • Alkyne (C≡C) — Triple bond; linear; high-energy; used in synthesis and specialty fuels.
  • Nitrile (–C≡N) — Triple bond to nitrogen; precursor to amides and carboxylic acids; used in pharmaceuticals.
  • Aromatic ring — Stable due to delocalization; undergoes electrophilic aromatic substitution; found in plastics, drugs, dyes.

Frequently Asked Questions

What is SMILES and where can I find it for a molecule?

SMILES (Simplified Molecular Input Line Entry System) is a text notation for molecular structures. You can find the SMILES for any compound on PubChem (pubchem.ncbi.nlm.nih.gov), ChemSpider, or Wikipedia's chemistry articles. Search for the molecule name and look for the Canonical SMILES or Isomeric SMILES field.

Why doesn't my custom SMILES render correctly?

Common issues: unclosed parentheses or ring-closure numbers, invalid element symbols, or incorrect stereo notation. Try copying the SMILES directly from PubChem rather than typing it manually. The tool will show an error message if the SMILES cannot be parsed.

Does the tool show 3D structure?

The tool renders 2D structural diagrams, which show the connectivity and bond types of the molecule. True 3D structure (the spatial arrangement of atoms in three dimensions) requires a dedicated 3D viewer. The 2D representation is sufficient for identifying functional groups, bond types, and structural isomers.

How accurate are the functional group detections for custom SMILES?

The functional group detection uses pattern matching on the SMILES string and covers the most common groups (hydroxyl, carbonyl, carboxylic acid, amine, amide, alkene, alkyne, nitrile, aromatic). It is a heuristic approach that works well for standard organic molecules but may miss unusual bonding patterns or give false positives for highly complex structures.

Can I use the downloaded PNG in academic or professional documents?

Yes. The downloaded PNG is a clean structural diagram rendered at the canvas resolution. For publication-quality diagrams at very high resolution, a dedicated tool like ChemDraw, Marvin Sketch, or Avogadro may be preferable as they support vector output formats (SVG, EPS).