100% free no uploads no sign-up

random PIN generator

Get a random PIN for a phone, card, safe or app lock. The generator automatically skips the patterns people guess first.

very weak · 20 bits of randomness · a fast offline attack would need instantly on average

Easy-to-guess PINs such as 1234, 0000, 1212 and years like 1990 are skipped automatically.

🔒 Made on your device with your browser's secure random generator. Never sent, never saved.

Why not choose your own PIN?

People pick PINs from a tiny set of favourites: 1234, 1111, 0000, 1212, 2580 (straight down the keypad) and years like 1990 or 2001. Studies of leaked PINs have found that a handful of these cover a large share of all 4-digit PINs, so an attacker who tries them first succeeds surprisingly often.

A random PIN removes that advantage. Each digit is drawn with your browser's cryptographic random generator, and any result that is all the same digit, a straight run up or down, a repeating pair or a likely year is thrown away and redrawn.

4 digits or 6?

Remembering it

Say it in pairs (“47 – 19 – 83”) a few times, and use it straight away. Avoid writing it next to the card or device it unlocks.

Frequently asked questions

Is the password sent or saved anywhere?

No. It's generated inside your browser with crypto.getRandomValues, the same cryptographic random source password managers use. It is never sent over the network, logged or stored — close the tab and it's gone.

Which PINs are skipped?

All-same digits (0000), straight runs up or down (1234, 9876, including wrap-around like 8901), repeating pairs (1212, 696969), 19xx and 20xx years, and a few famous ones such as 2580.

Does skipping weak PINs make it less random?

Very slightly — it removes a few dozen of the 10,000 possible 4-digit PINs. Those are exactly the ones attackers try first, so it's a clear net gain.

More password tools