Random PIN Generator
Make a random numeric PIN of 3 to 12 digits, with easy patterns like 1234 left out. Made on your device and never stored.
PINs are made in your browser with the secure random generator built into it. They are never stored or sent anywhere, and leading zeros are kept.
What this generator does
It makes random numeric PINs of 3 to 12 digits, up to 20 at a time. Each digit is picked with the browser's secure random generator, crypto.getRandomValues, the same source used for cryptographic keys, rather than the weaker Math.random. Use it for a phone or SIM lock, a bank card, a door or safe code, a shared access code, or a one-time code.
How to use it
- Choose a length. Four digits is the usual bank-card length, and six or more is harder to guess.
- Leave Skip easy patterns on to avoid PINs that people try first. Turn on No repeated digits only if a system demands it.
- Press Generate, then copy the PIN, or learn it by heart. Do not store it next to the card or device it unlocks.
What "easy patterns" means
With that option on, the tool throws away a PIN if every digit is the same (0000, 7777), if it counts straight up or down (1234, 4321, 7890, 3210), or if a short block repeats (1212, 0101, 123123). These are the guesses attackers and thieves try first. Other human favourites, such as birthdays, are avoided automatically because the digits are random and not chosen by you.
How many PINs are possible
A PIN of n digits has 10n possibilities: 10,000 for four digits, 1,000,000 for six, and 100,000,000 for eight. Forbidding repeated digits lowers that count; a four-digit PIN with no repeats has 5,040 instead of 10,000, so the option makes a PIN a little easier to guess, not harder. Removing the easy patterns takes out only a tiny share of the total. The figure shown under the PIN counts all possibilities for the chosen settings.
Good to know
- A longer PIN is the best upgrade. Each extra digit makes it ten times harder to guess by trying every number.
- A short PIN relies on lockout. A 4-digit PIN is only safe because a phone or card locks after a few wrong tries. Where there is no lockout, use a long password instead, from the Password Generator.
- Do not reuse a PIN across your phone, your bank card and your other locks.
- Some systems have their own rules, such as banning certain sequences or requiring a minimum length, so you may need to generate another one.
Frequently asked
Are these PINs really random?
Yes. Each digit is drawn with the browser's cryptographically secure random generator, and a method that avoids bias is used so every digit from 0 to 9 is equally likely.
Is the PIN stored or sent anywhere?
No. It is made on your device, shown on the page, and never uploaded or saved. Reloading the page makes a new one.
Why does the tool skip PINs like 1234?
Because 1234, 0000 and a few other simple patterns are the first numbers anyone tries. Skipping them costs almost nothing in the number of possible PINs and removes the easiest guesses.
Is a 4-digit PIN safe?
Only where the system locks out repeated wrong guesses, as phones and bank cards do. With only 10,000 possibilities, it would not stand up to unlimited guessing. Use six or more digits where you can.
Does it keep a leading zero?
Yes. A PIN such as 0472 is shown with its zero and counts as a four-digit PIN. Make sure whatever you type it into keeps the zero.
Last updated: October 2026