PDB to SMILES Converter
Pull the chemical structure out of a PDB file — most useful for the small-molecule ligands and cofactors bound inside a protein structure.
What you actually get
A PDB file contains a whole protein plus its ligands, waters and ions. Converting to SMILES produces a disconnected-format string that tries to represent everything at once, which is rarely what you want. The useful workflow is:
- Keep only the
HETATMrecords for the ligand you care about. - Convert that fragment to SMILES.
Typical use cases
- Extracting a bound inhibitor from a crystal structure for similarity searching
- Building a ligand dataset from a set of PDB entries
- Feeding a structure into a docking pipeline
Watch out for
PDB files often lack hydrogens and bond orders. The converter infers bonds from atom distances, so unusual geometries can produce a wrong bonding pattern — always check the result against the original figure.