Skip to the content

Random PIN Generator

A random PIN of 4 to 12 digits, made in your browser. For phones, door codes and bank cards.

 

Very weak · 20 bits

6 digits
Share this tool:TwitterFacebookLinkedInWhatsAppEmail

How safe is a PIN?

A PIN is short, so the number of possibilities is small:

DigitsPossibilities
410,000
61,000,000
8100,000,000

A computer tries a million codes in a fraction of a second. A PIN is therefore only safe on something that limits the number of attempts: a bank card that is blocked after three wrong tries, a phone that makes you wait longer after every mistake. Never use a PIN as the password of an online account or to protect a file.

Why a random one

People are bad at choosing PINs. Analyses of leaked codes keep finding the same favourites at the top: 1234, 1111, 0000, repeated pairs such as 1212, and years of birth. A thief who tries the ten most popular codes has a real chance. A code that was drawn at random gives them one chance in ten thousand per guess.

Chance can also produce an obvious code. If you get 1234, four equal digits or your own year of birth, draw again.

Practical advice

  • Use six digits where the device allows it. On a phone it makes a random PIN a hundred times harder to guess than four digits.
  • Don't use the PIN of your bank card for anything else. Door codes and luggage locks are easy to watch.
  • Don't keep a PIN in your wallet or as a contact in your phone under a hint that anyone would see through.

Where the digits come from

Each digit is drawn with your browser's cryptographic random generator, on your own device. The PIN is not sent anywhere and is not stored.

The password generator page explains how the strength meter works and which kind of password suits which job.

See all 9