random PIN generator

EnglishFrançaisEspañolDeutschItalianoPortuguês

Give me of with of of

 

Made on your device, never sent
Size

Press F or Esc to leave full screen

This page gives you a random PIN code of 6 digits, the length many phones suggest. Tap “6 digits” to switch to 4 digits, for a bank card or a padlock, or 8 digits, for a safe or an alarm. Every digit is drawn by your browser's cryptographic random generator, so every code has exactly the same chance of coming up, and the code never leaves your screen.

Why not choose a PIN yourself? Because people choose badly and predictably: birth years, 1234, 0000, 1111 or a pattern drawn on the keypad. Studies of leaked codes keep finding the same few combinations at the top. A random code removes that weakness: 2580 or 1234 are not more likely here than 7193.

A PIN is short, so its strength comes from the limit on tries rather than from its length. A 4-digit code has only 10,000 combinations, about 13 bits, which a computer would try in a blink. But a bank card blocks after three wrong attempts, so a stranger has 3 chances in 10,000, or 0.03 %, to find it. A 6-digit code brings that down to 3 in a million. The table below shows each length.

How strong is each PIN code?

Every digit multiplies the possibilities by 10. The last column is the chance that a stranger finds the code in 3 tries, the usual limit on a bank card.

DigitsPossible combinationsEntropyGuessed in 3 tries
410,00013 bits0.03%
61,000,00019 bits0.0003%
8100,000,00026 bits0.000003%

PIN code: how it works

  1. Choose what you need

    Tap “a password” to switch to a passphrase or a PIN code, then set the length and the characters.

  2. Generate

    Press Generate. A new password appears with its strength: from Weak to Very strong, with the number of bits.

  3. Copy it

    Press Copy or tap the password itself, then paste it into the site or your password manager.

Any suggestions for improvement?

We build tools that are as simple and intuitive as possible, with a few bonuses here and there. Tell us what would make this one better.

PIN code: frequently asked questions

Is a 4-digit PIN safe enough?

For a bank card, yes, because the card blocks after three wrong tries: the chance of a lucky guess is 0.03 %. For a phone, prefer 6 digits, which give a million combinations instead of ten thousand.

Can a random PIN be 1234?

Yes, exactly as often as any other code: 1 time in 10,000 for 4 digits. If you get a code that looks too simple, press Generate again; it costs nothing.

Should I change my bank card PIN?

If your bank lets you, a random code is better than a date of birth. You usually change it at an ATM of your bank or in its app. Never write the PIN on the card or keep it in the same wallet.

Is the code stored anywhere?

No. It is drawn on your device and only shown on the screen. The page remembers the length you like, never the code itself.

Is this password generator safe?

Yes. The password is made by your browser with crypto.getRandomValues, the cryptographic random source used for security. It is never sent to our server and never saved: only your settings are remembered. You can even load the page, cut your connection and keep generating.