How to use the PIN generator
- Choose how many digits you need, from 4 to 12.
- Pick one of the codes and copy it with one click.
- Set it on your device and store it in your password manager if you might forget it.
How secure is a PIN?
A PIN is far weaker than a password on its own: a 4-digit PIN has 10,000 combinations and a 6-digit PIN has 1,000,000. What keeps it safe is the device it unlocks. Phones, SIM cards and bank cards limit how many wrong guesses you get, so an attacker can only try a handful of codes before they're locked out.
That only works if the PIN isn't one of the first codes an attacker would try. The most common PINs, such as 1234, 0000, 1111, 1212 and years starting with 19 or 20, cover a large share of real-world PINs. A random PIN removes that shortcut.
Good uses for a random PIN
- Phone and tablet lock screens
- SIM card PINs, to stop SIM-swap and theft attacks
- Bank and credit cards
- Home alarms, safes and lockers
- Voicemail and carrier account PINs
More free tools
How long should a PIN be?
Use 6 digits when you can. A 4-digit PIN has only 10,000 possibilities, while a 6-digit PIN has a million. For phones and password managers that allow it, 8 digits or more is better still.
Why use a random PIN instead of picking my own?
People choose predictable PINs. Studies of leaked PINs show that 1234, 1111, 0000, birthdays and years make up a large share of all 4-digit PINs. A random PIN avoids every one of those patterns.
Is a 6-digit PIN secure enough?
For a device that locks or wipes after a few wrong attempts, yes. PINs rely on that attempt limit for protection. For anything that can be attacked offline, use a random password or passphrase instead.
Can the generator give a PIN like 1234 or 0000?
It can, just as rarely as any other code: every PIN is equally likely. If you get an obvious pattern, simply generate a new one.
Are the PINs stored anywhere?
No. PINs are generated in your browser with a cryptographically secure random source and never sent to our server.