Skip to content

SMILES & InChI Structure Images ​

Render high-resolution 2D molecular structures directly inside Excel cells from SMILES strings (=SMILES2IMG) or IUPAC InChI strings (=INCHI2IMG)—scaling sharply with row height and sorting cleanly alongside table rows.

SMILES & InChI Rendering SheetA1:C3
Paste at A1
1ACompoundBSMILES / InChICFormulaDescriptionResultCopy
2EthanolCCO=SMILES2IMG(B2)Render in-cell 2D structure from SMILES (Col B)2D Ethanol
3EthanolInChI=1S/C2H6O/c1-2-3/h3H,2H2,1H3=INCHI2IMG(B3)Render in-cell 2D structure from IUPAC InChI (Col B)2D Ethanol
Scale cell row height and fill down =SMILES2IMG(B2) across rows.

1. Unified Image Syntax (SMILES & InChI) ​

Both formulas share the exact same 4-argument signature (input, [background], [style], [transform]) and run locally offline:

Input ColumnModern Excel (365 / 2024+)Legacy Excel (2016–2021)Notes
SMILES String=SMILES2IMG(B2, [bg], [style], [transform])=SMILES2IMG.FLOAT(...)Also auto-detects single-molecule/reaction KET JSON
IUPAC InChI (InChI=1S/...)=INCHI2IMG(C2, [bg], [style], [transform])=INCHI2IMG.FLOAT(...)Renders standard PubChem/ChEMBL/NIST InChI strings directly

2. Build a Multi-Row Structure Table ​

  1. Enter compound names in column A and SMILES strings in column B (e.g., Aspirin CC(=O)Oc1ccccc1C(=O)O).
  2. Type =SMILES2IMG(B2) (or =INCHI2IMG(B2)) in C2 and press Enter (on Excel 2016–2021, append .FLOAT).
  3. Set row height (62–80 pt recommended) and widen column C—the structure scales while locking bond aspect ratio and stays locked to its row when filtering or sorting.
  4. Drag the fill handle down to render hundreds of compounds at once.

3. Sketch, Paste & Double-Click to Edit ​

ActionHow to Do ItResult
Draw a MoleculeSelect a cell ➔ [SMILES] ➔ [Insert / Edit (SMILES)] (or InChI) ➔ sketch in Ketcher ➔ Ctrl + EnterWrites =SMILES2IMG("...") (or =INCHI2IMG(...)) directly into the cell
Paste StructureCopy SMILES/InChI/KET/Name/CAS text or select a cell ➔ [SMILES] ➔ [Paste Structure]Writes =SMILES2IMG(...) or =KET2IMG(...) directly; shows a confirmation dialog for chemical names or ambiguous short English words
In-Place Re-EditingDouble-click any rendered structure cell or .FLOAT pictureReopens Ketcher 2D with the molecule preloaded (ambiguous plain words are skipped when preloading empty cells)
  • Names, Solvents, CAS — Render Aspirin, THF, DMSO, or "50-78-2" directly with =NAME2IMG (built-in offline dictionary + 30-day local PubChem cache; invalid CAS check digits rejected locally)
  • Reaction Schemes (KET) — Store multi-step reactions cleanly inside cells with =KET2IMG
  • Styles & Highlights — Customize [bg], [style] ("bw", "hl:...", "num stereo"), and [transform]
  • Legacy Excel (.FLOAT) — Cell-anchored shapes for Excel 2016, 2019, and 2021

Released under the MIT License.