Open Babel Used by MolForge
The Swiss-army knife of chemical file conversion, with more than a hundred formats.
Tool 074 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

What Open Babel is
Open Babel is a chemistry toolbox built around file-format conversion. A single command-line program reads a molecule in one format and writes it in another, covering line notations such as SMILES and InChI, structure files such as molfile, SDF, Mol2, PDB, CIF and XYZ, and the input and output files of quantum-chemistry programs including Gaussian, GAMESS, ORCA and NWChem. The library behind it is C++ with Python, Perl, Ruby, Java and C# bindings.
Beyond conversion, Open Babel perceives bonds from coordinates, adds hydrogens with pH-dependent protonation, generates three-dimensional coordinates, searches conformers, minimises with the MMFF94, UFF, GAFF and Ghemical force fields, assigns partial charges by several models, computes fingerprints and builds an index for fast similarity search over large files, and filters by SMARTS substructure. Typical use is a one-line conversion in a shell script or a Python call through the pybel module. Avogadro and many pipelines use it as their import and export layer.
Conversions are lossy whenever the target format cannot hold the information of the source, and the generated geometries are starting points rather than refined structures.
Features
- Conversion between a wide range of chemical file formats from one command
- Reads and writes inputs and outputs of Gaussian, GAMESS, ORCA, NWChem and others
- Bond perception, hydrogen addition and pH-dependent protonation
- Three-dimensional coordinate generation and conformer search
- MMFF94, UFF, GAFF and Ghemical force fields for minimisation
- Fingerprints with an indexed fast-search mode for large files
- SMARTS substructure filtering and several partial-charge models
What it is for
- Convert a batch of structures from SDF to PDB or XYZ
- Prepare quantum-chemistry inputs from a SMILES string
- Protonate ligands at a chosen pH before docking
- Filter a large file by substructure or similarity from the shell
Verified facts
| Family | Cheminformatics |
|---|---|
| Language or basis | C++ |
| Repository | https://github.com/openbabel/openbabel (GitHub) |
| Licence | GPL-2.0 (SPDX identifier as declared in the repository) |
| Main language on GitHub | C++ |
| Last commit | 2026-09-14 |
| Latest release | No GitHub release tagged; follow the repository's own versioning |
| Stars | 1,416 on 2026-11-28 |
| Open issues and pull requests | 608 on 2026-11-28 |
| Repository created | 2008-12-26 |
| Verified | 2026-11-28 by MolForge's checking script, against the host's API |
Where Open Babel fits
Represent, convert and manipulate chemical objects: SMILES, InChI, fingerprints, substructures.
It is the first place to look when you want manipulating molecules in Python.
Questions people ask
- What file formats does Open Babel support?
- A long list spanning line notations, two- and three-dimensional structure files, crystallographic formats, and the inputs and outputs of most quantum-chemistry packages. The command-line program lists them with a flag, with read and write capability noted per format, since some are read-only or write-only.
- Can Open Babel generate 3D structures from SMILES?
- Yes. A command-line option builds an initial geometry using fragment rules and a force-field clean-up, and a conformer search can follow. The result is a reasonable starting structure for further optimisation, not a refined minimum; quantum-chemistry or dedicated conformer tools take over from there.
- How is Open Babel different from RDKit?
- Open Babel's strength is breadth of formats and a command-line tool for conversion and quick manipulations. RDKit is a programming library with deeper support for substructure chemistry, fingerprints, depiction and reactions, used mainly from Python. They are complementary, and many workflows call both.
- Is Open Babel usable from Python?
- Yes. The openbabel module exposes the full C++ API and the pybel module wraps it in a simpler object interface for reading, writing, descriptors, fingerprints and force fields. Both are installed with the Python bindings, which are available through conda and pip.
- Is Open Babel open source?
- Yes. The repository declares the GPL-2.0 licence (SPDX identifier read from the host on 2026-11-28). Read the licence text in the repository before redistributing or embedding it.
- Where is the Open Babel source code?
- At https://github.com/openbabel/openbabel (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
- Is Open Babel still maintained?
- The last commit was pushed on 2026-09-14, and no release is tagged on GitHub; the repository had 608 open issues and pull requests on 2026-11-28.
- Does MolForge use Open Babel?
- Open Babel 3.1.1 is installed in the API image for file-format conversions around docking and dynamics inputs.
How MolForge uses Open Babel
Open Babel 3.1.1 is installed in the API image for file-format conversions around docking and dynamics inputs.
Test status
No dedicated test yet; a SDF to PDBQT conversion test is on the roadmap.