All articles
Web3 FoundationsJuly 1, 202611 min read

CEX vs DEX: What's the Difference and Which Should You Use?

CEX vs DEX explained in plain English. A security auditor breaks down where your money actually goes on each, why withdrawal is the moment of truth, and when to use which.

By Carlos (Bloqarl)

TL;DR

  • A CEX (centralized exchange) is a company that holds your crypto for you, like a coat-check counter that keeps your coat and hands you a ticket.
  • A DEX (decentralized exchange) is an app with no company behind it. You keep your own coat the whole time and just use the app to swap.
  • The real difference isn't the interface, it's custody: who is actually holding your money while you trade.
  • The moment of truth is withdrawal. On a CEX, getting your coins out means asking the company to give them back. On a DEX, they never left your wallet, so there's nothing to ask for.
  • The one rule that keeps beginners safe: "not your keys, not your coins." If a company holds the keys, you're trusting the company, not the code.

CEX vs DEX, in one sentence?

A CEX is a company that holds your crypto and trades on your behalf; a DEX is an app that lets you trade directly from your own wallet, with no company holding anything. Everything else, the fees, the speed, the coin selection, is downstream of that one difference: on a CEX someone else holds your money, on a DEX you do.

CEX vs DEX at a glance

Here's the whole comparison in one table. We'll unpack each row below.

CEX (company exchange)DEX (app, no company)
Who holds your moneyThe companyYou (your own wallet)
What you need to startAn account, ID verificationA wallet, no signup
WithdrawalAsk the company; they send itFunds never left your wallet
If the company failsYour money can be stuck or goneThere's no company to fail
Main riskTrusting the custodianTrusting the code, and yourself
Ease for beginnersHigher (familiar, like an app)Lower (you manage keys)
Reversing a mistakeSometimes support can helpNever, it's permanent

What is a CEX?

A CEX, or centralized exchange, is a crypto trading company. Think Coinbase, Binance, Kraken: businesses you sign up with, verify your identity, and deposit money into. You send them dollars or crypto, and from then on they hold it. You see a balance on their screen, but that balance is really a promise: the company says it owes you that much.

The coat-check analogy is exact. You walk into a venue, hand your coat to the counter, and they give you a ticket. You don't have your coat anymore. You have a claim on your coat. As long as the counter is honest and competent, that's fine, you show your ticket later and get your coat back. But you are trusting the counter to still have it.

A CEX works the same way. When you "buy Bitcoin" on a CEX, the company records that you own some Bitcoin in their internal database. The coins sit in the company's control, and your account balance is your ticket. This is called custodial: a custodian holds your money for you. If you want the deeper version of this idea across all of DeFi, what is DeFi covers it.

CEXs are popular for good reasons. They're easy: the app feels like a banking app, they'll convert your dollars to crypto, and if you forget your password there's a support line. For most beginners, a CEX is the first door into crypto.

What is a DEX?

A DEX, or decentralized exchange, is not a company at all. It's an app, a set of programs called smart contracts, running on a blockchain. Uniswap is the classic example. There's no counter, no company holding your money, no account to open. You connect your own wallet and swap directly.

Back to the analogy: a DEX is like a swap you do while holding your own coat the entire time. Nobody takes it. You walk up to a machine, hand it one item, and it hands you back another, and your hands never leave your own belongings. There's no ticket because there's nothing to reclaim, your coat was always yours.

Concretely, a DEX works through a pool: a pile of two tokens and a formula that sets the price based on the ratio between them. When you swap, your wallet sends one token into the pool and pulls the other out, in a single action you sign yourself. The pool is a vending machine, not a person. Nobody approves you, nobody holds your funds in between, and there's no company database, just your wallet and the contract. This is called self-custody: you hold your own keys, the whole time. Crypto wallets explained walks through what holding your own keys actually means.

The trade-off: a DEX gives you no support line and no undo. You manage your own wallet, and if you sign the wrong thing or send funds to the wrong place, there's no counter to call.

Why withdrawal is the moment of truth

Here's the part almost nobody explains to beginners, and it's the single most important difference between a CEX and a DEX.

On a CEX, everything feels fine right up until you try to withdraw. Buying, selling, watching your balance go up, all of that is just numbers on the company's screen. The real test of whether your money exists is asking the company to send it to your own wallet. That's you walking back to the coat-check counter and handing over your ticket. If the counter is honest, you get your coat. If the counter secretly gave your coat away, or never really had it, you find out at that exact moment, and not a second before.

This is why "my balance says I have it" is not the same as "I have it" on a CEX. The balance is the ticket. The coat is what matters. And you only learn whether the coat is really there when you try to reclaim it.

On a DEX, there is no withdrawal, because there was never a deposit into someone else's hands. Your coins live in your own wallet the whole time. You use the app, the swap happens, and the result lands back in your wallet directly. There's no "get my coat back" step because you were holding it the entire time.

That's the deep difference. A CEX inserts a moment where you have to trust the counter to hand things back. A DEX removes that moment entirely.

"Not your keys, not your coins"

This phrase is the oldest safety rule in crypto, and now you can see exactly what it means. Keys are what control crypto. Whoever holds the keys controls the coins, full stop.

On a CEX, the company holds the keys. Your account is a claim on coins the company controls. So you don't really hold coins, you hold a promise from the company. Not your keys, not your coins.

On a DEX, you hold the keys, in your own wallet. The coins are yours in the most literal sense: only your keys can move them. Your keys, your coins.

Neither is automatically "better," but they're different deals. A CEX is convenient and beginner-friendly, and you pay for that with trust in the company. A DEX gives you total control, and you pay for that with total responsibility. The mistake is not knowing which deal you're taking.

The cautionary tale: FTX

The clearest reason the "moment of truth" matters is FTX, a centralized exchange that collapsed in 2022.

FTX was a CEX. Millions of people deposited money and saw healthy balances on the FTX screen, their coat-check tickets. But FTX held the actual coins, and it quietly used customer funds for other purposes. The coats weren't in the closet. As long as nobody tried to reclaim theirs all at once, the illusion held. When enough people tried to withdraw at the same time, the money wasn't there, and the tickets became worthless.

That is the custodian problem in its purest form. The balance on the screen said one thing; the withdrawal said another. Everyone learned, at the exact moment they tried to get their coat back, that the counter had given it away. The lesson isn't "all CEXs are FTX", plenty operate honestly and hold what they say they hold. The lesson is structural: when a company holds your money, you are trusting that company to still have it, and you only find out for sure at withdrawal. A DEX has no counter to trust, because it never took your coat.

Which is safer?

Neither is simply "safe", the danger just has a different shape, and it's worth being honest about both.

A CEX removes one big risk and adds another. It removes the burden of managing your own keys, which is genuinely hard for beginners, and it can sometimes reverse a mistake through support. But it adds custodial risk: you're trusting a company to hold your money honestly and competently, and FTX showed what happens when that trust is misplaced.

A DEX removes custodial risk entirely, no company can run off with what it never held. But it adds code and user risk: the app is smart contract code, and code can have bugs. This is literally my day job as a smart contract auditor, reading DEX code before it goes live and asking "under what weird conditions does this do something it shouldn't?" On top of code risk, you can make an unrecoverable mistake: sign a malicious approval, use a fake copycat app, or send funds to the wrong place. The most common crypto scams covers the traps aimed squarely at beginners.

So the safety question isn't "which one is safe." It's "which risk do I understand and prefer to manage": trusting a company, or trusting code and myself.

When should you use each?

Both tools have an honest place. Here's the practical version.

Use a CEX when you're starting out, converting real dollars into crypto for the first time, or you want the safety of a support line while you learn. It's the natural on-ramp, familiar, forgiving, and easy. A sensible beginner move: buy on a CEX, then withdraw to your own wallet so you actually hold your coins rather than a ticket. Doing that withdrawal once teaches you the moment of truth firsthand.

Use a DEX when you want to trade tokens directly from your own wallet without handing custody to anyone, access coins a CEX doesn't list, or use the wider world of DeFi apps that live entirely in self-custody. It asks more of you, you manage your own keys and there's no undo, but it gives you control a CEX can't.

Many people use both: a CEX as the on-ramp for turning dollars into crypto, and a DEX for actually holding and using their coins. The players in the crypto ecosystem piece maps out how these pieces fit together. The point isn't picking a side. It's knowing, every time, who is holding your money.

Related questions

Is a CEX or DEX better for a total beginner? A CEX is usually the easier first step: it converts dollars to crypto, feels like a normal app, and has support if you get stuck. The healthy next move is to withdraw your coins to your own wallet, so you experience holding them yourself rather than trusting a company to.

Can a DEX steal my money like FTX did? Not the same way. FTX could misuse funds because it held them. A DEX never holds your funds, they stay in your wallet, so there's no custodian to run off. The real DEX risks are code bugs and your own mistakes, not a company spending your balance.

What does "not your keys, not your coins" mean? Keys control crypto. On a CEX the company holds the keys, so you hold a claim, not the coins. On a DEX you hold the keys yourself, so the coins are truly yours. The phrase is a reminder that a screen balance isn't the same as actual control.

Do I need to verify my identity on a DEX? No. A DEX has no account and no signup, you just connect your own wallet and swap. A CEX, being a company, usually requires identity verification to open an account and deposit.

If a CEX is riskier, why does anyone use one? Because CEXs are convenient and beginner-friendly, and most operate honestly. They handle the hard parts (converting dollars, recovering passwords) that self-custody puts on you. The risk is real but manageable if you don't leave more on a CEX than you're willing to trust it to hold.

Where to go next

The difference between a CEX and a DEX isn't really about apps or interfaces. It's about custody, who holds your money while you trade, and the moment that reveals it is withdrawal. A CEX hands you a coat-check ticket and asks you to trust the counter. A DEX lets you keep your coat the whole time. Both have an honest use; the skill is always knowing which deal you're taking.

The best way to build that instinct is to walk the map once, in order, with a security auditor's eye. The CEX vs DEX checkpoint in Your First 90 Days in Web3 does exactly that, hands-on and beginner-friendly. Start below.

Tagged

Crypto ExchangesDeFiCrypto for Beginners