Cryptocurrency coins representing provably fair hashing at crypto casinos

Provably Fair Explained: How to Verify Every Bet

Provably fair means you can prove, with maths, that a casino did not change a result after you bet. This guide shows how the seeds and hashes work and how to verify a bet yourself.

Updated 28 Nov 2026Fact-checked by the OnlineCasinoSpot Editorial Team using our rating method

What provably fair actually means

Provably fair is a cryptographic method that lets you check each result at a crypto casino. The casino commits to a secret seed before you bet. You add your own seed. After the round, you can recompute the outcome and see whether it matches. If it does not, the casino has been caught cheating.

Traditional online casinos work differently. A random number generator picks the outcome on the casino's servers, and an outside lab such as eCOGRA or iTech Labs audits the software now and then. You trust the audit, not your own check. Provably fair shifts some of that trust into maths you can run yourself.

Two points matter before you go further. The method proves integrity, meaning a result was not changed. It does not prove fairness of odds, meaning the house edge could still be 5% or 10%. Always read the stated return to player (see our RTP guide) alongside the proof.

Our provably fair casino rankings list the operators that publish these tools. This guide explains what is happening underneath.

The four ingredients: server seed, client seed, nonce, hash

Every provably fair system uses the same four building blocks. The names vary slightly between casinos, but the roles do not.

The inputs behind a provably fair result
Ingredient Who controls it What it does
Server seed Casino A secret random string. Only its hash is shown before you bet.
Client seed You A string you can edit. It stops the casino choosing the seed alone.
Nonce Counter A number that rises by one with each bet. It makes every bet different.
Hash of the server seed Casino A public fingerprint that locks the casino into its seed.

The server seed is the casino's half of the randomness. If the casino showed it in full before you played, you could work out every future result. So it shows only a hash.

The client seed is your half. A casino that picked everything could generate seeds until it found a favourable sequence. Your input removes that option, because the casino cannot know your seed in advance.

The nonce is a counter, usually starting at 0 and rising by one per bet. With the same two seeds, bet number 5 and bet number 6 therefore give different results.

How the hashing works: SHA-256 and HMAC

A hash function turns any input into a fixed-length output. SHA-256 always returns 64 hexadecimal characters. It has three properties that make provably fair possible.

  • One-way. You cannot work backwards from the hash to the input.
  • Deterministic. The same input always gives the same hash.
  • Sensitive. Changing one character changes the whole hash.

Casinos use the hash as a commitment. Before you bet, they show you the SHA-256 hash of the server seed. Later, you hash the revealed seed yourself. If the two hashes match, the seed is the one the casino committed to.

For the result itself, most casinos use HMAC-SHA256. HMAC is a keyed hash. The server seed acts as the key, and a message such as clientSeed:nonce:round is the data. The output is another 64-character hex string, which the game then converts into a number.

You can run this in any programming language, or with the free tools that many casinos link from their fairness page. You can also use an offline tool for extra privacy. For the full definition of the algorithm, see the SHA-2 entry on Wikipedia.

A worked example: one dice roll, start to finish

The numbers below are real outputs. We produced them from a made-up server seed so that you can repeat the calculation. Real casinos use their own message format, so treat this as a model and not as a copy of any one site's formula.

Two translucent red casino dice on a black background
A provably fair dice roll is a number made from the server seed, the client seed and the nonce.

Step 1: the commitment. The casino picks the server seed example-server-seed-9f2c7a41. Before your first bet it shows you the SHA-256 hash:

e6422122c12e4609348ea80885b2f6869325840add736a4250e541d5e970f708

Step 2: you set a client seed. You choose myclientseed.

Step 3: bet number 0. The message is myclientseed:0:0. The HMAC-SHA256 output, using the server seed as the key, is:

80638227e86de21082c01ab127a7a047e3c91d518fa5e2f931519da77284caae

Step 4: turn the hash into a number. Take the first four bytes (the first eight hex characters): 80, 63, 82, 27. In decimal, those are 128, 99, 130 and 39. The conversion divides each byte by 256, then by 256 squared, and so on:

128/256 + 99/256² + 130/256³ + 39/256⁴ = 0.5015…

Step 5: scale to the game. A dice game with rolls from 0.00 to 100.00 multiplies by 10,001, takes the whole number and divides by 100. Here, 0.5015 × 10,001 = 5,015.68, which rounds down to 5,015, so the roll is 50.15.

Step 6: bet number 1. The message becomes myclientseed:1:0, and the hash starts 0f5d3ac6…. The first four bytes are 15, 93, 58 and 198, which gives 0.0600 and a roll of 6.00. The only thing that changed was the nonce, and the result changed completely.

Games with more outcomes, such as plinko or mines, use more bytes from the same hash. Crash uses a different formula to produce the multiplier. The pattern, however, stays the same.

How to verify a provably fair bet step by step

Follow these steps after a bet you want to check. The first one is the step most people skip.

  1. Record the hash before you play. Open the fairness panel and copy the hashed server seed. Screenshots are fine.
  2. Set your own client seed. Enter a string of your choice and save it. Note it down.
  3. Play your bets. The nonce rises with each bet. Note the nonce of the bet you want to test.
  4. Rotate the seed. Press the "change seed" button. The casino now reveals the old server seed in full and starts a new pair.
  5. Hash the revealed seed. Paste it into a SHA-256 tool. The output must equal the hash from step 1. If it does not, stop.
  6. Recompute the bet. Use the casino's own verifier, or your own HMAC-SHA256 script, with the revealed server seed, your client seed and the nonce.
  7. Compare the result. The number must match the result you saw in the game.

If you are curious, check more than one bet. A fair system matches every time. A single mismatch is a red flag.

What provably fair does not cover

The process has real limits, and good players know them.

What the proof covers and what it does not
Question Does provably fair answer it?
Was my result changed after I bet? Yes
Is the house edge low? No, check the game's stated RTP
Will the casino pay my withdrawal? No, that depends on the operator and its terms
Is the casino licensed and solvent? No
Is a slot from a big studio provably fair? Not usually, since slots use certified RNGs

Another limit is practical. Verification only helps if people do it. Many players never open the fairness panel, and a casino that only offered a broken verifier would depend on that. Test the process yourself once, early, with small bets.

There is also a dependence on the casino's code. If the casino shows you a fake hash, but a real one to the verifier, you would not know. For this reason, use an independent hash tool rather than the casino's own page when you check.

How to judge a casino's provably fair claims

Use this short checklist. A real implementation passes all five points.

  • The casino shows the hashed server seed before you play.
  • You can edit your client seed at any time.
  • The nonce is visible and increases with every bet.
  • Old server seeds are revealed when you rotate.
  • The casino publishes the exact formula for each game, so a third party can reproduce it.

Compare this with the "provably fair" badge alone, which proves nothing. Some casinos use the label for marketing and offer no verification tool. Our crypto casino hub notes which operators publish their provably fair originals.

Take the licence into account too. Provably fair stops a rigged outcome, but it cannot recover your balance from an operator that refuses to pay. Check the licence and terms first, as we explain in our guide on how to choose an online casino.

Common mistakes when verifying

Most failed checks come from small errors rather than cheating. Watch for these.

  • Wrong separator. Some casinos use a colon, others a dash or no separator. Read the formula on the fairness page.
  • Wrong nonce. Nonces often start at 0. Counting from 1 breaks the result.
  • Text versus hex. The server seed is normally treated as text, not as raw hex bytes.
  • Rounding. Floor the number, do not round it.
  • Using the active seed. The seed in play is hidden. You can verify only after you rotate.

Keep each seed pair's data until you have checked the bets you care about. When you rotate, the old pair disappears from the live panel, though many casinos keep a history page.

Provably fair and responsible play

Verifiable results are a good feature, but the proof does not make a game safer for your wallet. The house edge still applies on every bet, and fast games such as dice and crash let you place hundreds of bets an hour. Set limits before you start, and treat any balance as entertainment money. Our responsible gambling tools guide shows how to set deposit and loss limits. If gambling stops being fun, BeGambleAware offers free, confidential support.

Frequently asked questions

What is the difference between a server seed and a client seed?

The server seed is a secret random string the casino generates. The client seed is a string you control, often pre-filled by your browser. The result of each bet comes from combining both with a nonce, so neither side can predict or steer the outcome alone. You can change your client seed at any time.

Why does the casino show me a hash before I bet?

The hash is a fingerprint of the server seed. Because SHA-256 cannot be reversed, the casino cannot swap the seed later without the fingerprint changing. After you rotate your seed, the casino reveals the original server seed, and you hash it yourself to confirm that it matches the fingerprint you saw earlier.

Are all crypto casino games provably fair?

No. Provably fair usually covers in-house originals such as dice, crash, plinko, mines and coin flip. Slots and live dealer tables from outside studios such as Pragmatic Play or Evolution use certified random number generators or physical equipment, and they are audited by testing labs instead.

Does provably fair mean I will win more often?

No. It proves that the result was not altered after your bet. It says nothing about the odds. A provably fair dice game with a 1% house edge still takes about 1 unit in every 100 wagered over the long run, so the house edge in the rules is what decides your expected return.

What do I do if my verification does not match?

First re-check the inputs: seed spelling, the nonce, the round number and the hash format. Most mismatches come from typing mistakes or using the wrong game formula. If the numbers are still wrong after a careful re-check, take screenshots, stop playing and contact support with the bet ID.

18+

Keep it fun, keep it in budget

Decide your limit before you deposit, never chase losses, and use the deposit limits and time-outs every casino we list offers. If you feel gambling is taking over, free and confidential help is available.

Responsible gambling tools