Skip to content

3D structure viewer

The 3D viewer shows any molecule you draw as a ball-and-stick model that you can rotate, recolor, and capture back onto the canvas as a picture. The model is an idealized conformer generated from the 2D structure: it shows shape and geometry well, but it is not an experimental measurement. For example, draw SF6, right-click the sulfur, and select View 3D Structure to see an octahedron.

The 3D Structure panel showing ethanol as a ball-and-stick model on a dark background, with element chips on the carbons and the oxygen, a row of view toggles across the top, the rotate and zoom control pad at the top right, and the words As drawn (MMFF94) at the bottom.
The 3D Structure panel, showing ethanol as drawn.
  • Click the 3D button in the action bar (tooltip “View 3D Structure”). The same button closes the panel.
  • Select Compute > 3D View. The item is unavailable, with the reason on hover, until one molecule is selected.
  • Right-click an atom and select View 3D Structure. The viewer shows the covalent molecule that the atom belongs to.

A molecule is everything joined by covalent bonds, so hydrogen bonds and other dotted bonds never merge two molecules into one model. The status line under the model says which shape it shows (see As drawn or lowest energy). When the molecule uses the geometry of an electrostatic potential map instead, the status line names that geometry (see Electrostatic potential maps).

With nothing selected, the panel shows the only molecule on the canvas, or asks you to select one when there are several. A structure that contains a generic group (such as R or X) cannot be shown, because its geometry is undefined.

  1. Draw SF4 and SF6 side by side: a sulfur with four fluorines, and a sulfur with six.
  2. Right-click the sulfur of SF4 and select View 3D Structure. The panel shows the seesaw shape.
  3. Select SF6. The panel switches to the octahedron.
To Mouse Keyboard
Rotate Drag inside the panel Arrow keys
Roll left or right Q, E
Zoom Mouse wheel +, -
Reset the view Home

The control pad, a 3 × 3 grid of buttons, offers the same moves: rotate up, down, left, and right; roll left and right; zoom in and out; and a center button that resets the view. The toggle above the control pad, at the top right of the model, hides the control pad or shows it again.

The panel keeps its size, position, and collapsed state between sessions.

To show the model in a separate browser window, click Pop out to a new window in the panel header. The window follows your selection on the canvas in the same way, and the in-app panel closes while the window is open.

The panel header has three more controls:

  • Viewer background sets the color behind the model, and can be transparent (a checkerboard then shows through). The color is remembered, and the capture dialog starts from it.
  • The reset button beside it puts the background back to the default dark blue.
  • Hide or show controls hides the rotate and zoom buttons, or shows them again; the capture button stays. The choice is remembered and applies to the pop-out window too.

A chain molecule such as butane has many shapes (conformers) that differ only by a turn about a single bond. The viewer can show the shape your drawing suggests, or the shape with the lowest energy.

  • As drawn (the default): each open-chain single bond between two atoms with only single bonds, where each end has exactly one other atom that is not hydrogen, takes the turn your 2D drawing shows. At a branch point, such as the middle carbon of glycerol, the turn is read from the one atom on a plain bond when every other non-hydrogen atom there is on a wedge or hash bond. If those two atoms are drawn on the same side of the bond, the bond is gauche (60°); if they are on opposite sides, it is anti (180°). A bond with one of those atoms drawn on its line keeps the shape Molkit builds. The model is then relaxed with the MMFF94 force field, which keeps that turn. A bent butane drawn in a U shape shows the gauche conformer; a zigzag shows the anti conformer.
  • Lowest energy: Molkit builds up to 12 conformers, relaxes each with MMFF94, and shows the one with the lowest energy. To switch, click the Lowest-energy shape button in the view options. Click it again to go back to the shape as drawn.

The status line says which shape is showing, for example “As drawn · 1 bond twist from the drawing (MMFF94)” or “Lowest energy of 12 conformers (MMFF94)”. The choice applies to the viewer and its captures only. A geometry you adopted from an electrostatic potential map is shown as it is, in either mode.

To see the gauche and anti conformers of butane

Section titled “To see the gauche and anti conformers of butane”
  1. Draw butane as a zigzag of four carbons.
  2. Right-click a carbon and select View 3D Structure. The model shows the anti conformer.
  3. Drag the last carbon so that it sits on the same side of the middle bond as the first carbon. The model turns to the gauche conformer.

An energy scan plots how the energy changes as a bond turns or stretches, an angle bends, or two molecules move apart. To open it, click the Energy scan button in the view options, or select Compute > Energy Scan. See Energy scans.

Element symbols appear as small chips over the atoms. They follow the atoms as you rotate, and a chip hides when a nearer atom passes in front of it, so a label never sits over the wrong sphere. The Element labels button turns them on and off.

The standard 3D colors are the Jmol CPK palette, the same as the 3D views on the canvas: for example, white hydrogen, pale green fluorine, and yellow sulfur. To color the model with the canvas’s active element color scheme instead, turn on Sync scheme. While it is on, Match H and C colors controls whether hydrogen and carbon also follow the scheme or keep their conventional white and gray.

To draw the molecule’s net dipole arrow over the model, turn on Show net dipole. See Net dipole for what the arrow means.

The style button in the view options opens a menu of four looks: Ball and stick, Stick, Spacefill (each atom a full sphere of its van der Waals radius) and Wireframe. The model is fitted to the view again for each look, and keeps its turn. The Molkit Viewer has the same menu; a crystal cell offers ball and stick and spacefill only, because its ions have no bonds to draw.

For a molecule made of one central atom bonded only to terminal atoms, such as XeF4 or ClF3, the viewer shows the ideal VSEPR shape, with every bond the same length and exact angles. The shape follows from the number of bonded atoms and lone pairs on the central atom:

Bonded atoms Lone pairs Shape Example
2 0 or 3 linear BeCl2, XeF2
3 0 trigonal planar BF3
3 2 T-shaped ClF3
4 1 seesaw SF4
4 2 square planar XeF4
5 0 trigonal bipyramidal PF5
5 1 square pyramidal BrF5
6 0 octahedral SF6

Bent, trigonal pyramidal, and tetrahedral molecules, and every larger molecule, use the generated conformer geometry instead.

The lone pairs are the ones you drew or, if you drew none, the ones worked out from the central atom’s electrons by the same rules used everywhere in Molkit (see Geometry and hybridization). In a structure tagged as a Lewis depiction, a central atom drawn with no lone pairs has none, so octet-rule sulfate stays tetrahedral. A central atom with an unpaired electron, such as the nitrogen of NO2, uses the generated conformer geometry. The model is turned to match your 2D drawing as closely as possible, and exported SVGs use the same shapes.

The conformer is built from the one Lewis structure you drew, so bonds that resonance makes equivalent would come out with different lengths. Molkit evens them out: ozone, carbonate, a carboxylate, nitrate, and the allyl cation get equal bonds; the O–O bonds of ozone are 1.278 Å; and the S=O bonds of SO2 and SO3 are 1.43 Å. Bonds in rings keep their built lengths, and bond angles do not change.

Once a molecule is showing, it stays in the panel after you deselect it and changes only when you select a different molecule. If the displayed molecule is deleted, the panel shows another molecule on the canvas. Editing a structure rebuilds its conformer and replaces any geometry you adopted from a map; moving the structure on the canvas does not.

When several molecules are present, they all appear in one scene, placed to match their layout on the canvas. Each keeps its own idealized geometry, and the spacing between them follows your drawing.

The Vibrations button next to the view toggles opens the molecule’s IR spectrum in a window of its own, which you can move and resize. Click a band to watch its vibration in the view. If the molecule has no spectrum yet, the button offers to compute one in the browser, which takes a few seconds for a small molecule. Press the button again to close the spectrum. The spectrum is kept with the molecule, so it opens again from the Results panel too.

The spectrum window has two views: Chart shows the spectrum and its controls, and Data lists every vibration in a table (mode, wavenumber, intensity, name) with the method, the medium, and where the intensities come from.

You can lay a measured IR spectrum of your own over the computed one, from a JCAMP-DX file (.jdx or .dx), the format most instruments and the NIST Chemistry WebBook export. Molkit does not supply measured spectra. You provide the file and say where it came from.

  1. In the spectrum window, choose Compare with a measured spectrum, and pick the file.
  2. In Source, enter where the spectrum comes from. Molkit fills it in from the file’s origin and owner when it has them. The line is required, and it is shown with the spectrum.
  3. Choose Add.

The measured spectrum is drawn behind the computed one in another color, with a key above the chart and its source under it. It is kept with the molecule, goes into the chart when you choose Insert into drawing, and adding or removing it is one undo step. To take it away, choose Remove measured spectrum.

Keep in mind when you compare:

  • The measured spectrum is scaled so its strongest band matches the computed strongest band, so compare positions and shapes, not heights.
  • The computed positions are harmonic and unscaled, so they run a few percent high.
  • A spectrum of a liquid or a solid has broader, lower O-H and N-H bands than this gas-phase calculation.

The file can give transmittance (as a fraction or a percent) or absorbance, against wavenumbers or micrometers.

The view toggles along the top left are in four groups: what is shown (element labels, the model style, net dipole), colors (high contrast, sync scheme), the shape (lowest energy), and calculations (energy scan, electrostatic potential map, vibrations). With no map yet, the Electrostatic potential map button opens the map’s options; once there is a map it shows or hides it, and a Map options button appears beside it. These buttons show the molecule’s electrostatic potential on its surface, imported from cube files or calculated from the drawing. See Electrostatic potential maps.

To capture the view, click the camera button at the top right of the model (tooltip “Capture this view… (PNG/SVG, resolution, save or insert)”). The Capture 3D view dialog opens.

Option Choices Default
Format PNG (an exact render of what you see) or SVG (vector) PNG
Resolution (PNG only) 1x standard, 2x HD, or 4x maximum; the estimated pixel size is shown 2x HD
Background A color swatch, which can be set to transparent The viewer’s current background
Include element labels On or off Whatever the viewer is showing
Destination Insert on canvas or Save to file (saving adds a file name field) Insert on canvas

A PNG capture includes the electrostatic potential map when the map is on.

Insert on canvas places the current 3D orientation on your drawing. A PNG becomes an image. An SVG becomes a 3D view object, on the background you chose, which you can turn again later. When element labels or the dipole arrow are on, an SVG is placed as a plain graphic instead, because a 3D view object cannot hold them; it then behaves like any other inserted graphic (see Images, SVG, and charts).

A 3D view object is a picture of a molecule in 3D that sits on the canvas and remembers its molecule and its view, so you can turn it again at any time. To make one, right-click a molecule and choose Molecule > 3D View on Canvas. See 3D views on the canvas.

The 3D viewer works offline.

If the 3D view still cannot start, the panel shows one of these messages. 2D editing keeps working in every case.

Message Cause and fix
“3D viewer could not load (offline?). Reopen the panel to retry. 2D editing is unaffected.” The 3D library did not load. Close and reopen the panel to try again.
“3D could not render (WebGL unavailable in this browser?). 2D editing is unaffected.” The library loaded, but the browser cannot draw 3D graphics. Turn on hardware acceleration or WebGL in your browser settings.
“Could not generate a 3D conformer for this structure.” Molkit could not build a 3D shape for this structure.