ZapKit

Random PIN Generator

Make random PIN codes for phones, cards, locks and apps, from 3 to 12 digits, avoiding the predictable patterns people tend to choose.

What is a PIN generator?

A PIN generator creates personal identification numbers, short numeric codes, at random. PINs protect bank cards, phones, SIM cards, door locks, safes, alarm systems and many apps.

People choosing their own PINs gravitate to the same few numbers, which makes them easy to guess. A generator removes that bias. Set the length you need, generate one or a whole batch for things like guest door codes, and optionally exclude repeated digits for systems that reject them. The entropy figure shows how many possibilities there are.

How to use the Random PIN Generator

  1. 1.Choose the length

    4 digits for cards, 6 for phones and apps, longer where allowed.

  2. 2.Choose how many

    Generate up to 100 at once, for example for door codes.

  3. 3.Copy one

    Or copy them all. Press Generate for a fresh set.

Example: PIN lengths compared

Possible combinations and entropy for random PINs:

4 digits
10,000 combinations, 13 bits
6 digits
1,000,000 combinations, 20 bits
8 digits
100,000,000 combinations, 27 bits
6 digits, no repeats
151,200 combinations

Every extra digit makes guessing ten times harder, as long as the device locks after a few wrong attempts.

Why random beats chosen

Studies of leaked PINs found that 1234, 1111, 0000 and birth years make up a large share of all four-digit PINs, so an attacker trying the most common ones first succeeds far more often than chance. A random PIN gives every combination an equal chance.

Each digit comes from your browser's cryptographic random generator. A 4-digit PIN has 10,000 combinations and a 6-digit one 1,000,000. PINs rely on lockouts after a few wrong tries, so they're only for keypads and devices that enforce them, not for online passwords.

Frequently asked questions

Is a 6-digit PIN much safer than 4?

Yes: there are 100 times as many combinations, a million instead of ten thousand.

Should I avoid repeated digits?

It isn't necessary for randomness, but some banks reject PINs like 1123. Tick the option if yours does.

Are these PINs stored?

No. They're created in your browser and disappear when you leave the page.

Can I use a PIN as a password?

Not online. Without lockouts, a computer can try every PIN in a fraction of a second.

More Utilities tools