Codepackr / utilities / Password Generator

Password Generator

Generate secure, uncrackable passwords with custom character sets and entropy scores.

Client-Side Execution & Privacy Guarantee

This utility executes 100% locally in your web browser. Your inputs, tokens, queries, and data payloads are never transmitted to any external server or backend.

A good password is long, random and drawn from a large character set so that brute-force and dictionary attacks become impractical. This generator uses a cryptographically secure random source to produce such passwords entirely in the browser.

You control the length and which character classes are allowed. The tool also shows an entropy estimate so you can see how the chosen options affect resistance to guessing.

Character classes and entropy

The four standard classes are uppercase letters, lowercase letters, digits and a curated set of symbols that are widely accepted by websites and operating systems. Enabling more classes increases the size of the search space exponentially.

Entropy is calculated as length × log2(alphabet size). A 16-character password using all four classes typically exceeds 100 bits, which is considered strong for most purposes. The displayed estimate updates instantly as you change the settings.

Avoiding ambiguous characters

Some users prefer to exclude characters that look alike (0/O, 1/l/I) or that are awkward to type on mobile keyboards. The tool offers an “avoid ambiguous” option that removes those glyphs while still keeping the alphabet large enough for high entropy.

Symbols that frequently cause escaping problems in shells or URLs (quotes, backslashes, spaces) are omitted by default. You can add a custom symbol list if a particular system requires a different set.

Practical password policy alignment

Many sites enforce minimum length, required classes, or a ban on common passwords. The generator lets you match those rules exactly so the password you create will be accepted on the first try.

Because the output is pure random data, it will not contain dictionary words or keyboard patterns. That property satisfies even strict “no common passwords” checks.

When to use this tool

  • Creating a new account password
  • Generating a temporary password for a colleague
  • Producing a high-entropy secret for an API key or token
  • Replacing a weak or reused password
  • Meeting a specific corporate password-complexity policy

How to use the Password Generator

  1. Set the desired length (8–128 characters).
  2. Check the character classes you want to include.
  3. Optionally enable “avoid ambiguous characters”.
  4. Click Generate.
  5. Review the entropy estimate.
  6. Copy the password with the button.
  7. Store it immediately in a password manager.

Worked examples

16-character mixed password

Input
length=16 classes=upper,lower,digit,symbol
Output
K7#mP9$vL2@qR5&n

Illustrative; each run produces a different random string. Entropy ≈ 104 bits.

12-character alphanumeric, no ambiguous

Input
length=12 classes=upper,lower,digit avoidAmbiguous=true
Output
B4kN8wP2mQ7x

Excludes 0, O, 1, l, I. Still provides roughly 70 bits of entropy.

Common mistakes and tips

  • Prefer length over complexity; a 20-character lowercase password is stronger than an 8-character mixed one.
  • Always store generated passwords in a reputable password manager.
  • Do not reuse a generated password across sites.
  • If a site rejects the password, check for hidden restrictions on certain symbols.
  • Regenerate rather than manually edit; manual changes often reduce entropy.

Frequently asked questions

Is the random source cryptographically secure?

Yes. The generator uses the browser’s crypto.getRandomValues (or equivalent) so the output is suitable for security-sensitive purposes.

Can I generate a passphrase instead of a password?

This tool produces character-based passwords only. For word-based passphrases you would use a different generator that draws from a word list.

What symbols are included by default?

A conservative set: !@#$%^&*()-_=+[]{}|;:,.<>? The exact list is shown in the interface and can be customized.

How is entropy calculated?

It is length multiplied by the base-2 logarithm of the size of the allowed alphabet. The figure assumes each character is chosen uniformly at random.

Does the tool remember previous passwords?

No. Nothing is stored. Each generation is independent and the previous result is discarded when you generate again.