A centralized exchange (CEX) is managed by a central authority or company, offering higher liquidity and faster transactions. In contrast, a decentralized exchange (DEX) operates without a central authority, prioritizing user privacy and control but may have lower liquidity.