Open tools · 0

About

PIN Generator

A random six-digit PIN is ready as the window opens, drawn by your browser’s cryptographic random generator. The PINs everybody tries first, one digit repeated or a straight run up or down such as 1234 or 9876, are never given. Pick a length from three to twelve digits, and make up to fifty at once.

What it does

  • A four-digit PIN is one of 9,976: the 10,000 possible, less 10 of one digit and 14 straight runs.
  • Six digits give 999,980 possible PINs, about 20 bits, a hundred times as many as four.
  • Every digit is equally likely in every place, since the random number is never cut down with a biased modulo.
  • Leading zeros are kept: 0472 is a four-digit PIN, and copies as one.
  • Copy one, or a list of up to fifty, for a batch of door codes or test accounts.

How to use it

  1. Pick the length; six digits is where it starts.
  2. Copy the PIN, or make a new one.
  3. For several, set how many and copy the list.

What it does not do

  • Strength against an offline guess: a computer free to try them finds any PIN in under a second, so a PIN is only as safe as the limit on wrong tries.
  • Dates and keypad shapes: only repeats and straight runs are skipped, so 1984 or 2580 come up as often as any other PIN, which is what random means.

Questions

Is a four-digit PIN safe?

Where wrong tries are limited, mostly yes: a card that locks after three tries gives a guesser 3 chances in 9,976. Where they are not, no PIN is safe, and a password belongs there instead.

Why are 1234 and 0000 never given?

They are the first PINs anyone tries, so a person handed one would rightly distrust it. Leaving out the 24 obvious four-digit PINs costs less than a hundredth of a bit.

Six digits or four?

Six where the device allows it: a guesser with ten tries has 1 chance in 99,998 instead of 1 in 998. Phones and many apps take six, and some take more.

Everything here runs in your browser. Nothing you type, paste or open is uploaded, and there is no account and no queue. How that works.

Often used with

  • Notepad: a list of door codes kept under a password lock
  • Hash Generator: a PIN’s hash, which a guesser can test against every PIN at once

More in Generators

  • QR Code Generator: Make QR codes for links, Wi-Fi, contacts, email, SMS and events: static codes that never expire, with colours, a logo, and PNG or SVG download.
  • UUID Generator: Generate UUIDs one at a time or a thousand: v4, time-ordered v7, v1, name-based v5 and v3, plus ULIDs and Nano IDs; inspect any UUID.

All toolsAbout utilbrewPrivacy