SMILES to Structure Converter Online
In short: Paste SMILES or import a compound from PubChem, render a 2D chemical structure, and download SVG, PNG, or JPG. It is free, works in your web browser and needs no download.
Paste a SMILES string and render a compact 2D chemical structure instantly. Download the molecule drawing as SVG, PNG, or JPG.
SMILES Input
Structure Output
Convert SMILES to a chemical structure image
SMILES is compact and machine-readable, but reports, slides, and teaching materials often need a visible 2D structure. This converter draws the molecule from the SMILES string and provides image downloads for quick reuse.
File Format Explained
SMILES is a one-line molecular notation that stores connectivity in text form. It is ideal for databases and converters, but not for human-friendly visual layout.
SVG is a vector image format, best for crisp structures in slides and documents. PNG and JPG are raster image formats, useful for quick sharing, web uploads, and reports.
- Use SVG for crisp vector graphics in documents and presentations.
- Use PNG for transparent raster images in web or slide workflows.
- Use JPG when a white-background image is preferred.
Related SMILES tools
Related guides
How to convert SMILES to a structure
- Paste a SMILES string into the box above, or type a compound name or PubChem CID in the search field to fetch its SMILES.
- Click Draw structure. The 2D skeletal structure appears straight away; errors are shown under the box.
- Download or copy the structure as SVG (sharp in slides and papers), PNG or JPG, or open it in the MolDraw editor to keep drawing.
SMILES examples: common molecules
Click Draw to load any of these into the converter.
| Molecule | SMILES | Formula | |
|---|---|---|---|
| Paracetamol (acetaminophen) | CC(=O)NC1=CC=C(O)C=C1 | C₈H₉NO₂ | |
| Caffeine | CN1C=NC2=C1C(=O)N(C(=O)N2C)C | C₈H₁₀N₄O₂ | |
| Aspirin (acetylsalicylic acid) | CC(=O)OC1=CC=CC=C1C(=O)O | C₉H₈O₄ | |
| Ibuprofen | CC(C)CC1=CC=C(C=C1)C(C)C(=O)O | C₁₃H₁₈O₂ | |
| Ethanol | CCO | C₂H₆O | |
| Benzene | C1=CC=CC=C1 | C₆H₆ | |
| Nicotine, (S)- | CN1CCC[C@H]1C2=CN=CC=C2 | C₁₀H₁₄N₂ | |
| Dopamine | NCCC1=CC(O)=C(O)C=C1 | C₈H₁₁NO₂ | |
| Serotonin | NCCC1=CNC2=C1C=C(O)C=C2 | C₁₀H₁₂N₂O | |
| β-D-Glucose | C([C@@H]1[C@H]([C@@H]([C@H]([C@@H](O1)O)O)O)O)O | C₆H₁₂O₆ |
SMILES syntax in 60 seconds
| Rule | Example | Means |
|---|---|---|
| Atoms: organic-subset symbols, others in brackets | CCO, [Na+], [nH] | Ethanol; sodium ion; aromatic N–H |
Bonds: single implied, = double, # triple | C=C, C#N | Ethene; nitrile |
| Branches in parentheses | CC(C)C | Isobutane |
| Ring closures with digits | C1CCCCC1 | Cyclohexane |
| Lowercase = aromatic | c1ccccc1 | Benzene |
| Charges in brackets | C[N+](C)(C)C, [O-] | Tetramethylammonium; oxide |
| Double-bond geometry with / and \ | C/C=C/C | (E)-2-butene |
| Chirality with @ and @@ | N[C@@H](C)C(=O)O | L-alanine |
| A dot separates fragments | [Na+].[Cl-] | Sodium chloride |
Sources: D. Weininger, "SMILES, a chemical language and information system. 1. Introduction to methodology and encoding rules", J. Chem. Inf. Comput. Sci. 1988, 28, 31–36; OpenSMILES specification.
More detail: SMILES notation guide.
Why won't my SMILES draw?
- Unclosed ring or branch: every ring digit needs a partner (
C1CCCC1) and every(a). - Impossible valence: a neutral carbon with five bonds, or an N with four bonds and no + charge.
- Aromatic atoms outside a ring: lowercase
c,n,omust be part of an aromatic ring; pyrrole-type N needs[nH]. - Hidden characters: text copied from PDFs can carry spaces, line breaks or look-alike dashes; paste it as plain text.
- A name instead of SMILES: type names into the search field, or use name to structure.
Frequently asked questions
How do I convert SMILES to a structure?
Paste the SMILES string into the box at the top of this page and click Draw structure. The 2D structure can be downloaded as SVG, PNG or JPG, or opened in the MolDraw editor.
What is the SMILES for paracetamol?
CC(=O)NC1=CC=C(O)C=C1 (aromatic form: CC(=O)Nc1ccc(O)cc1). Its formula is C₈H₉NO₂.
Can I convert SMILES to a 3D structure or a file?
Yes: use SMILES to 3D, SMILES to SDF, SMILES to MOL or SMILES to PDB.
Can I go the other way, from a structure to SMILES?
Yes: draw the molecule in the structure to SMILES converter and copy the SMILES.
Is the SMILES to structure converter free?
Yes. It runs in your browser, needs no account and has no limit on the number of conversions.
Last updated: