Chemistry drawings for teaching, research, and the web
Molkit is a chemistry drawing program that runs in your browser. Draw Lewis structures, animate mechanisms, and export figures at the size a journal prints them.
Under active development
Draw a structure by hand
Pick a tool from the palette on the left, place a ring with one click, and drag bonds out of atoms. To change an atom, rest the pointer on it and type the element symbol, or choose an element from the picker on the right and click the atom. Click a bond to change its order.
While you drag a bond out, a guide shows the angles it snaps to.
Draw a structure with a script
Many drawing actions have a Molkit Script command. A figure kept as a script can be sent to a colleague, changed, and run again.
Record in the script console writes the commands while you draw with the mouse, so a drawing made by hand can be saved as a script and played back.
draw benzaldehyde smiles: "O=Cc1ccccc1" view: bondline
draw molecule-1 smiles: "O=Cc1ccccc1" at: (-1.8, -2.3)
foreach m in [methane, ammonia, water] { draw m view: lewis}draw nitrate view: lewis below: methane gap: 3 bondresonance nitratederive water views: all
Type what you want to do
Type a few letters of a command, a setting, a preset, or a molecule's name in the command palette. Start the line with > to run it as Molkit Script. The entries you used last come first.
Tell Molkit what you want
Ask in the AI chat for what you would otherwise do by hand: draw a set of molecules, animate a mechanism, compute an ESP map or a reaction path, switch to a journal's style, or export the figures. You can also attach a picture or a page of a PDF and ask for its structures. The AI writes a Molkit Script, checks it, and runs it, so everything it does is a script you can read, keep, and change.
The chat uses your own key from Anthropic, OpenAI, Google, OpenRouter, or Z.ai. Your browser sends the key straight to that provider. Z.ai does not accept requests from a web page, so molkit.com passes those on to Z.ai, without storing the key.
From coordinates to a Lewis structure
Paste the coordinates from a calculation or a model, the lines of an .xyz file, into File > Import XYZ. Molkit works out which atoms are bonded and with what bond orders, and lays the molecule out flat as a drawing you can edit.
An ion's charged atom gets its charge, such as N+ in ammonium. Lone pairs and stereo wedges are options.
38
porphine
C -0.765 0.000 -6.062
N -0.765 0.769 -4.895
C -0.765 2.128 -5.218
C -0.765 -3.763 -5.183
C -0.765 -4.266 -3.915
C -0.765 -3.095 -2.987
N -0.765 -1.925 -3.720
C -0.765 -2.275 -5.057
C -0.765 3.763 -0.731
C -0.765 4.266 -1.999
C -0.765 3.095 -2.927
N -0.765 1.925 -2.194
C -0.765 2.275 -0.857
C -0.765 -2.220 0.762
C -0.765 -0.932 1.273
C -0.765 0.000 0.148
N -0.765 -0.769 -1.019
C -0.765 -2.128 -0.696
C -0.765 2.220 -6.676
C -0.765 0.932 -7.187
C -0.765 -1.394 -6.142
C -0.765 1.394 0.228
C -0.765 -3.198 -1.593
C -0.765 3.198 -4.321
H -0.765 0.404 -3.975
H -0.765 -4.286 -6.134
H -0.765 -5.299 -3.580
H -0.765 4.286 0.220
H -0.765 5.299 -2.334
H -0.765 -3.159 1.307
H -0.765 -0.621 2.313
H -0.765 -0.404 -1.939
H -0.765 3.159 -7.221
H -0.765 0.621 -8.227
H -0.765 -1.835 -7.152
H -0.765 1.835 1.238
H -0.765 -4.211 -1.160
H -0.765 4.211 -4.754
Tidy a rough drawing in one step
Structure > Clean Up Structure sets the bond lengths and angles to standard values and redraws each separate ring of three to eight atoms as a regular polygon. It moves atoms, but it does not add, remove, or relabel any.
Drag across the picture to compare ibuprofen before and after.
Drawn the way IUPAC recommends
Molkit follows the IUPAC recommendations for chemical structure drawings, including the less familiar rules. Each drawing rule below gives its section number.
A double bond shared by two rings has its second line in the ring with more double bonds (GR-1.10.4).
A C=O at a corner has its second line inside the bend, as in an aldehyde; one between two groups is centered, as in a ketone (GR-1.10.2).
A ring-fusion stereocenter gets an explicit H on a wedge or hash, pointing out of the rings (ST-1.3.2).
Atom numbers follow the 2013 IUPAC numbering of the parent chain.
Journal styles at their printed size
Each journal preset sets the bond length, line width, and label size the journal asks for. Export at 100% and the figure comes out at the size it prints. The same aspirin in three styles:
Change how each part is drawn
Molkit follows the drawing conventions by default, and you can change them. Each numbered part has settings of its own. Set them for the whole document in Structure Settings, or for one atom or bond in the Properties panel. Molkit Script sets both.
- Bond width and line ends
- Double bond spacing, and the side its second line takes
- Wedge width, at the wide end and the narrow end
- Hashed bonds: how many lines, and their spacing
- Labels: font, size, weight, and the space around them
- Charge sign: plain or circled, its size, place, and color
- Lone pairs: dots, lines, or lobes, their size, spacing, distance, and color
- The side of the atom its H is written on
- Element colors, or one atom's or bond's own color
- Stereo labels: shown or hidden, size, color, and place
- Benzene rings: alternating double bonds or a circle, and the circle's size, color, and dash
Also: bond length, carbon labels, radicals, atom numbers, wavy and bold bonds, and the gap where one bond crosses another.
Alanine, set up for four jobs:
Animate a mechanism from its steps
Draw each step of the mechanism with its curved arrows. Molkit animates from one step to the next: the electrons follow the arrows, bonds form and break, and the atoms move into place. The animation exports as one SVG file that plays in any web browser, on a website, or in a web slide deck; for PowerPoint, export a video.
Worked solutions, one line at a time
Write a derivation in LaTeX as an align* block, and Molkit turns it into a step-by-step animation: each line appears in turn and the numbers go in as the solution proceeds. A bar over a digit marks its last significant figure.
The export is one SVG file with a caption for every step, and a spoken version of each caption for screen readers. This one is from the calorimetry chapter of chem.academy.
Practice problems that check the drawing
A web page, such as a class website or an online textbook, can show a drawing problem. The student draws the structure and presses Check, and Molkit says what is missing, such as a lone pair or a charge. The answer is checked on the server, so it is not in the page.
Try one: choose a molecule, draw it, and press Check.
One file holds every view of a molecule
An SVG exported from Molkit is self-contained: inside the one file are the Lewis, VSEPR, and bond-line views, the 3D model, and computed results such as the IR spectrum. It needs no database or server. Opened anywhere else, it is an ordinary picture. An ESP map is inside it too, unless you choose to save the map as a separate file.
On a web page with the Molkit Viewer, the same file opens all of it: readers switch views, turn the 3D model, and show each atom's formal charge, oxidation state, hybridization, or electronegativity. The viewer here is live.
Figures that carry their chemistry
Each atom and bond in an exported SVG carries what it is: element, charge, oxidation state, hybridization, lone pairs, bond order, and bond polarity. The file also holds the SMILES and InChI.
A web page can restyle the figure by its chemistry. One CSS rule highlights every sp2 atom or every charged atom, and one call to the Molkit Viewer labels every atom with its formal charge, oxidation state, hybridization, or geometry, or draws each bond's dipole arrow. The figure here is glycine as its zwitterion; each switch adds one rule or one label.
/* choose a switch above */
Orbitals in 3D
The 3D view can show a molecule's hybrid orbitals in place of the ball-and-stick model. Ethane, ethene, and acetylene show the series: sp3, sp2, and sp carbons, with no, one, and two π bonds.
The MOs button on the bar under the model shows the molecular orbitals instead, from a GFN2-xTB calculation saved with the figure, beside a ladder of their energies: click a level to see that orbital. Where there is a π bond, the bar's slider moves the p orbitals together into it, and Explore builds the hybrids up from the atomic orbitals.
Electrostatic potential on the molecule
An ESP map colors the molecule's surface by its electrostatic potential: red where the molecule is electron-rich, blue where it is electron-poor. The map is saved in the exported SVG, and readers can turn it in the Molkit Viewer.
The maps here were calculated ahead of time. Calculating your own needs the calculation helper; a map from a cube file opens without it.
Calculations on the drawing
Molkit computes a molecule's IR spectrum and its vibrations, energy scans, and, for a simple mechanism such as one SN2 step, the energy along its reaction path. A reaction path or an IR spectrum is saved with the drawing and in the exported SVG; a scan is saved when you insert its chart into the drawing.
IR spectra and reaction paths use GFN2-xTB, and most angle and dihedral scans use the MMFF94 force field, both in the browser (gas phase). A scan that stretches a bond or turns an angle in a ring, a calculation in a solvent, or a GFN2-xTB scan needs the calculation helper, a program that runs xTB on your own computer.

- 0°
- 60°
- 120°
- 180°

Crystals and unit cells
Open a CIF, POSCAR, or extended XYZ file as a unit cell you can edit, or pick one of the built-in crystals. Every atom of the cell is an ordinary atom you can select, move, and style.
The crystal panel repeats the cell, looks along an axis, counts the atoms in the cell, marks holes, stacking layers, and (hkl) planes, draws polyhedra, opens the cell in 3D, and computes the powder pattern.

In use in an open textbook
chem.academy, an open-access general chemistry textbook, is illustrated in Molkit: 186 structure figures that open in the Molkit Viewer, 16 mechanism animations, and 378 animated worked solutions.
Most of the structures are in its structure library, where each one opens in the Molkit Viewer. Others are in the chapters on Lewis structures, VSEPR, valence bond theory, and reaction mechanisms.
More in Molkit
Template library
More than 700 ready-made structures, from small molecules to protecting groups and chair projections. Search by name, abbreviation, or formula.
Abbreviations
Place Ph, Boc, OTs, and other groups as labels, expand a label into its structure, or collapse a drawn group into its label.
R groups
Placeholder atoms such as R, X, and Nu, each with the list of substituents it stands for.
SMILES
Turn a SMILES string into a drawing, or copy a drawing out as SMILES.
MOL and SDF files
Open a structure from another program as a drawing you can edit.
PubChem names
Select a molecule and Molkit looks up its name in PubChem and shows it in the status bar, ready to copy.
The chemistry in the file
An exported SVG can carry the molecule's name, InChI, and InChIKey, which other programs can read.
Your own style
Save your own structure preset and color scheme, and share both as one
.mkstylefile. A theme-aware SVG export follows the reader's light or dark setting, or takes its colors from the page's CSS.Projections
Newman, chair, Fischer, and Haworth projections. Turn a Newman projection's back carbon to compare conformations.
Perspective drawing
Redraw a cage or bridged ring, such as adamantane, cubane, or camphor, as its 3D shape in a textbook view.
Resonance forms
Molkit draws the resonance forms of a structure, including the minor forms and the octet forms.
Net dipole
An arrow over the structure toward the molecule's negative end, estimated from its 3D shape, as textbooks draw it.
Hybridization figures
Orbital box diagrams of an atom's hybridization, and the hybrid orbitals on xyz axes.
MO diagrams
Diatomic molecules and ions, and the Hückel π levels of conjugated hydrocarbons.
Electron configurations
An atom or a monatomic ion as orbital boxes on an energy ladder, in a line, or as notation.
NMR signals
The 1H and 13C signals of a drawn molecule: equivalent atoms, integration, splitting, and DEPT.
Read the documentation
Each feature has a page with its menu path and what each option does. The documentation also has the Molkit Script reference and a cookbook of scripts with their pictures.