How This Password Generator Works

For anyone wondering if a web password generator is safe: how this site makes passwords on your device, and how to check it yourself.

Nothing leaves your browser. Every password, passphrase, and key on this site is generated on your device with the Web Crypto API. Nothing is sent to a server or saved, and you can confirm that in your browser's Network tab.

Quick password

    More options

    On this page

    What happens when you press Generate

    How a password is made on this siteFour steps inside your browser: random bytes from Web Crypto, rejection sampling picks characters, positions are shuffled, and the password is shown on the page. No network request is made at any step. Your browser Web Cryptorandom bytes Pick characters(no bias) Shufflepositions Shown onthis page No network request at any step
    1. Your browser asks its built-in cryptographic random number generator for random bytes using crypto.getRandomValues(), part of the Web Crypto API.
    2. The page turns each random value into a character from the set you chose. Values that would make some characters more likely than others are thrown away and redrawn (this is called rejection sampling), so every character in the set has the same chance.
    3. If you asked for at least one of each character type, the page places one of each first, fills the rest from the full set, then shuffles every position with the same random source.
    4. The password is written into the page. It isn't sent to a server, saved to a cookie, or written to browser storage.

    The only thing this site stores in your browser is your light or dark theme choice, under the key rpc-theme.

    Why browser crypto and not Math.random

    JavaScript has two ways to get random numbers. Math.random() is fast but isn't designed for security, and its output can be predictable. crypto.getRandomValues() is the browser's cryptographically secure generator, seeded by the operating system. MDN documents it as the method to use for security-sensitive values, with a limit of 65,536 bytes per call. Every tool on this site uses the crypto method.

    The API key generator also uses crypto.randomUUID() for its UUID format, which produces version 4 UUIDs with 122 random bits.

    How the generator avoids bias

    A random byte has 256 possible values. If a character set has 94 characters, 256 doesn't divide evenly by 94, so mapping bytes straight to characters with a remainder (the modulo operation) would make the first few characters slightly more common. This site draws 32-bit values and rejects any value in the uneven tail at the top of the range, then redraws. The result is a uniform pick from the set, which is what the entropy figures assume.

    How the strength figures are calculated

    For a randomly generated password, strength in bits is length multiplied by log2 of the number of possible characters. A 16-character password from all 94 printable ASCII characters has 16 × log2(94) ≈ 104 bits. Each added bit doubles the number of possibilities.

    That formula only holds for random passwords. A password a person makes up, like a word plus a year, has far less real strength than the formula suggests, which is why the strength checker looks for words and patterns instead of just counting character types.

    The labels on this site are: under 60 bits Weak, 60 to 79 Fair, 80 or more Strong.

    What ads and analytics can see

    This site counts page views with Umami, an analytics tool we host ourselves that works without cookies. The script is set up to send only a small page-view message (page address, referrer, browser, device, screen size, language, and approximate location), and it is not given any password you generate or type. You can check that in your browser's network tab. The site doesn't run ads today. If ads are added later, the ad scripts would run on the same page, so the plan is to keep them out of the tool panels and keep passwords out of anything a script could read by page URL or form submission: generated passwords never go into the address bar, and none of the tools submit a form. The privacy policy will be updated before any third-party script is added.

    How you can check this yourself

    1. Open your browser's developer tools and go to the Network tab.
    2. Generate a few passwords.
    3. You'll see no new requests when you press Generate or Copy. You can also load a tool page, turn off your internet connection, and keep generating.

    Frequently asked questions

    Can this site see the passwords I generate?

    No. Passwords are made in your browser and are never sent to a server, so there's nothing for the site to see or log.

    Does the site work offline?

    Once a tool page has loaded, yes. Generation doesn't need a network connection.

    Is a browser generator as good as a password manager's generator?

    Both use a cryptographically secure random source, so the passwords are equally strong. A password manager adds the part this site doesn't do, which is saving the password for you.

    Related guides and tools

    Sources

    1. Crypto: getRandomValues() method, MDN Web Docs
    2. Crypto: randomUUID() method, MDN Web Docs
    3. NIST SP 800-63B-4: Authentication and Authenticator Management, National Institute of Standards and Technology