How to open .CDX files on Mac
To open .CDX files on Mac, open the .cdx file in a CDX-capable chemistry tool (commonly ChemDraw; alternatively, use Wolfram Language Import, or convert via Open Babel).
Step-by-step instructions
- Open the .cdx file in a CDX-capable chemistry tool (commonly ChemDraw; alternatively, use Wolfram Language Import, or convert via Open Babel).
- Control-click the file → Open With → select the app (use “Other…” if it’s not listed).
- If you need compatibility with other tools, convert the file to CDXML (the XML equivalent described in the CDX/CDXML specification) or another chemical format.
Recommended software
- VS Code
- Notepad++/TextEdit
- jq (CLI)
Alternative methods
- Open .CDX in a browser-based viewer if desktop apps fail.
- Try opening .CDX on Mac 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.
- Open it with a CDX-capable tool (ChemDraw is the common choice; Open Babel and Wolfram Language also document CDX support).
- If you’re on mobile, transfer the file to a desktop system and open/convert it there.
- 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.
- Try converting to CDXML first (the specification describes CDX↔CDXML equivalence), then convert from CDXML to your target format if needed.
- If possible, open the file in ChemDraw and export to the exact target format you need.
- 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.
- Re-download or re-transfer the file (prefer a direct file transfer method rather than copy/paste through chat apps that may alter files).
- Ask the sender to export again (ideally also provide CDXML as an alternative).
- 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.