~/pin-generator ☀ LIGHT secret dm env pii eraser ☕ Support me apps ← about me
// cryptographic rng · 3 to 16 digits · nothing transmitted

pin generator_

Random PINs of 3 to 16 digits, from a cryptographic RNG. See how many combinations there are and how long a guessing attack really takes, with and without a lockout.

password
—
Time to crack — by who is attacking, and how the site stored it
You don't get to choose which column applies — the site does, when it decides how to store your password. Assume the worst one. Rates are stated so you can check the arithmetic rather than trust it.
Length 20
Characters
Rules the site forced on you
NIST SP 800-63B-4 forbids sites from imposing composition rules — the guidance now says verifiers shall not require a mixture of character types. Plenty of sites never got the memo, so the switches are here; they just aren't the point.
Words 6
Separator
Extras
▸ Words are drawn from the EFF long wordlist — exactly 7,776 words, so every word is worth precisely 12.92 bits no matter which one comes up. That is what makes the entropy figure above a fact rather than a guess. Six words beats a twelve-character random password, and you can actually remember it.
Digits 6
⚠ A PIN is for a device that locks after a handful of wrong tries — a phone, a SIM, a door. Read the rate-limited column and ignore the rest: a 6-digit PIN is a million options, which is fine behind a lockout and hopeless anywhere else. Never use a PIN as a website password.
Format
Bytes 32
▸ Tokens are drawn straight from crypto.getRandomValues() with no modulo bias. A 128-bit token (16 bytes, 32 hex characters) can't be guessed; 256 bits is the usual choice for session secrets and signing keys.
How many 10
Uses the settings from the password tab. Each one is generated independently.
⚠ A downloaded file is a plaintext list of passwords sitting in your Downloads folder. Move them into a password manager and delete the file — don't leave it there, and don't email it.
Type or paste a password to analyse
This runs in the page. There is no server to send it to — open your network tab and watch, or turn off your Wi-Fi and try it. It is still not a good idea to paste a password you use into any website, including this one.
▸ Nothing here is transmitted. Generation, analysis and the breach check all run in this page using crypto.getRandomValues() and a word list that ships with it. There is no backend, no logging and no analytics event that carries what you generate. The page loads an anonymous, cookie-free page-view counter and nothing else.

Guide — how to use the pin generator

Generated in your browser with crypto.getRandomValues(); nothing is sent anywhere.

1Pick the length

4 digits is 10,000 options, 6 is a million. Use at least 6 where you can.

2Check the rate-limited column

A PIN is only safe behind a lockout after a few wrong tries. Ignore the offline columns for a phone or door code.

3Do not reuse it

Use a different PIN for the phone, the SIM and the bank card.

4Do not pick a pattern

Birthdays, 1234 and repeated digits are the first guesses. A random PIN has none.

Questions and answers

How random is a generated PIN?

Every digit is drawn independently with crypto.getRandomValues() and no modulo bias, so each PIN of the chosen length is equally likely.

Is a 4-digit PIN safe?

Only behind a lockout. There are 10,000 combinations, so without a limit on wrong tries it falls instantly. Phones and bank cards lock after a few attempts, which is what makes a PIN workable.

How long should a PIN be?

Six digits or more where the device allows it. Each extra digit multiplies the options by ten.

Can I use a PIN as a website password?

No. A website without a strict lockout can be attacked offline or at high speed. Use a long random password or passphrase instead.

Does this page store or send my PIN?

No. It is generated in the page and nothing is transmitted or logged.

Want the full story on entropy, crack times and what NIST SP 800-63B says? See the complete random password generator, which also includes a password checker and bulk export.

Related tools