โ๏ธ CEX vs DEX Centralized vs Decentralized Exchange
A CEX (centralized exchange) is a company-run platform that holds your coins for you and matches buyers and sellers. A DEX (decentralized exchange) is software on a blockchain that lets you trade straight from your own wallet, with no company in the middle.
๐ The one difference that matters โ custody
Strip away the jargon and it comes down to one question: who is holding your coins? On a CEX, you deposit your money and the company keeps it for you โ your balance is really an IOU until you withdraw. On a DEX, your coins never leave your wallet; you trade directly with a smart contract and keep your private keys the whole time. That trade-off has a famous one-liner: not your keys, not your coins.
๐ฆ What a CEX gives you
A CEX feels like an app you already know. You make an account, pass an identity check (KYC), and you can buy crypto with a card or bank transfer โ a fiat on-ramp. Behind the scenes it runs an order book, matching people who want to buy with people who want to sell. You also get conveniences like instant conversions, customer support, and advanced products such as futures and leverage. Familiar names include Binance, Coinbase, and Kraken.
๐ The catch: the exchange controls your funds. If it's hacked, frozen, or goes under, your balance can be caught up in it. That's why many people only keep on a CEX what they're actively trading.
๐ What a DEX gives you
A DEX is just software running on a blockchain. There's no sign-up and no company taking custody โ you connect your wallet and trade. Because no single entity is in charge, no one can freeze your account. Most modern DEXs, like Uniswap and PancakeSwap, don't use an order book at all. Instead they use an Automated Market Maker (AMM): a pool of two tokens supplies the funds, and a math formula sets the price.
๐งฎ How an AMM sets the price
An AMM swaps tokens against a liquidity pool โ a smart contract holding two tokens at once. Uniswap's classic formula is x ยท y = k: multiply the two pool balances and the result must stay the same after every trade. Buy one token and you shrink its side of the pool, so its price climbs for the next person. The people who supply the two tokens are liquidity providers, and they earn a slice of every trading fee in return.
๐ฆ So which one do beginners hit first?
The CEX, almost always. It's the easiest path from cash to crypto, and the support and familiar layout make the first steps painless. You typically meet a DEX later โ when you start poking around DeFi or want a token the big exchanges don't list. Knowing the custody difference before you switch is what keeps you safe.
๐จ Things beginners should know
- ๐ฆ CEX = trust the company โ convenient, but the exchange holds your keys and can be hacked, frozen, or fail
- ๐ DEX = full responsibility โ no one can freeze you, but a lost key or a wrong transaction has no help desk to undo it
- ๐ A DEX isn't automatically safer โ it removes custody risk but adds smart-contract bugs and scam tokens
- ๐ A DEX isn't anonymous โ public-blockchain trades are permanent and can be traced back to you
โ FAQ
- Which one should a beginner start with?
- Almost everyone starts on a CEX. It's the easiest way to turn cash into crypto, it has customer support, and it feels like an app you already know. You usually meet DEXs later, once you start exploring DeFi or tokens the big exchanges don't list.
- Is a DEX anonymous?
- No. A DEX doesn't ask you to sign up, but most DEXs run on public blockchains where every trade is recorded forever and anyone can read it. Your trades are pseudonymous, not anonymous, and an address can be linked back to you over time.
- Does 'not your keys, not your coins' mean a CEX will steal my money?
- Not by itself. It means that while your coins sit on a CEX, the company controls the keys โ so you're trusting them to stay solvent and secure. If the exchange is hacked or fails, your balance can be at risk. Moving coins to your own wallet removes that dependency.