Why use a random PIN?
PIN codes protect phones, SIM cards, bank cards, alarms and door keypads. Because they are short, the way they are chosen matters a lot. Studies of leaked PINs show that a small number of combinations — 1234, 1111, 0000, 1212, 7777 — account for a large share of all codes, and that many people use a birth year or a date. Someone who finds your phone or wallet will try those first.
This generator draws every digit with your browser's cryptographic random generator and, by default, rejects the weak patterns: identical digits, ascending or descending sequences, repeated pairs, years between 1900 and 2099 and the most common PINs.
4, 6 or 8 digits?
A 4-digit PIN has only 10,000 possible values, a 6-digit PIN has a million and an 8-digit PIN has a hundred million. Whenever a device lets you choose, prefer 6 digits or more: on a phone, the extra digits add almost no inconvenience but make guessing far harder.
Tips for your PINs
- Use a different PIN for your bank card and your phone.
- Never write the PIN on the card or keep it in your wallet.
- Shield the keypad with your hand when you type it in public.
- For online accounts, use a real password from our password generator instead of a PIN.
Frequently asked questions
Can I choose my bank card PIN?
It depends on your bank: many let you change it at an ATM or in their app. If yours does, a random PIN is much safer than a date.
Why exclude years?
Years such as 1987 or 2015 are among the first codes tried, because many people use a birth year or an anniversary.
Is a 4-digit PIN enough?
For a bank card, it is protected by the limit of three attempts. For a phone, prefer 6 digits or a password.
Are the PINs stored?
No. They are generated in your browser and never sent anywhere.