

A CEX, short for centralized exchange, is a company such as Binance, Coinbase or Kraken: it keeps your crypto in an account it controls, asks for your ID and lets you pay in from a bank card. A DEX, or decentralized exchange, such as Uniswap or PancakeSwap, is a program on a blockchain: you connect your own wallet, trade straight from it, and nobody holds your coins or asks who you are. Most people buy their first crypto on a CEX and turn to a DEX later, once they keep coins in their own wallet and want a token the big exchanges don't list.
Both kinds of exchange do the same job: you hand over one asset and get another. The difference sits in the first word. Centralized means one company runs the venue, holds the money and sets the rules; decentralized means a program on a blockchain does the swapping, and no company stands between you and the trade.
The names you are most likely to meet:
A quick way to tell them apart: a service with a sign-up form and a "Deposit" button is a CEX. A site with a "Connect wallet" button and no account at all is a DEX.
On a CEX, trades run through an order book, a live list of other customers' offers to buy or sell a coin at a set price. The exchange pairs a buyer with a seller and changes two numbers in its own database. Nothing touches the blockchain until you withdraw.
Most DEXs have no order book and no trader on the other side. Instead there is a liquidity pool: a stash of two tokens, say ETH and USDC, that other users deposited to earn a share of the fees. You put one token in, take the other out, and the price follows the ratio of the two in the pool: the more ETH people take out, the dearer the remaining ETH becomes.
The pool is run by a smart contract, a program stored on the blockchain that anyone can call and nobody can quietly change. It lives on the same shared ledger that records who owns every coin, so if that ledger is still a black box to you, start with how cryptocurrency and the blockchain under it work.
Some DEXs, mostly those built for futures trading, do keep an order book on a blockchain. The pool model is what you meet on Uniswap, PancakeSwap and most places where people swap one token for another.

Because the price comes from the pool itself, a big trade in a small pool moves the price against you. Say a pool holds $100,000 of a token and $100,000 of USDC. Buying $5,000 of the token there gets you about 5% less than the price you saw before the trade, fees aside.
That gap between the quoted price and what you actually get is called slippage. DEX apps let you set the most you will accept, and if the price moves further before your swap goes through, the trade is cancelled and only the network fee is spent.
On a CEX the same problem shows up differently: a large order eats through the best offers in the order book and fills partly at worse prices. On the coins everyone trades, the big exchanges' order books are deep enough that a few thousand dollars barely move them.
A DEX swap is one blockchain transaction, but your wallet may ask you to sign more than once, and the screens can be confusing the first time. What happens between pressing the button and the new tokens landing in your wallet is laid out in how a crypto swap works step by step.
| CEX | DEX | |
|---|---|---|
| Who holds your coins | The exchange | You, in your own wallet |
| Getting started | Account, email, ID check | No account, you connect a wallet |
| How trades are matched | Order book run by the company | Mostly a token pool run by a smart contract |
| Paying in dollars or euros | Bank card or bank transfer | Only through a separate payment partner |
| Choice of tokens | Only what the exchange lists | Any token someone has put in a pool |
| What you pay | Trading fee, spread, withdrawal fee | Pool fee, network fee, price impact |
| If something goes wrong | Support team, account recovery | No support, a lost seed phrase means lost coins |
| Main risk | The exchange freezes, fails or gets hacked | Your own mistakes, fake tokens, faulty contracts |
When you deposit crypto on a CEX, the coins move to wallets the exchange controls, and your account shows a balance. That balance is a promise: the exchange owes you that much. The upside is real: forget your password and support restores your access.
The downside comes from the same fact. If the exchange freezes your account, goes bust or gets robbed, your balance is only as good as the company. In November 2022 FTX, then one of the largest exchanges, stopped withdrawals and filed for bankruptcy days later; customers waited more than two years for the first repayments.
A hack does not always end that way. In February 2025 attackers stole roughly $1.5 billion in ether from Bybit, and the exchange covered the loss, so customers kept their balances. With a CEX, you are betting on the company being both honest and solvent.
On a DEX your coins stay in your own wallet, an app that keeps the keys to your address on your device. The coins leave the wallet only for the moment of the swap and come back as the other token. No company can freeze the trade or lose your money in a bankruptcy.
So before your first DEX trade you need such a wallet, plus a little of the network's own coin to pay fees with. On Ethereum and the networks built like it, the best-known wallet is MetaMask, and topping it up, paying for transactions and getting money back out are explained in how MetaMask works, from fees to cashing out.
The price of that independence is that you become your own support desk. A self-custody wallet is restored from a seed phrase, a list of 12 or 24 words: whoever has the words owns the coins, and if you lose them, nobody can bring the coins back.

A CEX holds and moves other people's money, so the law treats it as a financial business. Two examples of what that means:
That is why sign-up on an exchange ends with a passport photo and a selfie, and sometimes a proof of address. The exchange may also come back with questions later, for example before a large withdrawal, and until you answer, the account can be limited. What exactly gets checked and what happens to your documents is covered in why a crypto exchange asks for your ID.
A DEX's smart contract checks nothing: any wallet can call it. The websites in front of the big DEXs are run by companies, though, and some of them refuse wallets linked to sanctioned addresses; the Uniswap app does.
Trading on a DEX is not anonymous either. Every swap sits on a public blockchain under your wallet address, and anyone can look through that wallet's history.
That history follows the coins to an exchange. When you deposit, the exchange runs the incoming transfer through analytics tools that trace it back through earlier wallets. Say your tokens passed, two hops earlier, through a wallet tied to a hack: the exchange may hold the deposit and ask where the coins came from. From that moment, your exchange account with your name on it and your DEX history are tied together.
Exchanges are not the only ones running these checks. Shops and services that take crypto use the same tools on incoming payments, and the receiving side of it is explained in how wallet screening and AML checks work on crypto payments.
Fees on the two kinds of exchange are built differently, so comparing one percentage with another misses most of the bill. On a CEX you usually meet three charges:
On a DEX the bill has four parts:
Take a $1,000 purchase of ETH with USDC. On Binance the trading fee is $1, and the ETH stays on the exchange until you pay a withdrawal fee to move it out. On Uniswap the pool fee is 50 cents in a 0.05% pool or $3 in a 0.3% pool, plus gas, and the ETH lands straight in your wallet.
Gas on a DEX is not the exchange's charge: it is the same network fee anyone pays to move crypto on that blockchain, and it is the part of a DEX bill that weighs most on small trades. If the line between a network's fee and a service's own fee is still blurry, see how network fees, gas and service fees differ.
One practical catch follows from this. A wallet holding USDT on Ethereum and no ETH cannot swap anything, because there is nothing to pay the gas with. Keep a little of the network's own coin next to whatever you plan to trade.
Binance is a CEX, and one of the largest in the world. You open an account, pass an ID check and deposit, and from then on Binance holds your coins and matches your orders in its own order book.
The confusion comes from the app. Inside it sits Binance Wallet, a separate self-custody wallet that routes swaps through DEXs such as PancakeSwap. Coins in Binance Wallet are under your control and its swaps are DEX trades; coins in your exchange balance are held by Binance.
The network adds to the mix-up. BNB Chain, the blockchain that grew out of Binance, hosts its own DEXs, PancakeSwap among them. A DEX running on that network is still a DEX, and the network itself is not an exchange.
Binance also runs Binance Pay, which moves crypto from one Binance account to another, to a friend or to a shop, without a blockchain transfer. It is the CEX model applied to payments: Binance keeps both balances and simply changes the numbers. If you sell online and are thinking of such a button at your own checkout, here is what a merchant actually gets from Binance Pay, Crypto.com Pay or Bybit Pay.
Uniswap is a DEX, and the best-known one. It launched on Ethereum in 2018 as a set of smart contracts with liquidity pools, now runs on Ethereum and a number of other networks, and its pool design was borrowed by many later DEXs, PancakeSwap among them.
Uniswap Labs, the company behind it, builds the app and a wallet, but it never holds your coins. The contracts do the swapping, and other apps and wallets can call them directly without going through the Uniswap site.
Anyone can create a token and a pool on Uniswap, including a copy carrying the name of a famous coin. A DEX shows you whatever matches your search, not what is genuine, so check the token's contract address on the project's own website before buying.
Before your first swap of a given token, the wallet asks for a separate signature called an approval: permission for a contract to move that token out of your wallet. An approval stays in force until you withdraw it, and an approval given to a malicious contract can be used to drain that token later. It is worth knowing how to check and revoke token approvals in your wallet.
The usual route uses both kinds of exchange, in three steps:
Two things decide whether the withdrawal in step 2 arrives where you expect it:
If the coins already sit on the wrong network, the way across is a bridge: a service that locks tokens on one blockchain and releases matching ones on another. Bridges have been the target of some of the largest thefts in crypto, so for a large sum it is often simpler to send the coins back to the exchange and withdraw them again on the right network.
A withdrawal from an exchange is an ordinary blockchain transfer, so it gets a transaction ID, a hash you can paste into a block explorer to see where the coins are. When a withdrawal seems to have vanished, that ID is the first thing to look up, and you can read how to check a crypto transfer by its TXID, network and status.
Here the two kinds of exchange are not equal. A CEX is connected to banks and card networks, so it is where dollars or euros turn into crypto and where crypto turns back into money in your account.
A DEX only swaps tokens for tokens. Swap ETH into USDC on Uniswap and you hold a dollar-pegged token, not dollars: to pay rent with it, it still has to pass through an exchange or a payout service that sends money to a bank. Some DEX apps show a "Buy with card" button, but behind it stands a separate payment company that does the CEX part, ID check included.
Where banks refuse to deal with exchanges, people also buy and sell crypto directly with each other on P2P markets. That route skips the exchange's order book but not the risk: the other side can be a scammer, and the exchange hosting the market can only partly protect you.
This matters most to people who get paid in crypto rather than buy it. A freelancer or a small business holding USDT faces the same choice between an exchange account and a service built for business payouts, and that path is covered in how a business turns crypto payments into usable money.
Neither kind of exchange is better across the board; each fits a different job. Here is how the choice usually falls by situation:
Plenty of people use both, and that is the sensible default: an exchange as the gate between bank money and crypto, a wallet of your own for keeping coins, and a DEX for whatever the exchange does not offer.
A CEX is a company that holds your coins, checks your identity and connects crypto to the banking system. A DEX is a program on a blockchain that swaps tokens straight from your wallet and holds nothing for you. Pick by the job: dollars in and out, and heavy trading in big coins, go through a CEX; control over your coins and tokens nobody lists go through your own wallet and a DEX.
Neither: Trust Wallet is a self-custody wallet, the kind of app you connect to a DEX. Binance bought it in 2018, but the coins in it are not held by Binance; the keys stay on your phone. Its built-in swap routes trades through DEXs, so a swap inside Trust Wallet is a DEX trade. If you are still choosing one, compare which crypto wallet fits your situation.
The smart contract cannot, and the company behind the website can only refuse to show you its interface. The issuer of a token is a different story: Tether can freeze USDT and Circle can freeze USDC at any address, wherever the tokens sit. Coins like ETH or BTC have no issuer able to do that.
An aggregator, such as 1inch or Jupiter on Solana, compares prices across many DEXs and can split one trade between several pools to get you more tokens. It is still a DEX trade from your own wallet, with the same approvals and gas. It earns its keep mostly on larger swaps, where a single pool would move the price more.
Not for swapping: a wallet and a DEX cover token-to-token trades on their own. You will need an exchange, or a service that pays out to bank accounts, the day you want that crypto back as ordinary money.
This article is general information, not legal advice.
Create an account and connect the checkout yourself, or talk to sales and we will plan the integration with you.