Overview

Generate strong and secure passwords with our random password generator.

Use this tool when you are signing up for a new account, rotating a password after a breach notice, or setting up Wi-Fi, a router or a shared login and want something nobody could guess. You choose a length from 4 to 128 characters and which kinds of characters it may contain, and the result is a single string drawn with your device's cryptographically secure random number generator, with at least one character from every type you ticked. The length and pool size together decide how hard the password is to brute-force, so the result is only as strong as the settings you pick. Paste it straight into a password manager rather than writing it down.

Formula and example

Type size={26lowercase or uppercase letters10numbers24special characters\displaystyle \text{Type size} = \begin{cases} 26 & \text{lowercase or uppercase letters} \\ 10 & \text{numbers} \\ 24 & \text{special characters} \end{cases}
Pool size=∑ticked typesType size\displaystyle \text{Pool size} = \sum_{\text{ticked types}} \text{Type size}
Pool draws=Length−Types ticked\displaystyle \text{Pool draws} = \text{Length} - \text{Types ticked}
Combinations≈Pool sizeLength\displaystyle \text{Combinations} \approx \text{Pool size}^{\text{Length}}
Entropy≈Length×log⁡2(Pool size) bits\displaystyle \text{Entropy} \approx \text{Length} \times \log_2(\text{Pool size}) \text{ bits}

Where:

Type size
— How many characters one ticked character type contributes to the pool.
Pool size
— The number of characters the password can be drawn from, for example 62 for letters plus numbers or 86 with special characters added.
Length
— The password length you enter, a whole number from 4 to 128.
Types ticked
— How many character types are ticked, from 1 to 4; one random character is drawn from each so every ticked type appears.
Pool draws
— The remaining characters, each drawn from the whole pool with the device's cryptographically secure random number generator before the password is shuffled.
Combinations
— The approximate number of different passwords the settings allow; slightly fewer can actually be produced because a password missing a ticked type is never generated.
Entropy
— The password strength in bits, a standard measure of how hard it is to guess by brute force.

Worked example

A 10-character password with lowercase, uppercase and numbers ticked and special characters off (the calculator's default inputs).

  1. Pool size

    26+26+10=62\displaystyle 26 + 26 + 10 = 62
  2. Pool draws after one guaranteed character per type

    10−3=7\displaystyle 10 - 3 = 7
  3. Combinations

    6210≈8.39×1017\displaystyle 62^{10} \approx 8.39 \times 10^{17}
  4. Entropy

    10×log⁡2(62)≈10×5.954≈59.5 bits\displaystyle 10 \times \log_2(62) \approx 10 \times 5.954 \approx 59.5 \text{ bits}

Result

The calculator shows one random 10-character password with at least one lowercase letter, one uppercase letter and one digit. These settings give about 59.5 bits of entropy (about 59.3 bits once passwords missing a type are excluded); length 16 with special characters gives about 102.8 bits.

FAQs

How long should a password be in 2026?

For online accounts, 16 characters drawn from upper and lowercase letters, numbers and symbols is a solid target, giving roughly 103 bits of entropy. A 10-character password from letters and digits only has about 60 bits, which is far weaker against offline cracking. Each extra character multiplies the number of possible passwords by the size of the character pool.

What makes a password secure?

A secure password is long, random and used for only one account. Randomness matters more than clever substitutions like replacing a with @, because attackers' tools already try those patterns. Aim for at least 12 to 16 random characters from a mix of character types, and turn on two-factor authentication where it is offered.

How many possible passwords are there with 12 characters?

With lowercase, uppercase and numbers enabled the pool is 62 characters, so there are up to 62 to the power of 12, or about 3.2 × 10²¹ possible passwords, which is about 71 bits of entropy (a little less in practice, because each ticked type must appear at least once). Using lowercase letters only drops the pool to 26 and the strength to about 56 bits. Adding the 24 special characters raises the pool to 86 and the strength to about 77 bits.

Does the generated password always include a number or symbol?

Yes. The generator first picks one random character from each type you ticked, fills the rest of the length from the combined pool, then shuffles the result so those guaranteed characters can land anywhere. This is why the minimum length is 4: with all four types ticked, every type needs at least one position.

How should I store my passwords?

Use a reputable password manager so every account can have its own long random password without you having to remember it. Never reuse a password across accounts, and avoid storing passwords in plain text files, notes apps or emails.

How often should I change passwords?

Change a password right away if the service reports a breach or you suspect someone else knows it. Otherwise, current guidance from bodies such as NIST says routine forced changes are not needed if your passwords are strong, unique and protected with two-factor authentication.

How to use

Pick a length and the character types you want, then copy the generated password into your password manager.

  1. Enter the password lengthType a whole number from 4 to 128 into Password Length. The default is 10, but 16 or more is a better choice for most online accounts; use whatever maximum the site allows if it is lower.
  2. Choose lowercase and uppercase lettersLeave Include Lowercase Letters and Include Uppercase Letters ticked to draw from all 52 letters. Untick one only if a system rejects mixed case. At least one character type must stay ticked.
  3. Choose numbers and special charactersInclude Numbers adds the digits 0 to 9, and Include Special Characters adds 24 symbols such as ! @ # $ and %. Turn on special characters unless the site you are using rejects symbols.
  4. Read and copy the generated passwordThe Generated Password box shows one random string of exactly the length you entered, containing at least one character from every type you ticked. Check it meets any other rules the site has, then copy it into your password manager.

Assumptions

  • Characters are chosen with the Web Crypto API's crypto.getRandomValues, a cryptographically secure random number generator; if the device does not provide it, no password is generated rather than falling back to a weaker source.
  • Length must be a whole number from 4 to 128, and at least one character type must be ticked; every ticked type appears at least once.
  • The special character set is fixed at 24 symbols (!@#$%^&*()_+[]{}|;:,.<>?) and cannot be customised, and look-alike characters such as l, 1, O and 0 are not excluded.
  • The password is generated on your device and the tool does not display a strength score or check it against known breached passwords.

Explore more