What this password generator does
The generator builds random passwords from 4 to 128 characters long (16 by default) using any combination of four character sets: lowercase letters, uppercase letters, digits and symbols. You can produce up to 20 passwords in one go, copy any of them with a single click, and see an estimate of each password's strength expressed in bits of entropy.
It is meant for anyone who needs a password nobody could guess: creating a new online account, replacing a password that was reused or exposed in a breach, setting a Wi-Fi key, or filling the password field of a password manager entry. Administrators can also use it to produce a batch of temporary passwords for new users, to be changed at first login.
How to generate a password
- Set the length with the slider or the number field. Sixteen characters is a sound default; go longer whenever the website accepts it.
- Tick the character sets you want: lowercase, uppercase, digits and symbols. If a site rejects certain symbols, untick symbols and compensate with a few extra characters of length.
- Enable “exclude ambiguous characters” if the password will be read on paper or typed by hand, so that characters such as I, l, 1, O, 0 and | are left out.
- Choose how many passwords to generate, from 1 to 20, and click Generate.
- Check the strength indicator, click the copy button next to the password you want, and paste it straight into the website or your password manager.
Which settings for which situation
- Account stored in a password manager: 20 characters or more with all four sets. You will never type it, so length costs you nothing.
- Password you must type on a TV, console or phone keyboard: lowercase and digits only, ambiguous characters excluded, and a longer length (around 20) to keep the entropy high despite the smaller pool.
- Wi-Fi network key: WPA2 and WPA3 personal passphrases accept 8 to 63 characters, so a 20 to 30 character password without ambiguous characters is easy to share and very hard to crack.
- Sites with strict or outdated rules: if a site caps length or forbids some symbols, use the longest length it accepts and keep the sets it allows.
- Batch of temporary passwords: generate up to 20 at once and give each person a different one.
How the randomness and strength are computed
Every character comes from crypto.getRandomValues, the cryptographically secure random number generator of the Web Crypto API, which draws on randomness supplied by your operating system. The tool never uses Math.random, whose output is not designed to be unpredictable.
Turning a random number into a character naively, with a modulo operation, would make some characters slightly more frequent than others whenever the pool size does not divide the range of random values evenly. To avoid this modulo bias, the generator uses rejection sampling: random values that fall into the uneven remainder are discarded and drawn again, so every character in the pool has exactly the same probability.
The generator also guarantees that at least one character from each selected set appears in the password. It places one character from every set, fills the remaining positions from the full pool, then mixes everything with a Fisher–Yates shuffle driven by the same secure random source, so the guaranteed characters do not sit at predictable positions.
Strength is estimated as entropy in bits: length × log2(pool size). With all four sets enabled the pool holds 89 characters, so a 16-character password scores about 16 × 6.48 ≈ 104 bits. The labels are: very weak below 28 bits, weak below 36, reasonable below 60, strong below 100 and very strong at 100 bits or more. Each extra bit doubles the number of guesses an attacker would need.
Privacy: passwords are generated on your device
Passwords are created by JavaScript running in your browser. They are never sent over the network, never written to a database and never stored in cookies or local storage. Once you close or reload the page, they no longer exist anywhere except where you pasted them. The copy button only places the selected password on your clipboard; some systems keep a clipboard history, so clear it if you share your computer.
Limits and good practice
- The entropy figure is accurate only for randomly generated passwords like these. It says nothing about a password you invent yourself, which is usually much weaker than its length suggests.
- Requiring one character from each selected set slightly reduces the theoretical entropy, because passwords missing a set are never produced. The real figure is therefore a little below the displayed one; the difference is negligible for long passwords.
- Excluding ambiguous characters shrinks the pool, which lowers the entropy per character. Add a couple of characters of length to compensate.
- A strong password does not protect you if it is reused. Use a different password for every account and keep them in a password manager.
- Turn on two-factor authentication wherever it is available: it protects the account even if the password leaks.
Frequently asked questions
Is it safe to generate a password on a website?
It is safe when, as here, the password is generated locally by your browser and never transmitted. You can check this yourself by disconnecting from the internet once the page is loaded: generation still works.
How long should my password be?
For passwords stored in a password manager, 16 to 20 characters with all character sets is a solid choice, and longer is better if the site allows it. If you must type the password by hand, prefer more length over more symbols.
What does entropy in bits mean?
It measures how many possibilities an attacker would have to try. A password with n bits of entropy is one among 2 to the power of n equally likely possibilities, so each extra bit doubles the work needed to guess it.
Why exclude ambiguous characters?
Characters such as I, l, 1, O, 0 and | look alike in many fonts. Excluding them avoids errors when a password is read aloud, printed or copied by hand. It slightly reduces the pool, so use a slightly longer password.
Which symbols can appear in the password?
The symbol set is: ! @ # $ % ^ & * ( ) - _ = + [ ] { } ; : , . < > ? / ~. If a website refuses some of them, untick the symbols option and increase the length instead.
Does Toolvance keep a copy of the passwords?
No. Passwords exist only in your browser tab. They are not sent to a server, not logged and not saved, which means they cannot be recovered after you leave the page.
Why does every password contain at least one digit and one symbol?
Only when those sets are ticked: for every selected set, the generator guarantees at least one character from it, because many websites require one of each. The positions are then shuffled randomly.
Can I generate a passphrase made of words?
Not with this tool: it generates passwords made of random characters. Passphrases built from randomly chosen dictionary words are another good option, especially for a master password you need to memorise.