Skip to content
utilnook

Random PIN Generator

Get a random PIN of 4 to 12 digits for a phone, card, lock or app, drawn fairly in your browser. One or a whole list. Never stored or sent anywhere.

1,000,000 possible PINs. A PIN is only safe where wrong tries are limited, as on a phone or a bank card.

Up to 1,000 at once, one a line.

Runs in your browser. Nothing you enter is uploaded.

How to use

This page draws random PINs of 4 to 12 digits on your own device, for a phone, a bank card, a door code or an app lock.

  1. A 6-digit PIN appears as soon as the page opens. Press Generate for another.
  2. Set Digits to the length you need: 4 for most cards and SIMs, 6 for phones and authenticator apps, more for a safe or an alarm panel.
  3. Press Copy, or read it off the screen. Turn on Hide first when somebody is beside you.
  4. For a batch, such as door codes for a block of flats, set How many and download the list.

Every digit is drawn with the browser's cryptographic random generator, so each PIN of a length is exactly as likely as any other. That is the point. People who choose their own PIN reach for birthdays, repeated digits and lines on the keypad, and thieves try those first. If chance does hand you 1234 or four equal digits, press Generate again.

Under the PIN, the page says how many PINs of that length exist. Four digits make 10,000, which is nothing to a computer and plenty for a card that locks after three wrong tries. So use a PIN only where tries are limited. For anything that can be guessed at speed, such as a file or an account with no lockout, use a password or a passphrase.

Only the length you chose is remembered on this device; a PIN is gone the moment you leave the page.

Frequently asked questions

Is a 4-digit PIN secure?

Where wrong tries are limited, yes: with three attempts before a card locks, a thief has a 3 in 10,000 chance, as long as the PIN is random. Without a limit it is not, since all 10,000 can be tried in moments.

Which PINs should I avoid?

The ones people pick: 1234, 0000, 1111, 2580 (straight down the keypad), years such as 1990, and dates like 0101. Studies of leaked PINs find 1234 alone in about one in ten. A PIN drawn at random almost never lands on these; if it does, draw again.

Is a 6-digit PIN much better than a 4-digit one?

A hundred times better against guessing: a million possibilities to ten thousand. On a phone that slows down after wrong tries, that turns hours of guessing into months. It costs two more digits to remember.

More generators

All generators