One million outcomes
6-digit codes cover 1,000,000 values from 000000 to 999999—the same order of magnitude as many national lotteries.
PIN, lottery, or ID-style codes · 1,000,000 standard combinations · free, no signup
Mode
1,000,000 values in the standard pool (with leading zeros) · any single draw is 1 in 1,000,000
This page generates random 6-digit numbers across 1,000,000 possible values (000000–999999). Common for OTP-shaped codes, lottery-adjacent practice, and larger raffle IDs.
Split intent on this page: PIN / code use (try PIN-safe mode), lottery-style digit draws (standard mode matches tools like Pick-N games), and ID / raffle tickets. Modes change the pool—not just the label.
| Mode | Count |
|---|---|
| Standard (leading zeros on) | 1,000,000 |
| Standard (leading zeros off) | 900,000 |
| No-repeat digits (leading zeros on) | 151,200 |
| PIN-safe | Filters sequences, repeats from the no-repeat pool |
Q: Does a 6-digit result include leading zeros?
By default yes—so a 6-digit value stays fixed width (for example 000042). Turn off "Allow leading zeros" to force the range 100,000–999,999 instead (900,000 values).
Q: How many 6-digit combinations exist?
With leading zeros: 1,000,000 (106). Without: 900,000. No-repeat mode (each digit at most once, leading zeros on) has 151,200 values. PIN-safe mode further filters sequences, all-same digits, and birth-year-like 4-digit patterns.
Q: What does PIN-safe mode do for 6-digit numbers?
PIN-safe keeps digits unique and drops obvious weak patterns: all digits the same (like 111111), straight sequences (like 012345), and—for 4-digit only—year-like values from 1900–2099. This is a convenience filter for practice codes, not a security product.
For fair giveaways that use numbered entries, see how to run a fair online raffle.
Did you know
Quick, trustworthy snippets you can actually use—math, odds, and real-world places these lengths show up.
6-digit codes cover 1,000,000 values from 000000 to 999999—the same order of magnitude as many national lotteries.
Banks and apps often send 6-digit one-time passwords: short enough to type, wide enough that brute force is impractical before the code expires.
At one number per second, listing every 6-digit combo takes about 11.5 days nonstop.
Many draw games publish six main numbers; the headline jackpot is usually “match all six,” which maps cleanly to this digit length in people’s heads.
Web colors like #FF5733 pack red, green, and blue into six hex digits—24 bits, millions of shades, one compact string.
Carriers often surface the last six digits of a long tracking ID so you can confirm a parcel without reading a 20-character barcode.