How to open .CDX files on Linux

To open .CDX files on Linux, linux often won’t have a native desktop editor for CDX preinstalled; plan to convert it using a chemistry toolchain that supports CDX import (e.g., Open Babel).

Step-by-step instructions

  1. Linux often won’t have a native desktop editor for CDX preinstalled; plan to convert it using a chemistry toolchain that supports CDX import (e.g., Open Babel).
  2. Use your package/command-line workflow to convert the .cdx to a more common format for your tools (for example, into another chemical structure format supported in your environment).
  3. If conversion results look incomplete, try opening the original on a system with ChemDraw and exporting again (see common issues about feature limitations).

Alternative methods

  • Open .CDX in a browser-based viewer if desktop apps fail.
  • Try opening .CDX on Linux with a secondary app to rule out app-specific issues.
  • Convert .CDX only with trusted tools when direct opening is not possible.

Common issues

The .CDX file won’t open or shows as an unknown format

CDX is a specialized ChemDraw Exchange binary format and many general-purpose viewers can’t open it. This is usually due to missing chemistry software or incorrect file association.

  1. Open it with a CDX-capable tool (ChemDraw is the common choice; Open Babel and Wolfram Language also document CDX support).
  2. If you’re on mobile, transfer the file to a desktop system and open/convert it there.
  3. Avoid renaming the extension; convert/export using a tool that understands CDX.

Converted/imported structure looks wrong or incomplete

Some tools (including converters) may not preserve every drawing feature or object in a rich CDX document when importing or exporting to other formats.

  1. Try converting to CDXML first (the specification describes CDX↔CDXML equivalence), then convert from CDXML to your target format if needed.
  2. If possible, open the file in ChemDraw and export to the exact target format you need.
  3. Compare results in more than one tool (e.g., check import in another application) if accuracy is critical.

File seems corrupted or partially downloaded

Because CDX is binary, truncation or corruption often prevents opening and may produce opaque errors.

  1. Re-download or re-transfer the file (prefer a direct file transfer method rather than copy/paste through chat apps that may alter files).
  2. Ask the sender to export again (ideally also provide CDXML as an alternative).
  3. If you receive the same issue repeatedly, confirm the source application is saving CDX correctly by opening the file on the sender’s system.

Security note

CDX is a complex binary format; opening untrusted CDX files in any parser/editor can carry risk of bugs in the application’s file parsing. Prefer opening files from trusted sources, especially in high-value environments.

Back to .CDX extension page