Password Generator

Generate a strong, random password with adjustable length and character types.

password-generator.js
Click Generate

Set a password length and choose which character types to include — uppercase, lowercase, numbers, and symbols — then generate a cryptographically random password using the browser's crypto.getRandomValues function, which is designed for security-sensitive randomness rather than predictable pseudo-random numbers. The password is generated locally and never transmitted anywhere.

How to use it

  1. Set your desired password length using the slider.
  2. Check the character types you want included.
  3. Click Generate.
  4. Click Copy to copy the password to your clipboard.

Frequently asked questions

Is this password generator secure?

Yes — it uses the Web Crypto API's crypto.getRandomValues, which produces cryptographically strong randomness suitable for passwords, unlike Math.random().

What's a good password length?

Most security guidance recommends at least 12–16 characters with a mix of character types for accounts that support it.

Does the tool store generated passwords anywhere?

No — nothing is saved or logged. Once you navigate away, the password only exists wherever you've copied it.

Can I exclude ambiguous characters like 0 and O?

Not in this version, but keeping a longer length with all character types enabled reduces the practical impact of any ambiguous-looking characters.