SMILES to PDBQT Converter
Prepare a ligand for AutoDock Vina: paste a SMILES, generate 3D coordinates and download a PDBQT file. Check the torsions, protonation and charges before docking.
What this SMILES to PDBQT converter does
PDBQT is the ligand format used by AutoDock 4 and AutoDock Vina. It combines a PDB-like atom table with AutoDock atom types, partial charges and a tree of rotatable bonds. This converter reads a SMILES string, generates 3D coordinates with OpenBabel and writes a PDBQT file with ROOT, BRANCH and TORSDOF records.
The output is a starting point for docking, not a validated ligand preparation. Check the protonation state, the torsions and the charges before you run a docking campaign — those three details matter more than the format conversion itself. For the full workflow, see the AutoDock Vina ligand preparation guide.
How the PDBQT is generated
- Parse the SMILES — OpenBabel builds the connection table and adds hydrogens.
- Generate 3D coordinates — a force-field optimisation produces a low-energy conformer. The “3D coordinates” option is enabled by default on this page.
- Assign AutoDock atom types — carbons, oxygens, nitrogens and halogens are mapped to the PDBQT atom types used by AutoDock.
- Build the torsion tree — rotatable bonds become BRANCH entries; the remaining atoms are in the ROOT.
- Write the file — download the PDBQT and inspect it in a text editor or in AutoDockTools.
Charges and protonation
OpenBabel writes the PDBQT atom types and the torsion tree, but it does not produce the Gasteiger charges that AutoDockTools or Meeko normally assign. In the output, the charge column may be zero. For production docking, prepare the ligand with a dedicated tool (Meeko, AutoDockTools, or your docking pipeline) or add charges in your preparation step.
Protonation is equally important. A carboxylic acid at pH 7.4 is mostly deprotonated; an amine is mostly protonated. Draw the SMILES in the protonation state you want to dock, or use a preparation tool that enumerates the relevant states. The converter does not guess the physiological protonation.
What the output contains
- ROOT — the rigid core of the ligand.
- BRANCH/ENDBRANCH — the flexible branches attached to the root.
- TORSDOF — the number of active torsions.
- Atom records — coordinates, AutoDock atom type and partial charge.
A ligand with no rotatable bonds has TORSDOF 0 and docks as a rigid body. A flexible ligand has one torsion per rotatable bond; too many torsions increase the search space and can slow the docking run.
Receptor preparation is separate
This page prepares the ligand. The receptor also needs a PDBQT file: remove waters and heteroatoms you do not want, add hydrogens, assign charges and atom types, and define the search box. AutoDockTools, Meeko or a docking pipeline can do that. Do not use the ligand converter for a protein unless you know the receptor preparation is complete.
Common uses
- Preparing a small-molecule ligand for AutoDock Vina or AutoDock 4.
- Converting a SMILES from a paper or a database into a docking-ready file.
- Inspecting the rotatable bonds of a ligand before choosing search parameters.
- Generating a 3D conformer for visual inspection (SMILES to 3D).
For a library, use the batch converter or the API. For an SDF intermediate, use SMILES to SDF.
Frequently asked questions
What is a PDBQT file?
PDBQT is AutoDock's ligand and receptor format. It extends PDB with AutoDock atom types, partial charges and a torsion tree, so the docking program knows which bonds can rotate.
How do I prepare a ligand for AutoDock Vina?
Start from a SMILES or SDF, set the protonation state, generate 3D coordinates, assign charges and atom types, and write PDBQT. This page handles the conversion and 3D generation; for production docking, check the charges with Meeko or AutoDockTools.
Are partial charges included?
Not reliably. OpenBabel's PDBQT writer may leave the charge column at zero. Assign Gasteiger charges in your preparation pipeline before docking.
Does it generate 3D coordinates?
Yes — the “3D coordinates” option is enabled by default. A 3D conformer is required for docking; a flat 2D structure is not enough.
Can I convert a protein or receptor to PDBQT?
This page is intended for small-molecule ligands. Receptor preparation requires removing waters, adding hydrogens, assigning charges and defining the search box; use AutoDockTools, Meeko or your docking pipeline.
Why is the number of torsions different from what I expected?
OpenBabel decides which bonds are rotatable based on the structure and its PDBQT writer. Amide bonds, terminal groups and ring bonds are usually treated as rigid. Check the ROOT/BRANCH records and adjust the active torsions in AutoDockTools if needed.