Home / Free tools / Text & Data / Password Generator
Password Generator
Generate strong random passwords on your device. Choose the length and types of characters and see the entropy. Passwords are never sent, saved or put in the page address.
Runs in your browser. Nothing you paste or choose is uploaded or stored.
What this password generator does
This tool makes random passwords of the length and character types you choose, from 4 to 128 characters, and tells you how strong each one is in bits of entropy. The passwords are made on your device with the browser's cryptographic random number generator. They are never sent to a server, never stored, never written into the page address and never logged, so a password that you see here exists only on your screen until you close the page.
A random password is the strongest kind a person can use, and the only kind a human can not choose well. People pick patterns: a word, a name, a year and an exclamation mark at the end. Attackers know those patterns and try them first. A generator has no patterns to guess.
How the passwords are made
- Real randomness. The tool uses
crypto.getRandomValues, the same source of randomness that browsers use for encryption keys, notMath.random, which is predictable and unsuitable for secrets. - No bias. To pick one character from a pool of, say, 86, a naive program takes a random number modulo 86, which makes some characters slightly more likely. This tool throws away random values that would cause that bias and draws again, so every character is equally likely. The unit tests check this with a chi-square test and by counting every character over thousands of passwords.
- Every chosen type appears. If you tick lowercase, uppercase, digits and symbols, each password contains at least one of each, which satisfies the rules of sites that insist on it. The positions are shuffled with the Fisher-Yates algorithm so the guaranteed characters are not always at the start.
- Look-alike characters can be left out for passwords you will read aloud or type by hand. This slightly reduces the pool and the strength, and the entropy figure is adjusted.
Entropy: what the number means
Entropy in bits is length x log2(pool size). It measures how many guesses an attacker needs: each extra bit doubles the work. The pool is the number of different characters available: 26 lowercase, 26 uppercase, 10 digits and 24 symbols. The label is a simple guide: under 40 bits is weak, 40 to 59 fair, 60 to 79 good, 80 to 109 strong and 110 or more very strong.
Worked example
A password of 16 characters with lowercase, uppercase and digits uses a pool of 26 + 26 + 10 = 62 characters. Its entropy is 16 x log2(62) = 16 x 5.954 = 95 bits, which the tool labels strong. With all four types the pool is 86 characters, and a 12-character password has 12 x log2(86) = 77 bits, labelled good. For comparison, an 8-digit PIN has 8 x log2(10) = 27 bits and is labelled weak. If an attacker with stolen password hashes could test ten billion guesses per second, which is a fast offline attack, trying every 8-digit PIN would take about a hundredth of a second, every 77-bit password about half a million years, and every 95-bit password about a hundred billion years, several times the age of the universe. These figures describe the worst case of an offline attack on a fast hash. Websites that limit login attempts are far harder to attack, and slow hashes make each guess more expensive.
How to use passwords well
- Use a different password for every account. The most common way accounts are taken over is a password that leaked from another site.
- Store them in a password manager, so that you only need to remember one strong passphrase. Do not keep them in a note or a spreadsheet.
- Prefer length. Current NIST guidance on digital identity (SP 800-63B) favours longer passwords and password managers over complicated composition rules. When a site allows it, 16 or more characters is a good choice for anything important.
- Turn on two-step verification, an authenticator app or a security key, for email, banking and shop accounts.
- Need to pair a password with a link or code? The QR code generator can share a Wi-Fi password as a code that your guests scan, and other generators are on the Text and data page.
Privacy and limits
Nothing is uploaded. The settings are not saved either, so every visit starts with the defaults. Copying uses your clipboard, which other programs on your device may be able to read; clear it after use if you share a computer. This generator makes character passwords only, not word-based passphrases. You can check how long a password is with the word counter.
Questions
Are the passwords really random?
Yes. They come from the browser's cryptographically secure random generator, with a method that avoids bias, so every allowed character is equally likely at every position.
Is the generated password sent or stored anywhere?
No. It is created in your browser, shown on your screen and gone when you leave the page. It is not placed in the address bar, saved in the browser or sent to our server.
How long should my password be?
For important accounts use 16 characters or more and a password manager. Length adds more strength than complexity: every extra character multiplies the number of guesses needed.
What does the bits figure mean?
It is the entropy, length x log2(pool size). Each bit doubles the number of guesses an attacker needs. 80 bits or more is strong against even a determined offline attack.
Why leave out characters like l, 1, O and 0?
They look alike in many fonts, which causes mistakes when you type a password from paper or read it aloud. The cost is a slightly smaller pool, which the entropy figure accounts for.
Why does every password contain one of each type I chose?
Many sites require at least one lowercase, uppercase, digit and symbol. The generator guarantees that, then fills the rest at random and shuffles. The entropy figure is a slight overestimate in this case, by a fraction of a bit for long passwords.
Can I use this offline?
Once the page has loaded, the generator needs no network connection, because everything is done by your browser.
Google, Merchant Center, YouTube, LinkedIn, Indeed, Glassdoor and Shopify are trademarks of their owners. Van Born Labs is independent and not affiliated with them. Google's own help pages are the final word on its rules.