##### Page tree

ChemAxon's input and output system supports approximately 25 formats.

The detailed documentation about the supported file formats can be found in the File formats document.

#### Listing all available formats programmatically

Programmatic listing of the available file formats is available via the MFileFormat andMFileFormatUtil API.

The code below lists the available molecule export formats:

MFileFormat[] formats = MFileFormatUtil.findFormats(
null,
MFileFormat.F_EXPORT,
MFileFormat.F_EXPORT | MFileFormat.F_ARCHIVE | MFileFormat.F_GRAPHICS);

In this example archive formats (like GZip or BASE64) are included by the MFileFormat.F_ARCHIVE flag, graphics formats are included by the MFileFormat.F_GRAPHICS flag given by the 3rd parameter.