TokenAlphabet logo TokenAlphabet
Home / Glossary / DEX vs CEX

DEX vs CEX

A centralized exchange (CEX) such as Binance, Coinbase or Kraken is a company. You open an account, pass identity checks, deposit money and trade on the exchange's internal order book. Until you withdraw, the exchange holds the coins and your balance is a number in its database.

A decentralized exchange (DEX) is software on a blockchain. You connect a self-custody wallet and swap tokens through a smart contract, and the coins go straight back to your address. Uniswap, live on Ethereum since November 2018, trades against liquidity pools rather than matching buyers and sellers. Hyperliquid runs a full order book on its own chain.

The trade-offs are concrete. A CEX accepts bank cards and fiat, usually offers deeper liquidity for large coins and can reset a lost password. A DEX lists almost any token the moment someone creates a pool, but you pay a network gas fee, set slippage yourself and get no help if you sign a bad transaction.

The risks sit in different places. With a CEX it is the company: Mt. Gox lost about 850,000 BTC in 2014, and FTX filed for bankruptcy in November 2022 with customer funds missing. With a DEX it is the code and the tokens: contract bugs, fake copies of popular coins and approvals that let a malicious contract drain a wallet.

Related terms: DeFi (decentralized finance), Self-custody, Gas fee, Hot wallet, Wrapped token, Liquidity pool