Supported Geometry Formats

This library supports reading and writing molecular structures in the following formats. All formats can be auto-detected by file extension or explicitly specified using the filetype enumerator.

General ASCII Formats

JSON-based Formats

Program-specific Formats

Format Detection

File formats are detected automatically based on:

  1. File extension (e.g., .xyz, .mol, .vasp)
  2. Basename (e.g., coord, POSCAR, CONTCAR, geometry.in)

When automatic detection is not possible (e.g., reading from stdin), use the format hint options in mctc-convert or the filetype enumerator in the library API.