Password Generator

Create strong, random passwords on your own device, choose the length and character types, and see how strong each password is.

Password generator
Include
Strength

    Passwords are created on your device with your browser's cryptographically secure random number generator. They are never sent anywhere or stored.

    On this page

    The password generator creates strong, random passwords on your own device, using your browser’s cryptographically secure random number generator. A 16-character password using uppercase and lowercase letters, numbers and symbols draws from 87 possible characters and carries about 103 bits of entropy, far more than any computer could guess by trying every combination. Choose the length and character types you need, generate up to 10 passwords at once and copy the one you like.

    Nothing you generate is sent over the internet or saved. The passwords exist only on your screen until you copy them into your password manager or account settings.

    How to use the password generator

    1. Set the length. 16 characters is a good default for most accounts. Use 20 or more for email, banking and password manager master passwords if you won’t need to type them often.
    2. Choose the character types. Uppercase letters, lowercase letters, numbers and symbols are all ticked by default. Untick any that a website doesn’t accept.
    3. Avoid look-alike characters if you’ll need to read or type the password by hand. This removes I, l, 1, O and 0, which are easy to confuse.
    4. Select Generate passwords. Each password is guaranteed to contain at least one character from every type you ticked, and the strength rating shows how hard it would be to guess.
    5. Select Copy next to the password you want, then paste it into the sign-up form or your password manager.

    What makes a password strong?

    A password’s strength depends on how many guesses an attacker would need. That’s measured in bits of entropy. Each extra bit doubles the number of possible passwords.

    Entropy = length × log₂(number of possible characters)

    • Digits only: 10 possible characters, about 3.3 bits each. An 8-digit PIN has about 27 bits.
    • Letters and digits: 62 characters, about 5.95 bits each. A 12-character password has about 71 bits.
    • Letters, digits and symbols: 87 characters in this generator, about 6.44 bits each. A 16-character password has about 103 bits.

    Length matters more than complexity. For a 16-character password of letters and numbers, adding all the symbols raises the entropy from about 95 to 103 bits, while adding just two more letters or numbers raises it to about 107 bits. That’s why security guidance from organisations such as the US National Institute of Standards and Technology (NIST) and the UK National Cyber Security Centre focuses on long passwords and passphrases rather than complicated rules.

    How the strength rating works

    EntropyRatingSuitable for
    Under 40 bitsWeakLow-value or temporary use only
    40 to 59 bitsFairAccounts with extra protection such as lockouts
    60 to 79 bitsStrongMost online accounts
    80 bits or moreVery strongEmail, banking, work and master passwords

    These figures assume the password is truly random, as it is here. A password you invent yourself, such as a word with a number and symbol added, has far less real entropy than its length suggests, because attackers try common patterns first.

    How long would it take to crack?

    The time depends on how fast an attacker can guess. Websites usually limit login attempts, so online guessing is slow. The real danger is an offline attack, where criminals steal a database of hashed passwords and test guesses on powerful hardware. Against a weak hashing method, a well-equipped attacker might try around a trillion guesses per second. At that speed, the time to try every possible random password is roughly:

    EntropyExampleTime to try every combination
    27 bits8 random digitsA fraction of a millisecond
    40 bits7 random letters and digitsA few seconds
    60 bits10 random letters and digitsAbout 13 days
    71 bits12 random letters and digitsAbout 75 years
    80 bits13 to 14 random letters and digitsAbout 38,000 years
    103 bits16 random characters with symbolsHundreds of billions of years

    On average, an attacker finds a password after searching half the possibilities, so the typical time is about half these figures. Websites that store passwords with slow, modern hashing methods make every guess far more expensive, but you can’t tell how a site stores your password, so it’s safest to assume the worst and choose a long random one.

    Why random generation matters

    People are bad at being random. We choose words, names, dates and keyboard patterns, and we make predictable substitutions such as replacing “a” with “@”. Password-cracking tools are built around these habits and around lists of billions of real leaked passwords. A generated password avoids every pattern.

    This generator uses crypto.getRandomValues, the browser’s cryptographically secure source of randomness, rather than an ordinary random function. It also uses rejection sampling, so every character in the pool is exactly as likely as every other, with no bias towards particular letters. After making sure each selected character type appears at least once, it shuffles the whole password so those characters don’t always sit in the same positions.

    Good password habits

    • Use a different password for every account. When one website is breached, attackers try the same email and password on other sites. Unique passwords stop one breach spreading.
    • Use a password manager. It remembers your passwords so you don’t have to, fills them in automatically and can generate them too. You only need to remember one strong master password.
    • Turn on two-factor authentication. A code from an app, a security key or a passkey protects the account even if a password is stolen.
    • Change a password when there’s a reason. Current guidance says forced regular changes often lead to weaker passwords. Change one if a service reports a breach or you think it has been exposed.
    • Don’t share passwords by email or message. If you must share access, use a password manager’s sharing feature.

    Passwords that are easy to type

    Some passwords have to be typed by hand, for example on a smart TV, a games console or a Wi-Fi network. For these, tick Avoid look-alike characters, consider leaving out symbols, and make the password longer to keep its strength. A 20-character password of letters and numbers has about 119 bits of entropy, more than a 16-character password with symbols.

    Another option for passwords you need to remember is a passphrase of four or more random, unrelated words. A random choice of words is the key: a phrase from a song or a book is easy to guess.

    Passwords and passkeys

    Many services now offer passkeys, which let you sign in with your phone, computer or a security key using a fingerprint, face scan or device PIN. A passkey can’t be guessed, reused or typed into a fake website, so it’s a good choice wherever it’s available. Most people will still need passwords for years to come, though, and a strong random password stored in a password manager remains the best option for any account that doesn’t support passkeys.

    Website password rules

    Some sites limit length or reject certain symbols. If a generated password is refused, untick Symbols or shorten the length to the site’s maximum, and generate again. If a site sets a very short maximum length, such as 12 characters, use the full length allowed and enable two-factor authentication if it’s offered.

    Is it safe to use an online password generator?

    It’s safe when the password is generated on your device and never transmitted, which is how this tool works. The code runs entirely in your browser, makes no network requests with your passwords and keeps no record of them. Once you close or refresh the page, the generated passwords are gone. For extra peace of mind, you can generate a password, copy it straight into your password manager, and never write it down anywhere else.

    Related calculations

    For related questions, use the Base64 encode decode tool to encode text to Base64 or decode it back, or the bandwidth calculator to work out download times and the speed you need.

    Frequently asked questions

    At least 12 characters, and 16 or more for important accounts. Longer random passwords are much harder to crack.

    Yes. They use your browser's cryptographically secure random number generator, and every character in the pool is equally likely.

    With this tool, yes. Passwords are created in your browser and are never sent to a server or stored.

    A measure of how unpredictable a password is, in bits. Each extra bit doubles the number of guesses an attacker would need.

    Symbols add strength, but length adds more. If a site rejects symbols, untick them and make the password a few characters longer.

    With letters, numbers and symbols from this generator, about 103 bits of entropy, which is far beyond what brute-force attacks can reach.

    Characters that are easy to confuse, such as capital I, lowercase l and the number 1, or capital O and zero. Removing them makes passwords easier to read and type.

    Use a password manager to store it. For the few passwords you must remember, a passphrase of four or more random words is easier to recall.

    Current guidance says no, unless there's a reason such as a data breach. Use a unique, strong password for each account instead.

    Yes. Choose how many passwords you want, up to 10, and copy the one you prefer.