PIN Generator
Choose a length.
About this tool
Digits are chosen with the browser random source.
The PIN is not stored and is not sent to analytics.
How to use it
- Open this page and provide the input it asks for.
- Set the options that are visible, then use Generate PIN.
- Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.
Limitations
- The PIN is not stored and is not sent to analytics.
Digits 0-9, length 4 to 12
The draw
The length control allows integers 4 through 12 and starts at 4. Each position is the decimal of randomInt(10). That helper reduces crypto.getRandomValues’ 32-bit cell modulo ten, so every position is a digit, zero and one included. The digits are concatenated. There is no alphabet that drops lookalikes. A PIN can start with zero, and that zero is part of the string, not a numeric truncation. The status line tells you the digits were produced on this device and are not stored. The site does not send them to analytics.
Modulo 10 against a uint32 is not a perfectly even die, because 2^32 is not divisible by 10. The tilt is small. The implementation does not use rejection sampling to remove it. For a PIN fixture or a code you will type once, that is the generator you are running.
How this differs from a password
The password page refuses lengths under 8, refuses lengths over 128 only at its own cap, and drops digit zero, digit one, capital o, capital i, and the ell. A four-digit PIN is exactly what that page will not emit. This page will not emit letters or the symbol set. If a form asked for a mixed-case secret, you are on the wrong generator. If a form asked for four to twelve digits and allows leading zeros, you are on the right one. The random-number page emits integers one per line and can drop leading zeros because they are numbers. Here the result is text, so leading zeros survive.
Four digits are a small space
A four-digit draw is a weak stand-in for a password on an account that faces the internet. Guessing that space is cheap. The page still emits one, because some locks, test harnesses, and offline devices really do want four digits. A cryptographic key or an IV should not be these digits. Weak patterns such as 0000 or 1234 are not filtered. Those sequences are legal outputs of independent digits. There is no denylist. Generate, copy, and store the PIN in whatever system asked for it. The panel is not a vault.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

