SMILES, InChI, Molfile: Which Format to Use for Storing and Exchanging Chemical Structures
A structure may look different after import without representing a different molecule. Missing stereochemical information or an altered formal charge, however, needs investigation. The cause may lie in the format, conversion settings or the receiving program’s interpretation.
Why Structures Change Between Programs
In chemical structure drawing software, the diagram represents data about atoms, bonds and stereochemistry, often alongside coordinates. What survives export depends on the format, export settings and the receiving program’s support.
SMILES: Compact but Not Unique
SMILES represents a molecular structure as a line of text, making it convenient for spreadsheets, scripts and machine learning datasets.
One molecule can have many valid SMILES strings. Canonicalization selects a consistent representation within a particular toolkit, but results can differ between toolkits and versions. Comparing strings from different sources can therefore suggest differences that do not exist.
Use isomeric SMILES to encode supported stereochemical features. Canonicalization alone does not ensure that stereochemistry is included. Standard SMILES does not store drawing coordinates.
InChI: Built for Identification
Developed by IUPAC and the InChI Trust, Standard InChI applies defined normalization rules to generate identifiers for comparison across databases. Its hashed counterpart, the InChIKey, is useful for database and web searches.
An InChI can be converted back into a structure with limitations, but it does not preserve the original drawing coordinates. An InChIKey cannot be directly converted back. Standard InChI also normalizes some tautomers, so forms you need to distinguish may share an identifier.
Molfile and SDF: Coordinates and Associated Data
A Molfile stores atom coordinates, bond types, formal charges and stereochemical information. It can preserve the molecular layout, although rendering and feature support vary between programs.
V2000 supports up to 999 atoms and 999 bonds. V3000 removes those fixed-field limits and supports enhanced stereochemistry, including relative stereochemical groups. Check that both programs support the required features.
SDF combines structure records with data fields, such as compound IDs or assay results, for exchanging annotated compound collections.
Matching the Format to the Task
- Editor exchange: Molfile; use V3000 when required features exceed V2000.
- Compound collections with properties: SDF.
- Scripts and tables: canonical isomeric SMILES with a recorded toolkit, version and settings.
- Search and deduplication: InChIKey, subject to its normalization rules.
Keep the original structure file and a validated exchange copy. After conversion, check connectivity, formal charges and stereochemistry in the receiving program.