Math, Science & School

Molecule Builder: Free Online Chemistry Tool

Put atoms on the board, join them up, and watch it work out what you've made: water, vinegar, caffeine, ibuprofen, or something new. Spin it in 3D, check its isomers, and unlock new elements as you discover more.

Drag an element from the top onto the board. Drop it onto an atom to attach it. Right-click an atom (or press and hold) for the connector menu: pick a bond, then drag from that atom to another. Tap a bond to cycle single โ†’ double โ†’ triple.
โ€“
Drag a C onto the board to start.

๐Ÿ“’ Your discoveries

Nothing yet. Make water: one O, Auto hydrogens on.

Dashed ones are your own inventions: valid molecules that aren't in the built-in list.

Keeps this tool on this device so it works without internet, even after a refresh.โš  Offline: The PubChem button needs internet. Drawing, naming, isomers and 3D all work offline.

Had fun, or did this help? Iโ€™d appreciate any donation :) Not needed, but money buys temporary happiness at least lol

What it is

A molecule builder that knows chemistry. Place atoms, join them with bonds, and it works out what you've made as you go: the formula, the mass, a canonical SMILES string, the functional groups, whether any atom has an impossible number of bonds, and, if it's a known molecule, its name and a short description. If it's not in the built-in list it still tells you everything it can calculate, gives it a systematic (IUPAC) name when it's simple enough, and offers a one-click search on PubChem.

How to draw a molecule

  1. Drag an element from the top onto the board (โŠž opens a mini periodic table with all 118). Drop it on an empty spot for a new atom, or onto an atom to attach it with a single bond. Clicking an element drops one into an empty spot.
  2. Right-click an atom (on a phone, press and hold) to open the connector menu. Pick single, double or triple, or a wedge or dash for 3D shape, then drag from that atom to another one. Drag to an empty spot to make a new atom there. Press Esc to put the connector down.
  3. Tap a bond to cycle it single โ†’ double โ†’ triple. Right-click it to change or delete it. Drag an atom to move it, and tap it to select it (Delete removes it).
  4. Drag across an empty part of the board to box-select several atoms, then drag any of them to move the group. Ctrl+C copies, Ctrl+X cuts, Ctrl+V pastes a copy beside it, and Ctrl+A selects everything.
  5. Keep Auto hydrogens on and you only need to draw the skeleton: hydrogens are filled in for you, the way chemists draw. Turn it off to place every H yourself; atoms that still want bonds show an orange number.
  6. Atoms with too many bonds get a red dashed ring. Carbon makes 4 bonds, nitrogen 3, oxygen 2, hydrogen and the halogens 1.

What molecules can I build?

Anything that follows the bonding rules, and about 240 well-known molecules are recognised by name: from water, table salt and baking soda to caffeine, aspirin, vitamin C, dopamine, testosterone, the DNA bases (adenine, guanine, cytosine, thymine), amino acids, sugars, fats, fuels, plastics, solvents, acids and the molecules behind common smells and tastes. Valid molecules that aren't in the list still get a formula, mass, functional groups and a generated name.

In Progression mode you start with only hydrogen, carbon and oxygen, and unlock new elements by making particular molecules: easy ones like water and carbon dioxide come first.

Example

With Auto hydrogens on, drag a C onto the board, drag another C onto it, then drag an O onto the second carbon: Cโ€“Cโ€“O. The board shows Cโ‚‚Hโ‚†O and identifies ethanol, the alcohol in drinks. Now drag the oxygen into the middle so it reads Cโ€“Oโ€“C: same formula, but it's now dimethyl ether, a gas. Those two are structural isomers: the same atoms joined differently. Open the Related tab to see both.

Isomers and 3D shape

Structural (constitutional) isomers have the same formula but different connections, like ethanol and dimethyl ether, or butane and isobutane. Stereoisomers have the same connections but a different arrangement in space. A carbon with four different groups around it is a chiral centre, and comes in left- and right-handed forms labelled R and S using the Cahnโ€“Ingoldโ€“Prelog priority rules. A double bond with two different groups at each end can be E (opposite sides) or Z (same side), like fumaric and maleic acid.

To set a chiral centre, draw one of its bonds as a wedge (pointing toward you) or a dash (pointing away), with the narrow end on the chiral centre. E and Z come straight from how you draw the double bond. The Stereo tab lists every chiral centre and E/Z bond and how many stereoisomers the molecule can have.

Molecule Builder FAQ

How does it recognise a molecule?

It turns your drawing into a canonical SMILES: a single text code that's the same however the molecule is drawn, numbered or rotated, plus its R/S and E/Z labels. That code is looked up in the built-in list, which is a file shipped with the page, so it works offline and nothing you draw is sent anywhere. Only if you press a PubChem button is the structure sent to PubChem, to search their database of over 100 million compounds.

Why does it say my molecule isn't in the list?

The built-in list holds about 240 well-known molecules. Plenty of valid molecules aren't in it, and those count as your own inventions in Progression mode. The page still shows the formula, mass, groups, isomers and a generated name, and the PubChem button checks whether anyone has made it before.

How accurate is the 3D model?

It's built from typical bond lengths and angles for each kind of atom, keeping the right handedness at chiral centres and the right E/Z geometry. It's good for seeing the shape, but it isn't a quantum-chemistry calculation.

Is my progress saved?

Yes, your discoveries and inventions are saved in this browser's local storage.