Random 6-Digit Number Generator
A fair random 6-digit number in one tap. Optionally allow leading zeros, or ask for a whole list.
- Free
- No sign-in
- Nothing leaves your device
- Works offline
In 3 steps
How to use it
Choose your style
Leave leading zeros off for a normal number, or switch them on for PIN-style codes.
Press Generate
Ask for one number or many.
Copy the result
Copy it in one tap. Nothing is stored.
Fast facts
Good to know
-
900,000 possible numbers
From 100,000 to 999,999, every one equally likely.
-
1,000,000 possibilities
A 6-digit code has a million possibilities, about 20 bits of entropy. Good for demos and drawings, not for guarding anything on its own.
-
Repeats happen
Pick 5 numbers and there is a 0.0011% chance that at least two match.
-
Good for
test verification codes, sample order numbers, raffle tickets, demo data.
Ideas
What people use 6-digit numbers for
- test verification codes
- sample order numbers
- raffle tickets
- demo data
FAQ
Random 6-Digit Number Generator: your questions answered
How do I generate a random 6-digit number?
Press Generate. The tool picks a whole number from 100,000 to 999,999, so it always has exactly 6 digits, with every one of those 900,000 numbers equally likely.
Is this safe for one-time passcodes (OTP)?
The numbers are generated securely, but real one-time codes should be created and checked on your own server, where they can expire and be rate-limited. Use this page for testing and demos.
How many 6-digit numbers are there?
There are 900,000 numbers with exactly 6 digits when the first digit cannot be zero, or 1,000,000 if leading zeros are allowed (from 000000 to 999999).
Can I get several 6-digit numbers at once without repeats?
Yes. Set “How many”, and switch on “No repeats” in the full generator on the home page if you need every number to be different.
Are the digits really random, and are they stored?
They come from your browser’s cryptographically secure random generator and are created on your device. They are never sent to us and never stored.
Keep going
More free tools
-
Random number generator
Any range, decimals, no repeats, up to 1,000 digits.
Open -
Random String Generator
Secure random tokens, hex keys and IDs with entropy shown.
Open -
UUID Generator (v4 & v7)
Bulk UUID v4 and time-sortable v7, entirely in your browser.
Open -
Online Dice Roller
d4 to d100, many dice, modifiers, advantage.
Open
Private by design. No accounts, no cookies, no tracking. Everything you generate stays on your device.
How we keep it that wayReady? Press the button.
Free, fast and private. No sign-in, ever.