A password generator creates random passwords by drawing characters from selected character sets and reporting the resulting string’s Shannon entropy in bits. The Password Generator performs this work locally in your browser with a cryptographically secure random number generator, so the generated password is never uploaded.

“Random” is not the whole security story. The source of randomness, the way values map to characters, the pool of available symbols, and the password’s length all affect how difficult the result is to guess.

password generator explained
Password Generator Explained: Randomness, Entropy, Safety

Entropy starts with the character pool

Human-created passwords often contain recognizable patterns involving dates, names, familiar words, or repeated substitutions. A generator replaces those personal pattern choices with random draws, but it only produces a suitable secret when its randomness and character selection are designed for security.

The character pool is the set of distinct characters available for each position. Uppercase letters, lowercase letters, digits, and symbols can each be enabled or disabled. With all four groups enabled, this tool’s pool contains 86 distinct characters. Its strength readout uses Shannon entropy, calculated as:

Entropy = password length × log₂(character pool size)

One calculation shows the scale. A 16-character password using the full 86-character pool has approximately 16 × log₂(86) ≈ 16 × 6.43 ≈ 103 bits of entropy. Additional characters add more independent positions, while a larger pool makes each position harder to guess. That is why length is usually the biggest lever: adding characters multiplies the available guesses much faster than making a small change to the character set.

As a rule of thumb, the tool treats fewer than 60 bits as weak, 60 to 100 bits as fair, and 100 or more bits as strong against offline brute-force attacks. These labels describe the generated string under its selected settings. They do not guarantee that a website will accept it, that an account has other protections, or that an attacker cannot obtain it through phishing or malware.

Where every random character comes from

A password needs random values that an attacker cannot predict. JavaScript’s Math.random() is fast, but it is not designed as a cryptographically secure generator, and its output can be predicted from previous values. A secret should not depend on that function.

The tool uses the browser’s crypto.getRandomValues() API instead. The MDN documentation for crypto.getRandomValues() explains how web applications obtain cryptographically strong random values. The important distinction is not merely that the output looks scattered; the source must be designed to resist prediction from values already observed.

There is another subtlety when random values are mapped to characters. A plain modulo operation can give some characters a slightly higher probability when the character count does not divide the random range evenly. That modulo bias can make the result more predictable than its nominal entropy suggests. This generator uses rejection sampling instead: a random value that would fall into the biased remainder range is discarded and redrawn. Every character in the active pool is consequently selected with equal probability.

After selection, the generator guarantees at least one character from each enabled type and shuffles the complete result with the Fisher–Yates algorithm. The shuffle prevents those guaranteed characters from remaining at predictable positions, such as always placing the one uppercase character in the first position.

What each setting changes

Every control affects both the generated password and its entropy estimate. Choose settings that satisfy the destination’s requirements rather than selecting options only to increase a displayed number.

Setting Effect Practical choice
Length Adds positions and increases entropy Start with 16 or more characters when accepted
Uppercase and lowercase Adds the corresponding letter pools Enable both when the destination allows them
Digits Adds numeric choices to the pool Usually enable them
Symbols Expands the available pool Enable unless the destination rejects them
Exclude ambiguous characters Removes 0, O, 1, and l, slightly reducing the pool Useful when a person must transcribe the password
Strength and entropy Reports the estimate for the current length and pool Use it to compare settings, not as a complete account-security verdict

Enabling all four character groups provides the largest available pool, although a service may prohibit symbols or impose other requirements. Excluding ambiguous characters trades a little entropy for passwords that are easier to read and type. For a password stored in a password manager, the full pool is generally the stronger choice; for temporary manual entry, the easier transcription may justify the small reduction.

Generate a password with controlled settings

Use the following workflow to create a candidate that matches the account where it will be used.

  1. Set the length. Use the slider or number box. Longer passwords are stronger because entropy increases with length, so 16 or more characters is a good default when the destination permits it.
  2. Select character types. Toggle uppercase letters, lowercase letters, digits, and symbols. If manual entry matters, optionally exclude ambiguous characters such as 0, O, 1, and l.
  3. Review the strength and entropy. Read the estimate and compare it with the destination’s rules. It describes the generated string under the current settings, not the security of the entire account.
  4. Copy or generate again. Click Copy when you are ready to use the result, or click Generate new password to roll a fresh candidate with the same settings.

If you edit generated text by hand, it is no longer the exact string measured by the tool. Generate another candidate where possible. Copy a result only when you intend to use it, and place it directly in the intended account or password manager rather than leaving it in an unrelated app or message.

Local processing and the clipboard boundary

The generation process runs entirely in your browser. The tool never transmits the generated password over the network, writes it to a server log, or stores it itself. It exists in the browser tab until you copy it, and closing the tab discards it. This local-only design is how a browser-based generator can provide strong randomness without sending the secret to a remote service.

Copying marks the boundary of that protection. The candidate becomes clipboard content, ready to paste into an account form or password manager. The tool makes no claim that it can erase clipboard history afterward, so treat the clipboard and every saved copy as additional instances of the secret.

A dependable routine is to use a separate generated result for each service and store it in a trusted password manager. The OWASP Authentication Cheat Sheet likewise favors long, unique credentials and password-manager use over reusing or trying to memorize the same password across accounts.

Reading the strength estimate responsibly

The entropy score is a model of the generated string, not a complete security verdict. It assumes that characters are drawn from the selected pool, which the unbiased selection method supports. It does not establish whether the destination account is well protected or whether another party has captured the password.

The generator also does not manage an account inventory, so it cannot guarantee that a candidate has never appeared elsewhere. Uniqueness comes from your operating routine: create and store a separate result for each site. Avoid reusing a password because its score looks good; a strong score cannot repair reuse after one account is compromised.

Modern guidance from NIST and OWASP favors long passwords or passphrases over forced composition rules and recommends screening candidates against known breached-password lists. Breach screening is not part of this generator’s verified workflow, so it should be treated as a separate check. A sound routine is to choose 16 or more characters when allowed, enable every character group the destination permits, exclude ambiguous characters only when easier transcription outweighs the small entropy loss, and store each result in a password manager.

Related reading: Password Strength Checker Cheat Sheet: Rules and Limits.

Related reading: Password Generator for Beginners: A Safe First Workflow.