Random PIN Generator
A four-digit PIN has 10,000 possibilities, which sounds like plenty until you learn that 1234 alone accounts for about one in ten of all PINs in leaked datasets, and the top twenty cover more than a quarter. The problem is never the digit count; it is that people choose dates, repeats and keypad shapes.
This generator draws each digit from crypto.getRandomValues() and, with “avoid patterns” on, rejects results that look like:
- runs such as 1234, 4321 or 2468
- repeats such as 1111 or 1212
- plausible years (1940–2029) and MMDD or DDMM dates
Rejecting those removes a few hundred of the 10,000 four-digit PINs, so the strength cost is negligible and the benefit is that your PIN is not on any “most common” list. Six digits (one million possibilities) is the sensible default for phones and banking apps that allow it.
What leaves your browser
PINs are generated and displayed in your browser only. Nothing is logged or transmitted. Because a PIN is short, treat the value on screen as sensitive and close the tab when you are done.
How many digits should my PIN be?
Six wherever the device allows it. Phones and most banking apps do. Four is acceptable only when the system locks or wipes after a handful of wrong attempts.
Are random PINs safe against shoulder surfing?
No PIN is. A random PIN protects you from guessing, not from someone watching. Cover the keypad and prefer biometrics for unlocking in public.
What are the most common PINs?
1234, 1111, 0000, 1212, 7777, 1004, 2000, 4444, 2222 and 6969 top most leaked lists. Anything that is a date, a repeat or a straight line on the keypad is easy to guess.
Can I generate a PIN longer than 12 digits?
Use the random password generator with only digits enabled for any length up to 128.