Creating Secure PINs and Numeric Codes
How strong a PIN really is, which PINs to avoid, and when to use a longer numeric code or a full password instead.
PINs protect phones, bank cards, door locks and apps. Because they use only digits, their security depends heavily on length and on avoiding common choices.
How many combinations?
| PIN length | Possible combinations |
|---|---|
| 4 digits | 10,000 |
| 6 digits | 1,000,000 |
| 8 digits | 100,000,000 |
PINs are safe enough for devices and cards only because they are combined with attempt limits: a phone erases or locks after repeated failures, and a card is blocked after a few wrong tries.
PINs to avoid
Research on leaked PIN datasets shows a small set of codes accounts for a large share of all PINs:
- Repeated digits: 0000, 1111
- Sequences: 1234, 123456, 4321
- Years: 1980 to 2010, especially birth years
- Dates in day-month or month-day form
- Keypad patterns: 2580 (straight down the middle)
Making a better PIN
- Use 6 digits wherever a choice is offered.
- Generate it randomly: use the 6-digit PIN preset in our password generator, or roll a die.
- Never use the same PIN for your phone and your bank card.
When a PIN is not enough
- Phone screen locks on devices containing email and banking apps benefit from a longer alphanumeric passcode.
- Encryption keys and offline files have no attempt limits, so they need a full-strength password or passphrase.
Protecting a PIN in use
Shield the keypad at cash machines and in shops, watch for skimming devices, and never write a PIN on or near the card it protects.
Frequently asked questions
Is there a random PIN generator?
Yes. Use the 6-digit PIN preset in our generator as a PIN generator. A random PIN avoids the predictable choices people make.
What are the most common PINs?
The most common PINs include 1234, 1111, 0000, 1212 and 7777, plus birth years. Attackers try these first, so avoid them for phones and cards.
Try the free Password Generator
Create strong random passwords with custom length, symbols and a live strength meter.
Open Password Generator