SDF to SMILES
v1.5Extract canonical SMILES strings from SDF ligand files, one record at a time or in batch.
SDF to SMILES is a small-molecule format converter that turns Structure Data File records into canonical SMILES strings. SDF, also called SD file format, stores a molecular graph, optional three-dimensional coordinates, and named data fields. SMILES captures the molecular graph as a compact line of text, making it better suited to compound tables, database registration, descriptor calculation, and many ligand-screening tools.
The conversion uses RDKit to read and sanitize each SDF record, then write a canonical SMILES representation. A canonical SMILES gives the same RDKit representation for the same interpreted molecular graph, which is useful for comparing records and reducing format-driven differences in a compound collection. It is not a universal identifier: canonicalization rules differ between chemistry toolkits, and distinct salt forms, tautomers, protonation states, and stereochemical definitions remain scientifically distinct inputs.
SDF is the right exchange format when coordinates or record-level properties matter. SMILES is the right handoff format when a downstream task needs connectivity. For example, an SDF result from docking can be converted before calculating molecular descriptors or screening a library with the PAINS filter.
ProteinIQ converts uploaded .sdf or .sd ligand files into one canonical SMILES string per SDF record. Upload a single structure or a multi-record SD file, then download individual .smi files, a named batch table when multiple records convert successfully, and a curated Run log that records success or failure counts for the input records.
| Input | Accepted content | Limit |
|---|---|---|
Ligand | .sdf or .sd molecular structure file, including files containing multiple records separated by $$$$ | Up to 10 files, 50 MB per file |
Each SDF record is processed independently. In a multi-record file, the record order is preserved in the result data through record_index. A record title is used as its name when available; otherwise ProteinIQ assigns a name based on the submitted file and record position.
No conversion settings are required. The submitted SDF is the source of chemical identity, including its formal charges, isotope labels, and any stereochemical information that RDKit can parse and validate.
The result table contains one row per SDF record, including its input name, source format, record index, conversion status, SMILES value, generated filename, and an error message when conversion fails.
| Download | Contents | When available |
|---|---|---|
<record-name>.smi | One canonical SMILES string followed by a newline | For every successfully converted record |
batch.smi.tsv | Tab-separated name and smiles columns | When more than one record converts successfully |
run.log | Curated run record with the input format, conversion phases, successful and failed entry counts, and stable failure guidance | For every job |
batch.smi.tsv is convenient for importing a named collection into a spreadsheet or workflow. The individual .smi files are better when each molecule must be passed on separately. The converted SMILES output can also be used as a ligand-SMILES artifact in ProteinIQ workflows.
An SDF can include coordinates, atom and bond blocks, and arbitrary property fields. RDKit reads the molecular record and performs sanitization before export. Sanitization checks whether the valence, aromaticity, and related molecular representation can be interpreted consistently. ProteinIQ then removes explicit hydrogen atoms from the exported molecular representation and calls RDKit's canonical SMILES writer.
The resulting text describes connectivity, bond orders, aromaticity, formal charge, isotope labels, and specified stereochemistry when they are represented in the parsed molecule. It does not retain SDF coordinates or arbitrary SDF data fields such as assay values, vendor identifiers, docking scores, or tags. Keep the original SDF if those fields are needed later.
For example, an aspirin structure can be represented as CC(=O)Oc1ccccc1C(=O)O. The same compound may have several valid non-canonical SMILES strings, depending on where writing begins around the molecular graph. Canonical output makes a single RDKit-generated spelling, but it does not standardize the chemistry itself.
An unsuccessful record does not prevent the rest of a batch from being converted. The Run log records the failed-entry count. Common causes include a truncated mol block, inconsistent atom or bond counts, unsupported valence, or malformed stereochemical annotations.
SDF to SMILES does not neutralize salts, choose a dominant tautomer, add missing stereochemistry, repair a ligand, or infer the protonation state appropriate to an assay or binding site. Those choices change the chemical structure rather than its format. Use Ligand Fixer when an SDF needs structural preflight and repair, then review the resulting structure before using the SMILES in property or model-based analysis.
To create a coordinate-bearing file from a SMILES input, use SMILES to SDF. That reverse conversion generates a three-dimensional conformer; it cannot recover the original coordinates or SDF property fields from SMILES alone.
Generate 3D SDF files from SMILES strings with batch conversion and downloadable combined outputs.
Generate SMILES strings from InChI identifiers for search, filtering, and modeling workflows.
Extract canonical SMILES strings from MDL MOL ligand files for cheminformatics workflows.
Extract canonical SMILES strings from MOL2 ligand files for cheminformatics workflows.
Convert ligand and peptide PDB coordinates to SDF with RDKit bond perception.
Export ligand poses from Meeko-prepared PDBQT to SDF while recovering chemical connectivity.
Convert SDF ligands to PDBQT with Meeko, preserving supplied coordinates.
Generate InChI identifiers from SMILES strings for registration and interoperability workflows.
Generate MOL2 files from SMILES strings for docking, scoring, and modeling workflows.
Generate 3D PDB files from SMILES strings for visualization and small-molecule workflows.