Batch export
Batch export writes one file for each named selection in a document, in one step. A group of objects or sets, made with the script command group, is exported as one file. Use it when a document holds many molecules that you export one at a time, such as the figures for a course, and you want to refresh all of them after a change.
Before you start
Section titled “Before you start”Batch export works on named selections. A selection gets a name when you name it in the Collections panel, or when you export it: exporting while something is selected saves the selection under the name in the Filename field of the SVG, PNG, or PDF export dialog, whether you typed that name or kept the suggested one. Each named selection also keeps the options you last used to export it as SVG and as PNG.
If the document has no named selections, the dialog says so and the Export button is unavailable.

Export all named selections
Section titled “Export all named selections”- Click File > Batch Export.
- Under Format, select SVG, PNG, or Both.
- Under Selections, clear the checkbox of each selection you do not want. The Select none / Select all link clears or selects the whole list. Each row shows the number of atoms (
a) and, if there are any, annotations (n) in the selection. - Under Destination, click Choose folder to write the files into a folder. The folder is offered again the next time you open the dialog, until you reload the page. If you do not choose a folder, Molkit downloads a single file named
batch-export.zip. Browsers that cannot write to a folder, such as Firefox and Safari, do not show Choose folder and always download the ZIP file. - Optional: set overrides (see Overrides).
- Click Export. A status line shows progress, and a message reports how many files were written and names each selection that failed or that was made smaller than asked (see the PNG size limit). A PNG whose fonts do not load within 30 seconds counts as failed.
To stop a batch, click Close, press Esc, or click outside the dialog. The batch stops after the current file, writes nothing, and the dialog closes.
Each file is named after its selection in web-safe form, so acetic acid becomes acetic-acid.svg. A second selection with the same name gets -2, a third -3, and a name is never used twice. A selection whose name has no plain letter or digit is named selection- and its row number, for example selection-4.png. When the batch finishes, Molkit restores the selection you had on the canvas.
A selection last exported with its electrostatic potential map as a separate file gets that map file too. It goes in the subfolder that its SVG points to (esp unless you changed it), in the chosen folder or inside the ZIP file. A map shared by two selections is written once.
Warnings in the list
Section titled “Warnings in the list”- ⚠ edited: the molecule changed after it was named, for example atoms were added or deleted. The export uses the objects that were in the selection when you named it, which may no longer be the whole molecule.
- ⚠ empty: nothing in the selection remains, and the row’s checkbox is unavailable.
Options for each file
Section titled “Options for each file”Each selection is exported with the options it was last exported with in that format. A selection never exported in that format uses these defaults:
- SVG: scale 2, padding 20, no background, responsive, theme-aware, and mobile-safe; fonts not embedded, labels kept as text, and no editable source.
- PNG: scale 2, padding 20, no background.
SVG files always include the chemistry data and 3D geometry, as in a single SVG export. The editable copy of the drawing is included only when the selection was last exported with Include editable source, or when you turn on the Editable source override.
Overrides
Section titled “Overrides”Override for all (optional) changes an option for every file in this run. Each on/off option has three choices: Per-export (use each selection’s own setting), On for all, and Off for all. Scale and Padding offer Per-export or Set: with a value.
For SVG, the on/off options are Background, Responsive, Theme-aware, Embed fonts, Mobile-safe fonts, Outline text, Maximum compatibility, Blank implicit H, and Editable source. For PNG, the only on/off option is Background. With Both, Molkit keeps the SVG and PNG overrides separately; switch the format to set each one.
Maximum compatibility works as in the SVG dialog: when it is on for a file, labels are outlined, theme-aware is off, and fonts are not embedded.
To store the options from this run on each exported selection, so that later exports of those selections start from them, select Remember these overrides as defaults for the exported selections. Options are stored only for the selections and formats that exported, and nothing is stored when the files cannot be written.