An open-source, native desktop chemical structure editor. Runs on macOS, Linux and Windows. Built with C++20, Qt 6 and RDKit.
Documentation: penzene.readthedocs.io. See the roadmap and issues.
Download the installer for your system from the latest release
(macOS .dmg, Windows setup.exe or .zip, Linux .AppImage), or pip install penzene for the Python package.
Homebrew, winget and Flathub packages are not yet supported.
The installers aren't signed with a paid certificate, so the first time you open Penzene:
- macOS: if it "can't be opened", go to System Settings → Privacy & Security and click Open Anyway.
- Windows: if SmartScreen appears, click More info → Run anyway.
- Linux:
chmod +x penzene-linux-x86_64.AppImage, then run it.
- Keyboard drawing: point at an atom or bond and type.
1111draws a chain,2a carbonyl,aa phenyl,Oan OMe, and the arrow keys walk the molecule. - Works with ChemDraw: opens
.cdxmland.cdxdrawings with their arrows, text and shapes, and pastes from ChemDraw. - Reaction schemes and mechanisms: reaction, equilibrium and retrosynthesis arrows, curved and fishhook arrows, lone pairs, radicals and partial charges.
- Templates: ready-made rings, amino acids, sugars, protecting groups, ligands and projections to click into place, from the Templates button on the left rail.
- Chemistry built in: formula, mass, cLogP, TPSA and drug-likeness checks as you draw, stereo labels, name ↔ structure, and descriptor tables for whole datasets.
- Figures that stay editable: SVG, PNG and PDF exports carry the drawing, so they open or paste back into Penzene. Copy pastes sharp vector images into Word, PowerPoint and Keynote.
- Figures at final size: lay a figure out on a page or a journal's column width.
- Scriptable: the same engine from the command line and from Python.
Render without opening a window, for scripts, notebooks and batch figures:
penzene --render aspirin.mol aspirin.svg # one file
penzene --render "CC(=O)Oc1ccccc1C(=O)O" aspirin.pdf # a SMILES string
penzene --render library.sdf hits.smi --out figs --format png --drawing-style RSC --cleanInputs can be SMILES strings or .smi, .sdf, .mol, .penz and .cdxml files. In a .smi or .sdf, every record becomes its own file, named after the record's name. The paths written are printed one per line. On macOS the binary is Penzene.app/Contents/MacOS/penzene.
The same engine as the app, from Python 3.12+ on macOS, Linux (glibc 2.17+) and Windows:
pip install penzeneimport penzene as pz
doc = pz.from_smiles("CC(=O)Oc1ccccc1C(=O)O") # aspirin
doc.clean(); doc.export("aspirin.svg") # identical to the app's export
doc.formula, doc.mw # ('C9H8O4', 180.16)
doc # renders inline in JupyterMore in python/README.md.
Requires pixi. It fetches Qt, RDKit and the toolchain from conda-forge.
pixi run build # build/bin/penzene
pixi run test
pixi run run # launch the app
pixi run install-app # macOS: self-contained app in /ApplicationsPlans and progress are on the project board.
UX and tool set inspired by Ketcher (Apache-2.0). Chemistry by RDKit (BSD-3). GUI by Qt (LGPL-3.0). ChemDraw file support uses Revvity's ChemDraw library (BSD-3).
Predicted NMR shifts use data from nmrshiftdb2 under the
nmrshiftdb2 Database License
(the table in resources/nmr keeps that licence).
GPL-3.0-or-later. See LICENSE. Dependency notices and license texts are in THIRD_PARTY_LICENSES.md.
