Skip to content

PIN generator

Random PINs for cards, phones, alarms and locks, without the easy-to-guess ones.

Length

10,000 possible 4-digit PINs

How it works

What makes a PIN hard to guess

A PIN is short, so it relies on two things: being random, and being protected by a limit on wrong attempts. A random PIN gives a guesser no head start; a lockout after a few tries stops them from trying them all.

LengthPossible PINsChance with 3 random guesses
4 digits10,0001 in 3,333
6 digits1,000,0001 in 333,333
8 digits100,000,0001 in 33 million

Those odds only hold for random PINs. Real people favor 1234, 1111, 0000, 1212 and years of birth, so a guesser who starts with those does far better. That is why this generator skips them by default.

For accounts that accept letters too, a random password or a passphrase is much stronger than any PIN.

Frequently asked questions

Is a 4-digit PIN secure?

For a bank card or phone that locks after a few wrong tries, a random 4-digit PIN is fine: with 3 attempts, a guesser has a 3 in 10,000 chance. The danger is predictable PINs. In a 2012 analysis of 3.4 million leaked PINs, 1234 alone made up almost 11%. Where you can choose, 6 digits are much safer.

Why avoid birthdays and years?

Years from 1900 to 2099 are only 200 of the 10,000 possible four-digit PINs, and birthdays are often public. Attackers who know a little about you try them first. The "avoid easy PINs" option skips them, along with repeats like 1111, runs like 1234 or 9876 and patterns like 1212.

How random are these PINs?

Each digit comes from your browser’s cryptographically secure random number generator, so every allowed PIN is equally likely and nobody can predict them.

Are the PINs stored anywhere?

No. They are generated in your browser and disappear when you leave the page. Nothing is sent to a server.