ATEX is mandatory European legislation for equipment used in explosive atmospheres within the EU, while IECEx is an international voluntary certification system accepted worldwide.
Both systems are based on IEC standards and demonstrate compliance for equipment used in hazardous environments. The main difference is that ATEX applies specifically within the European Union, whereas IECEx is internationally recognized.
Read more about ATEX and explosion-proof equipment here.