Skip to main content

SMILES (chemical structure)

Draws a molecule written in SMILES notation as a chemical structure diagram showing the relationships between atoms and bonds.

Syntax

```smiles
CCO
```

The example above represents ethanol. SMILES is a standard chemical notation that encodes atoms and the bonds between them as a short text string.

What it's for

Showing the structure of a molecule visually in chemistry notes, instead of describing it in words.

Source

The syntax of SMILES notation is widely documented in chemistry resources ("SMILES notation"). The visualization library Tsunagi uses: github.com/reymond-group/smilesDrawer.

Tsunagi-specific note

If you write an invalid SMILES string, the diagram isn't rendered; the code is shown as plain text instead.