Home/Blog/What Is a Private Key?
Blog

What Is a Private Key?

The secret that actually controls your crypto: how a private key works, how it differs from a public key, and how to keep yours safe.

What Is a Private Key?
On this page

A private key is the secret code that lets you spend your cryptocurrency. It is a long string of numbers and letters that signs transactions and proves the coins are yours, which is why it must never be shared with anyone.

When people say they own crypto, what they actually own is the private key. The coins themselves sit on the blockchain; the key is what gives you control over them. Lose the key and you lose the coins, so understanding it is the foundation of keeping crypto safe.

Whoever holds the private key controls the funds. That is the entire security model of crypto.

The first rule of self-custody

What a private key actually is

Your crypto wallet does not store coins. It stores keys, and the private key is the important one. Think of it as the PIN to your funds: anyone who has it can move your money, and no bank or company can reverse what they do.

A private key is generated randomly when you create a wallet. It is effectively impossible to guess, because the number of possible keys is astronomically large, larger than the number of atoms on Earth. That randomness is what keeps your funds secure without a central authority guarding them.

Private key vs public key

Every wallet has a matching pair: a private key you keep secret and a public key you can share. The public key, usually shown as a shorter wallet address, is how people send you crypto. The two work together, but they play opposite roles.

FeaturePublic keyPrivate key
PurposeReceive funds, verify signaturesSign transactions, spend funds
VisibilitySafe to share with anyoneMust stay secret, always
AnalogyBank account numberBank PIN or password
If exposedNo harm; it is meant to be publicYour funds can be stolen

How the public key relates to the private key

The public key derives from the private key using a one-way mathematical function, a trapdoor function at the heart of public key cryptography. You can generate a shareable public key from a private key in a second, but going the other way, working out the private key from the public key, would take a supercomputer longer than the age of the universe. That one-way relationship is why your address and public keys can safely remain visible to everyone.

How does a private key work?

A private key never actually gets sent anywhere. It works by producing a digital signature, a kind of mathematical fingerprint, that proves you authorized a transaction without revealing the key itself. This signing step is how the key grants access to your assets and cryptocurrencies without ever being shared.

  • You sign. When you send crypto, your wallet uses the private key to sign the transaction internally.
  • The network verifies. Validators check that the signature matches your public key, confirming the funds are yours to move.
  • The key stays secret. At no point does the private key leave your device or appear on the blockchain.

This is why a good wallet, especially a hardware wallet, signs transactions on the device itself: the private key can do its job without ever touching the internet.

Where your private key actually lives

Most people never see their raw private key. Instead, a wallet gives you a seed phrase of 12 or 24 words, which is a human-readable master key that can regenerate every private key in the wallet. Protecting the seed phrase is the same as protecting the private keys.

Where those keys are stored is what separates safe from risky.

Where the key is keptExposure
Hardware wallet (secure chip)Safest; the key never goes online
Reputable software or mobile walletFine for smaller amounts; keys sit on a connected device
Exchange accountThe exchange holds the key, not you
Screenshot, cloud note, or emailDangerous; treat as already compromised

Private key vs seed phrase

These two terms get mixed up constantly, but the relationship is simple once you see it. A private key controls a single account or address. A seed phrase is the master key that can regenerate all of your private keys and addresses at once, so it sits one level above the individual keys.

What the seed phrase does

When you set up a wallet, it turns a single random seed into an unlimited tree of private keys using a standard called hierarchical deterministic derivation. That is why one 12 or 24-word phrase can back up an entire wallet: every key you will ever use is mathematically derived from it.

Which one you actually back up

In everyday use you protect the seed phrase, not each private key by hand. Restoring the phrase on a new device rebuilds every key automatically, which is why the seed phrase, not any single private key, is the one thing you must never lose. Our backup guide walks through doing it safely.

How to keep your private key safe

Because there is no password reset in self-custody, protecting the key (and the seed phrase behind it) is everything.

  • Keep it offline. Write the seed phrase on paper or metal; never store keys in a photo, cloud note, or password manager.
  • Use a hardware wallet for anything you are holding, so the key stays in a secure chip.
  • Never type your key or seed phrase into a website, and never share it with anyone claiming to be support.
  • Keep the backup somewhere separate from the device, ideally in more than one secure location.

The full routine is covered in how to back up a seed phrase and how to store crypto safely.

What happens if your private key is lost or stolen

The two failure modes have very different outcomes, and both are permanent.

  • If someone steals it, they can drain your funds instantly, and the transaction cannot be reversed. This is why phishing that tricks people into revealing a key or seed phrase is so damaging.
  • If you lose it with no backup, the funds are locked forever. No company can recover a non-custodial private key, which is the trade-off for having full control.

A hardware wallet in cold storage, plus a securely stored seed phrase, protects against both at once.

Common private key mistakes

MistakeDo this instead
Screenshotting a key or seed phraseWrite it offline on paper or metal only
Storing keys in the cloud or emailNever put keys on an internet-connected service
Typing a seed phrase into a websiteOnly ever enter it on the wallet device itself
Sharing a key with fake supportNo legitimate service ever asks for it
Keeping the only backup in one placeStore copies in two secure locations

Want the safest place to keep your keys? See the best hardware wallets, led by the Ledger Nano X and Trezor Safe 5.

Questions

Frequently asked

What is a private key in simple terms?

It is the secret code that lets you spend your crypto and proves the coins are yours. Think of it as the PIN to your funds: anyone who has it can move your money, so it must never be shared.

What is the difference between a private key and a public key?

The public key (usually shown as your wallet address) is for receiving crypto and is safe to share. The private key is for signing and spending, and must stay secret. The public key is derived from the private key, never the other way around.

Where is my private key stored?

In a hardware wallet the key lives in a secure chip and never goes online. In a software or mobile wallet it sits on your device. On an exchange, the platform holds it. You usually interact with a seed phrase rather than the raw key.

Should you ever share your private key?

Never. No legitimate wallet, exchange, or support agent will ask for your private key or seed phrase. Anyone who has it can take your funds instantly, and the transaction cannot be reversed.

What happens if you lose your private key?

If you have your seed phrase, you can regenerate the key on a new device and your funds are safe. If you lose both with no backup, the crypto is locked forever, because no company can recover a non-custodial key.

Can a private key be hacked or guessed?

Guessing is effectively impossible; there are more possible keys than atoms on Earth. The real risk is not guessing but exposure, through phishing, malware, or storing the key or seed phrase online where an attacker can find it.

Is a seed phrase the same as a private key?

Not exactly. A seed phrase is a human-readable master key of 12 or 24 words that can regenerate every private key in your wallet. Protecting the seed phrase is effectively the same as protecting all your private keys at once.

How do I keep my private key safe?

Keep it offline: use a hardware wallet, write the seed phrase on paper or metal, and never store keys in a photo, cloud note, or password manager. Keep the backup separate from the device and never type it into a website.

What does a private key look like?

Usually a long string of letters and numbers, for example a 64-character hexadecimal value, though the exact format varies by blockchain. Most people never handle it directly, since wallets present the friendlier 12 or 24-word seed phrase instead.

Can two people have the same private key?

In practice, no. The key space is so vast that the odds of two wallets generating the same private key are astronomically small, which is what makes the whole system secure without a central authority.

Is a private key the same as a wallet address?

No. A wallet address is a shortened form of your public key and is safe to share for receiving funds. The private key is the secret behind it that authorizes spending. Sharing your address is fine; sharing your private key is not.

Do I control my private key on an exchange?

No. On a custodial exchange the platform holds the private keys, so your crypto is only as safe as the company. For full control, withdraw to a non-custodial wallet, ideally a hardware wallet, where you hold the keys.

Next step

See which wallets we actually recommend

Every wallet in the register was bought at our own cost and scored on one fixed standard.

Read the register →