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.
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.
- A 6-digit PIN appears as soon as the page opens. Press Generate for another.
- 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.
- Press Copy, or read it off the screen. Turn on Hide first when somebody is beside you.
- 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.
Related tools
- Password generator Create strong random passwords or passphrases in your browser, one at a time or up to 1,000 at once.
- Passphrase generator Make a passphrase of 3 to 10 random words with the separator you choose.
- UUID generator Generate random v4, time-ordered v7 or name-based v5 UUIDs in your browser.
More generators
- QR code generator Make QR codes for links, Wi-Fi, contacts, text messages, places and more.