πŸ”

Password Generator

βœ“ Free & no signup πŸ”’ Runs 100% in your browser Updated 2026-11-25 Other Tools

Reused and guessable passwords remain the single most common cause of account takeovers. This tool creates genuinely random passwords right in your browser, using your operating system's cryptographic random number generator. Nothing you generate is transmitted, logged, or stored anywhere; the password exists only on your screen and in your clipboard until you close the tab.

You control every parameter: a length slider from 4 to 64 characters, toggles for lowercase letters, uppercase letters, numbers, and symbols, plus an option to exclude ambiguous characters such as lowercase L, the digit one, uppercase I, uppercase O, and zero. An entropy-based strength meter updates as you adjust the settings, a copy button puts the password on your clipboard, and a batch mode generates 5 strong passwords at once when you need several credentials.

This page also explains the math behind the strength meter, because understanding why a 16-character random password resists cracking is more useful long term than any single password the tool produces.

What Makes a Password Strong?

Password strength comes down to three things: length, character variety, and true randomness. Length matters most because it multiplies the possibilities; variety matters because a bigger character pool means more possibilities per character. Security researchers measure this in bits of entropy. Every additional bit doubles the number of guesses an attacker would need, so the scale grows fast: 40 bits is weak against serious attackers, 60 bits is reasonable, and 80 bits or more is considered very strong.

The entropy of a random password is calculated with a simple formula: bits per character times the number of characters, where bits per character equals the base-2 logarithm of the size of the character pool. A lowercase-only pool of 26 letters gives about 4.7 bits per character. Using all four character sets, roughly 26 lowercase plus 26 uppercase plus 10 digits plus 32 symbols, gives a pool of about 94 characters and about 6.55 bits per character.

Character sets enabledPool sizeBits per character
Lowercase only264.70
Lowercase plus uppercase525.70
Plus numbers625.95
Plus symbols946.55

Entropy at Different Lengths: Real Numbers

Combining the formula with real lengths shows why length dominates. The table below assumes all four character sets are enabled, about 6.55 bits per character, and an offline attacker trying 1 trillion guesses per second, which is a realistic figure for modern GPU cracking rigs.

LengthTotal entropyAverage time to crack at 1 trillion guesses per second
8 charactersabout 52 bitshours
12 charactersabout 79 bitsthousands of years
16 charactersabout 105 bitsbillions of years
20 charactersabout 131 bitsbeyond any practical brute force

These estimates assume the password is truly random. Human-chosen passwords do not behave this way, because people pick words, names, and patterns that attackers test first with dictionaries and rules. Randomness is exactly what this tool guarantees and what human memory reliably fails to provide.

How to Use the Generator (Step by Step)

  1. Set the length with the slider. 16 is a strong default for most accounts; go to 24 or higher for master passwords and anything guarding money.
  2. Enable the character sets the target site allows. More sets mean more entropy per character; if a site rejects symbols, length compensates.
  3. If you will ever have to type the password by hand, turn on exclude ambiguous characters to remove l, 1, I, O, and 0, which look alike in many fonts.
  4. Click generate and read the strength meter. Aim for the top band, roughly 80 bits of entropy or more.
  5. Use the copy button to paste the password directly into the signup or password-change form, ideally into a password manager rather than a sticky note.
  6. Need several credentials at once? Batch mode generates 5 passwords in one click, all meeting the same rules.

Why crypto.getRandomValues Matters

Not all randomness is equal. The JavaScript function Math.random produces numbers from a deterministic algorithm whose internal state can, in principle, be reconstructed from a few observed outputs. It is fine for games and animations, but it is not acceptable for credentials. This tool instead uses crypto.getRandomValues, which draws from your operating system's cryptographically secure random source, the same entropy pool that generates encryption keys.

Uniform selection is the second half of doing this correctly. A naive approach that maps a random number onto the character pool with simple modulo arithmetic slightly favors some characters over others, which quietly shrinks the real entropy below the theoretical value. This tool maps the random values uniformly across the pool so every character has exactly the same chance of appearing, and the entropy math on the meter stays honest.

What Does Exclude Ambiguous Characters Do?

When a password will be read off a screen and typed manually, into a TV, a printer panel, or a colleague's machine, characters that look alike cause real errors: lowercase L versus the digit one, uppercase I versus lowercase L, uppercase O versus zero. Enabling the exclusion removes l, 1, I, O, and 0 from the pool, shrinking it from 94 to 89 characters. The cost is tiny: a 16-character password drops from about 105 bits to about 104 bits, a negligible loss for a large gain in transcription reliability.

Batch Mode and Best Practices

Batch mode generates 5 passwords per click. It is handy when onboarding several team members, rotating multiple service credentials at once, or when you want to generate a few and pick one to use while safely discarding the rest; every password in the batch is equally strong and none has been seen by any server.

  • Use a unique password for every account. One breach should never cascade into ten.
  • Store passwords in a reputable password manager instead of a browser profile you do not control or a notes app without encryption.
  • Turn on multi-factor authentication wherever it is offered. It protects you even if a password does leak.
  • For a password you must memorize, such as the master password of a manager, prefer a long random passphrase of four or more unrelated words over a short password.
  • Never send passwords by email or chat. Share credentials through the password manager's own sharing feature or a one-time secret link.

Frequently Asked Questions

How long should a password be?
For a truly random password, 12 characters with all character sets is a sensible minimum, giving about 79 bits of entropy, and 16 characters giving about 105 bits is a better default. Length matters more than exotic symbols: a 12-character lowercase-only password carries only about 56 bits, while a 16-character mixed-set password exceeds 100. For master passwords and financial accounts, go to 20 characters or use a four-or-more-word random passphrase. Anything under 8 characters, even with symbols, can fall to offline cracking in hours.
Is this password generator safe to use?
Yes, on two grounds. First, the randomness comes from crypto.getRandomValues, your browser's interface to the operating system's cryptographically secure random source, not from the predictable Math.random. Second, everything happens locally: the password is generated in the tab, displayed, and copied to your clipboard without any network request, so no server ever sees or stores it. You can verify the second claim yourself by watching the network tab in your browser's developer tools while generating passwords. Nothing is logged and nothing is sent.
What are ambiguous characters and should I exclude them?
Ambiguous characters are the pairs that look nearly identical in many fonts: lowercase L, the digit one, uppercase I, uppercase O, and the digit zero. If you ever transcribe a password by hand, these cause mistakes that can lock you out at the worst moment. Excluding them shrinks the character pool from 94 to 89, cutting a 16-character password's entropy from about 105 bits to about 104. That is a negligible security cost, so enable the exclusion for hand-typed passwords and leave it off when you only ever paste.
How is password strength calculated here?
The meter uses entropy math, not rules of thumb. It multiplies the bits per character, the base-2 logarithm of your enabled character pool, by the password length. A 12-character password with all four sets enabled scores about 79 bits. Roughly speaking, under 40 bits is weak, 40 to 60 is fair, 60 to 80 is strong, and above 80 is excellent. The calculation assumes true randomness, which is why the tool's cryptographic generator matters: the same math on a human-chosen password would wildly overestimate real strength.
Why not just make up my own password?
Humans are terrible randomizers. We choose pet names, birthdays, keyboard walks like qwerty, and predictable substitutions such as a for at-sign, and cracking tools test all of these patterns first. Studies repeatedly find that most human-chosen passwords sit well below 30 bits of effective entropy, where a random 8-character mixed-set password already has about 52. Even a random-looking personal string is usually built from words and rules an attacker's dictionary covers. Generating with a cryptographic source is the only way to actually get the entropy the math promises.
What is the batch mode for?
Batch mode generates 5 passwords in a single click, all obeying the same length, character set, and ambiguity rules you configured. Typical uses: onboarding several team members and issuing each a distinct initial credential, rotating a group of service passwords at the same time, or generating a handful and choosing one while discarding the rest, since each is equally strong and none has left your browser. It saves the round trip of clicking generate and copy five separate times.

Related Tools