OBABEL(1)
πΈ obabel(1) β User's Reference Manual, but make it group chat β¨
π NAME π
obabel β a converter for chemistry and molecular modeling data files. Like, it takes your molecular data and gives it a whole new file-format outfit, bestie. π
β¨ SYNOPSIS β¨
Okay so here's the exact vibe:
obabel -Hhelp-options
obabel [OPTIONS] [-iinput-type | -:SMILES-string] infile [-ooutput-type]
-Ooutfile
π¦ DESCRIPTION π¦
obabel is a cross-platform program designed to interconvert between many file formats used in molecular modeling and computational chemistry and related areas. No cap, it's the format-swapping main character. π₯
Open Babel is also a complete programmers toolkit for developing chemistry software. For more information, see the Open Babel web pages at https://openbabel.org/. π«Ά
π OPTIONS π
If only input and output files are given, Open Babel will guess the file type from the filename extension. Lowkey detective work, honestly. π
-:SMILES-stringβ enter a SMILES string and use it in place of an input file. TheSMILES-stringmight need to be enclosed in quotation marks to avoid shell interpretation. More than one can be used, and a molecule title can be included if enclosed in quotes. π¬-aoptionsβ format-specific input options. See-Hformat-IDfor options allowed by a particular format. π--addtotitleβ append text to the current molecule title. π·οΈ--addformulaβ append the molecular formula after the current molecule title. π§ͺ-bβ convert dative bonds: e.g.,[N+]([O-])=OtoN(=O)=O. Chemistry glow-up, fr fr. βοΈ-cβ center atomic coordinates at(0,0,0). Put it in the middle, periodt. π―-Cβ combine molecules in first file with others having the same name. Reunion episode energy. π―-eβ continue after errors. We keep it moving, bestie. πΆββοΈ-dβ delete Hydrogens. Bye-bye, lil H's. π---errorlevel nβ filter the level of errors and warnings displayed:1= critical errors only2= include warnings too (default)3= include informational messages too4= include βaudit logβ messages of changes to data5= include debugging messages too
-f #β for multiple entry input, start import with molecule # as the first entry. Start at the part you actually care about. β©-Fβ output the available fingerprint types. Fingerprints but make it chemistry. π-hβ add hydrogens. Hydrating your molecule, iconic. π§-Hβ output usage information. The classic "how do I work this thing" button. π-Hformat-IDβ output formatting information and options for format specified. Peep the format's whole lore. π-Hallβ output formatting information and options for all formats. The full encyclopedia, no skips. π-iformat-IDβ specifies input format, see below for the available formats. Tell it what you're feeding it. π½οΈ-j,--joinβ join all input molecules into a single output molecule entry. Friendship bracelet mode. π«Ά-kβ translate computational chemistry modeling keywords (e.g.,GAMESSandGaussian). Translator era. π£οΈ-mβ produce multiple output files, to allow:- Splitting one input file β put each molecule into consecutively numbered output files
- Batch conversion β convert each of multiple input files into a specified output format
-l #β for multiple entry input, stop import with molecule # as the last entry. Exit stage left. πͺ-oformat-IDβ specifies output format, see below for the available formats. Tell it what outfit to leave in. π-Ooutfileβ specify the output file. Name the destination, bestie. π-pβ add Hydrogens appropriate for pH (use transforms inphmodel.txt). pH-pilled hydrogen behavior. π§ͺ--propertyβ add or replace a property (e.g., in anMDL SD file). Property makeover moment. π-s SMARTSβ convert only molecules matching theSMARTSpattern specified. If it matches, it slays. π―--separateβ separate disconnected fragments into individual molecular records. Break it up, break it up. βοΈ-tβ all input files describe a single molecule. Teamwork, but for files. π€--title titleβ add or replace molecular title. Give it a name worth remembering. π·οΈ-xoptionsβ format-specific output options. See-H format-IDfor options allowed by a particular format. π-v SMARTSβ convert only molecules NOT matchingSMARTSpattern specified. The "not invited to the group chat" filter. π ββοΈ-Vβ output version number and exit. Quick little version check, then dip. π-zβ compress the output withgzip. Tiny file, big serve. ποΈ
π FILE FORMATS π
okay so Open Babel currently supports literally all of these formats, bestie β full roster, no skips, no cap:
abinitβ ABINIT Output Format [Read-only]acesinβ ACES input format [Write-only]acesoutβ ACES output format [Read-only]acrβ ACR format [Read-only]adfβ ADF cartesian input format [Write-only]adfbandβ ADF Band output format [Read-only]adfdftbβ ADF DFTB output format [Read-only]adfoutβ ADF output format [Read-only]alcβ Alchemy formataoforceβ Turbomole AOFORCE output format [Read-only]arcβ Accelrys/MSI Biosym/Insight II CAR format [Read-only]asciiβ ASCII format [Write-only]axsfβ XCrySDen Structure Format [Read-only]bgfβ MSI BGF formatboxβ Dock 3.5 Box formatbsβ Ball and Stick formatc09outβ Crystal 09 output format [Read-only]c3d1β Chem3D Cartesian 1 formatc3d2β Chem3D Cartesian 2 formatcacβ CAChe MolStruct format [Write-only]caccrtβ Cacao Cartesian formatcacheβ CAChe MolStruct format [Write-only]cacintβ Cacao Internal format [Write-only]canβ Canonical SMILES formatcarβ Accelrys/MSI Biosym/Insight II CAR format [Read-only]castepβ CASTEP format [Read-only]cccβ CCC format [Read-only]cdjsonβ ChemDoodle JSONcdxβ ChemDraw binary format [Read-only]cdxmlβ ChemDraw CDXML formatchtβ Chemtool format [Write-only]cifβ Crystallographic Information Filecjsonβ Chemical JSONckβ ChemKin formatcmlβ Chemical Markup Languagecmlrβ CML Reaction formatcofβ Culgi object file formatcomβ Gaussian Input [Write-only]confabreportβ Confab report format [Write-only]CONFIGβ DL-POLY CONFIGCONTCARβ VASP formatCONTFFβ MDFF formatcopyβ Copy raw text [Write-only]crk2dβ Chemical Resource Kit diagram(2D)crk3dβ Chemical Resource Kit 3D formatcsrβ Accelrys/MSI Quanta CSR format [Write-only]cssrβ CSD CSSR format [Write-only]ctβ ChemDraw Connection Table formatcubβ Gaussian cube formatcubeβ Gaussian cube formatdallogβ DALTON output format [Read-only]dalmolβ DALTON input formatdatβ Generic Output file format [Read-only]dmolβ DMol3 coordinates formatdxβ OpenDX cube format for APBSentβ Protein Data Bank formatexyzβ Extended XYZ cartesian coordinates formatfaβ FASTA formatfastaβ FASTA formatfchβ Gaussian formatted checkpoint file format [Read-only]fchkβ Gaussian formatted checkpoint file format [Read-only]fckβ Gaussian formatted checkpoint file format [Read-only]featβ Feature formatfhβ Fenske-Hall Z-Matrix format [Write-only]fhiaimsβ FHIaims XYZ formatfixβ SMILES FIX format [Write-only]fpsβ FPS text fingerprint format (Dalke) [Write-only]fptβ Fingerprint format [Write-only]fractβ Free Form Fractional formatfsβ Fastsearch formatfsaβ FASTA formatg03β Gaussian Output [Read-only]g09β Gaussian Output [Read-only]g16β Gaussian Output [Read-only]g92β Gaussian Output [Read-only]g94β Gaussian Output [Read-only]g98β Gaussian Output [Read-only]galβ Gaussian Output [Read-only]gamβ GAMESS Output [Read-only]gamessβ GAMESS Output [Read-only]gaminβ GAMESS Inputgamoutβ GAMESS Output [Read-only]gauβ Gaussian Input [Write-only]gjcβ Gaussian Input [Write-only]gjfβ Gaussian Input [Write-only]gotβ GULP format [Read-only]gprβ Ghemical formatgr96β GROMOS96 format [Write-only]groβ GRO formatgukinβ GAMESS-UK Inputgukoutβ GAMESS-UK Outputgzmatβ Gaussian Z-Matrix Inputhinβ HyperChem HIN formatHISTORYβ DL-POLY HISTORY [Read-only]inchiβ InChI formatinchikeyβ InChIKey [Write-only]inpβ GAMESS Inputinsβ ShelX format [Read-only]jinβ Jaguar input formatjoutβ Jaguar output format [Read-only]kβ Compare molecules using InChI [Write-only]lmpdatβ The LAMMPS data format [Write-only]logβ Generic Output file format [Read-only]lpmdβ LPMD formatmaeβ Maestro formatmaegzβ Maestro formatmcdlβ MCDL formatmcifβ Macromolecular Crystallographic InfoMDFFβ MDFF formatmdlβ MDL MOL formatml2β Sybyl Mol2 formatmmcifβ Macromolecular Crystallographic Infommdβ MacroModel formatmmodβ MacroModel formatmnaβ Multilevel Neighborhoods of Atoms (MNA) [Write-only]molβ MDL MOL formatmol2β Sybyl Mol2 formatmoldβ Molden formatmoldenβ Molden formatmolfβ Molden formatmolreportβ Open Babel molecule report [Write-only]mooβ MOPAC Output format [Read-only]mopβ MOPAC Cartesian formatmopcrtβ MOPAC Cartesian formatmopinβ MOPAC Internalmopoutβ MOPAC Output format [Read-only]mpβ Molpro input format [Write-only]mpcβ MOPAC Cartesian formatmpdβ MolPrint2D format [Write-only]mpoβ Molpro output format [Read-only]mpqcβ MPQC output format [Read-only]mpqcinβ MPQC simplified input format [Write-only]mrvβ Chemical Markup Languagemsiβ Accelrys/MSI Cerius II MSI format [Read-only]msmsβ M.F. Sanner's MSMS input format [Write-only]nulβ Outputs nothing [Write-only]nwβ NWChem input format [Write-only]nwoβ NWChem output format [Read-only]orcaβ ORCA output format [Read-only]orcainpβ ORCA input format [Write-only]outβ Generic Output file format [Read-only]outmolβ DMol3 coordinates formatoutputβ Generic Output file format [Read-only]paintβ Painter format [Write-only]pcβ PubChem format [Read-only]pcjsonβ PubChem JSONpcmβ PCModel Formatpdbβ Protein Data Bank formatpdbqtβ AutoDock PDBQT formatpngβ PNG 2D depictionpointcloudβ Point cloud on VDW surface [Write-only]posβ POS cartesian coordinates format [Read-only]POSCARβ VASP formatPOSFFβ MDFF formatpovβ POV-Ray input format [Write-only]pqrβ PQR formatpqsβ Parallel Quantum Solutions formatprepβ Amber Prep format [Read-only]pwscfβ PWscf format [Read-only]qcinβ Q-Chem input format [Write-only]qcoutβ Q-Chem output format [Read-only]reportβ Open Babel report format [Write-only]resβ ShelX format [Read-only]rinchiβ RInChI [Write-only]rsmiβ Reaction SMILES formatrxnβ MDL RXN formatsdβ MDL MOL formatsdfβ MDL MOL formatsiestaβ SIESTA format [Read-only]smiβ SMILES formatsmilesβ SMILES formatsmyβ SMILES format using Smiley parser [Read-only]stlβ STL 3D-printing format [Write-only]svgβ SVG 2D depiction [Write-only]sy2β Sybyl Mol2 formatt41β ADF TAPE41 format [Read-only]tddβ Thermo formattextβ Read and write raw textthermβ Thermo formattmolβ TurboMole Coordinate formattxtβ Title formattxyzβ Tinker XYZ formatunixyzβ UniChem XYZ formatVASPβ VASP formatvmolβ ViewMol formatwlnβ Wiswesser Line Notation [Read-only]xedβ XED format [Write-only]xmlβ General XML format [Read-only]xsfβ XCrySDen Structure Format [Read-only]xyzβ XYZ cartesian coordinates formatyobβ YASARA.org YOB formatzinβ ZINDO input format [Write-only]
That's the whole roster π the bracket labels are exactly as Open Babel lists them.
π FORMAT OPTIONS π
okay so individual file formats may have additional formatting options. input format options are preceded by -a, e.g. -as. output format options are preceded by -x, e.g. -xn. for further specific information and options, use -Hformat-type, e.g. -Hcml β that's where the format-specific tea lives β¨
πΈ ENVIRONMENT πΈ
OB_RANDOM_SEEDβ Seed for the pseudo random number generator; a random seed is used if this is unset or null. This feature is effective if Open Babel is built with the-DOB_USE_OBRANDOMMTcpreprocessor flag (it will be automatically enabled when version 4 is released).
β¨ EXAMPLES β¨
Standard conversion:
obabel ethanol.xyz -Oethanol.pdb
Conversion from a SMI file in STDIN to a Mol2 file written to STDOUT:
obabel -ismi -omol2
Split a multi-molecule file into new1.smi, new2.smi, etc.:
obabel infile.mol -Onew.smi -m
π«Ά SEE ALSO π«Ά
you'll also want to hang out with obenergy(1), obfit(1), obgrep(1), obminimize(1), obprop(1), obrotamer(1), and obrotate(1). the web pages for Open Babel can be found at: <http://openbabel.org/>
π AUTHORS π
A cast of many, including the current maintainers Geoff Hutchison, Chris Morley, Michael Banck, and innumerable others who have contributed fixes and additions. For more contributors to Open Babel, see <https://openbabel.org/docs/Introduction/thanks.html> π
π COPYRIGHT π
Copyright (C) 1998-2001 by OpenEye Scientific Software, Inc. Some portions Copyright (C) 2001-2007 by Geoffrey R. Hutchison
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
xoxo, your Unix bestie π β this page's footer says Open Babel 3.2, dated May 26, 2026, and the manpage tag is OBABEL(1). π
π¦ where this page comes from
- arch rolling: openbabel 3.2.1-1 Β· GPL-2.0-only
- opensuse-leap 16.0: openbabel 3.2.0-bp160.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: openbabel 3.2.0-bp160.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: openbabel 3.2.0-bp160.1.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms