- Vahty
- Free tools
- PIN generator
PIN generator
A random PIN in one tap. It is made in your browser and sent nowhere.
Runs in your browser. Nothing is uploaded or stored.
PIN or pattern: the numbers
This is how many possibilities each lock has when it is picked at random.
| Lock | Possible combinations |
|---|---|
| 4-digit PIN | 10,000 |
| Pattern, 3 × 3 grid, four dots or more | 389,112 |
| 6-digit PIN | 1,000,000 |
| 8-digit PIN | 100,000,000 |
| Pattern, 4 × 4 grid, six dots or more | about 4.35 trillion |
- People do not pick at random. 1234, birthdays and L-shaped patterns get tried first. The figures above are the best case.
- Speed matters more than count. A lock that makes you wait after a few wrong tries beats a bigger number with no waiting.
Pattern vs PIN vs Face ID: the full comparison
What “Skip easy ones” leaves out
- All digits the same: 0000, 777777.
- A straight run up or down: 1234, 987654, 7890.
- A repeated pair or half: 1212, 123123.
- For 4 digits: years from 1950 to 2039.
- For 6 and 8 digits: anything that reads as a date, such as 122499 or 24121999.
Every PIN that is left is equally likely. For 4 and 6 digits your browser counts them itself. For 8 digits we counted once ahead of time, going through all 100,000,000 with the same rule. The page cannot know your own numbers, such as your house number or the end of your phone number. If the PIN looks like one of those, tap “New PIN”.
Using your PIN
- Do not reuse your iPhone passcode as the PIN for an app. Anyone who knows one would have the other.
- Do not use a date. Birthdays and anniversaries get tried first.
- Use a PIN of its own for each thing: card, phone and app.
- How many wrong tries a phone, a bank or an app allows differs. Check before you rely on it.
A pattern in place of a PIN
Vahty, the vault app for iPhone, opens with a pattern you draw on a 4 × 4 grid, six dots or more. After 5 wrong patterns you wait, from 30 seconds up to 1 hour per try.
More about the pattern lockQuestions
Is the PIN really random?
Yes. Each digit comes from your device’s own random source (crypto.getRandomValues) and is equally likely. The PIN is made in your browser. The page does not send it anywhere and does not store it.
Is a 6-digit PIN safer than a 4-digit PIN?
A 6-digit PIN has 1,000,000 possibilities and a 4-digit PIN has 10,000, so 100 times as many. That holds only when the PIN is random. And it helps most when the lock makes you wait after wrong tries.
Is a pattern lock safer than a PIN?
It depends on the grid. A 3 × 3 pattern of four dots or more has 389,112 possibilities, fewer than a 6-digit PIN with 1,000,000. A 4 × 4 pattern of six dots or more has about 4.35 trillion.
Which PINs should I avoid?
All the same digit, runs like 1234, repeats like 1212, years and dates. This generator skips them when “Skip easy ones” is on. It cannot know your own numbers, such as a house number or a phone number. Those you have to avoid yourself.
More free tools
- Password generatorA strong random password in one tap.
- Passphrase generatorRandom words you can remember and type.
- Password strength checkerHow long would yours take to guess?
- Photo metadata removerSee and strip the location hidden in a photo.
- Blur part of a photoCover a face, a plate or an address before you share.
Coming soon. One email on launch day.