Decentralized exchanges (DEXs) offer several advantages over traditional centralized exchanges. DEXs provide users with greater security and control over their funds as they do not require users to deposit their assets into a centralized wallet. Additionally, DEXs promote transparency and censorship resistance by operating on blockchain technology.