Random Password Generator

Get a genuinely random password — not a pattern that only looks random. Every character is drawn independently from your device’s cryptographically secure random number generator.

Strength: –

Choose between 4 and 128 characters.

Characters to include

Recent passwords

    What “random” really means for a password

    Humans are terrible at being random. Asked to “make up something random”, people favour certain letters, put capitals at the start, numbers at the end and a ! after that. Cracking tools know these habits and test them first. A random password generator removes the human from the process: every position is chosen independently, and every allowed character is equally likely.

    That second property is easy to get wrong. Many simple scripts take a random 32-bit number and use % charset.length. Because 4,294,967,296 is not evenly divisible by, say, 94, the first characters of the set come up slightly more often. This tool uses rejection sampling — it discards the few random values that would cause bias — so the distribution is perfectly uniform.

    Where the randomness comes from

    The generator calls crypto.getRandomValues(), which is fed by your operating system’s cryptographic random source (the same one used to create TLS keys for HTTPS). It is designed so that past outputs reveal nothing about future ones. Math.random(), by contrast, is a fast statistical generator that is not meant for secrets — its internal state can be reconstructed from a handful of outputs.

    How many random passwords are possible?

    Possible random passwords by character set and length
    Character setSize12 characters16 characters
    Digits only1040 bits53 bits
    Lowercase letters2656 bits75 bits
    Letters + digits6271 bits95 bits
    All printable ASCII9479 bits105 bits

    Each bit doubles the number of guesses needed. Around 80 bits is out of reach for any realistic brute-force attack today; this tool shows the exact figure for your settings in the strength meter.

    Random password vs. random passphrase

    A random character string packs the most strength into the fewest characters, which makes it ideal for anything stored in a password manager. If you have to remember the secret — your computer login or the manager’s master password — a random passphrase made of whole words gives the same security with far less effort. Both are random; they just use different “alphabets”.

    Good habits with random passwords

    • Generate a new one for every account — never reuse.
    • Let a password manager or your browser’s built-in manager remember them.
    • Turn on two-factor authentication wherever it is offered; see our TOTP tool to understand how those 6-digit codes work.

    Last updated: · Reviewed by the Password Generator team

    Frequently asked questions

    Is a computer-generated password really random?

    Yes, when it uses a cryptographically secure generator such as the Web Crypto API. Its output is unpredictable even to someone who has seen earlier passwords, which is the property that matters for security.

    Why not just use Math.random()?

    Math.random() is fine for games and animations but is not designed for secrets: with enough outputs its internal state can be predicted. Password tools should always use crypto.getRandomValues().

    Does this tool guarantee at least one of each character type?

    Yes. When several character types are selected, at least one character of each is included and the positions are shuffled, so sites with composition rules accept the result.

    Can two people get the same random password?

    With 16 characters from 94 symbols there are about 4 × 10³¹ possibilities. The chance that any two given passwords match is about 1 in 4 × 10³¹ — a collision is not a practical concern.