The main difference between CEX and DEX lies in how they operate and the features they offer. CEX is operated by centralized entities that provide high liquidity and a variety of additional features, while DEX operates in a decentralized manner with better security and anonymity.