Skip to content

Secure Password Generator

Generate strong random passwords from 8 to 64 characters with uppercase letters, lowercase letters, numbers and symbols, using a cryptographically secure random generator.

Runs in your browser Free, no sign-up

Loading generator...

What is Secure Password Generator?

Secure Password Generator creates random passwords that are hard to guess and hard to crack. Choose a length from 8 to 64 characters and which character types to include (uppercase letters, lowercase letters, numbers and symbols), and a new password appears instantly.

Every character is chosen independently by your browser's cryptographically secure random number generator (crypto.getRandomValues), the same source used for encryption keys, rather than JavaScript's predictable Math.random. With all four character types enabled, a 16-character password carries about 104 bits of randomness, far beyond what any attacker can brute-force.

How to use Secure Password Generator

  1. Drag the slider to set the length; 16 or more characters is a good default.
  2. Tick the character types to include: Uppercase, Lowercase, Numbers and Symbols.
  3. A new password is generated whenever you change a setting; click Regenerate for another one.
  4. Click the copy icon and save the password in your password manager.

Key features

  • Length from 8 to 64 characters
  • Uppercase, lowercase, number and symbol character sets you can switch on or off
  • Cryptographically secure randomness (crypto.getRandomValues) without modulo bias
  • New password on every settings change, plus a Regenerate button
  • One-click copy
  • Generated locally; passwords are never sent or saved

Common use cases

  • Creating unique passwords for new online accounts
  • Generating database, service-account and admin credentials
  • Making strong Wi-Fi passphrases and router admin passwords
  • Issuing temporary passwords for new users
  • Creating test secrets, such as an HMAC key for the JWT Generator

Technical details & standards

Characters are picked uniformly from the selected sets using crypto.getRandomValues, with rejection sampling so that no character is more likely than another (no modulo bias). Strength is measured in bits of entropy: length × log2(pool size). With all four sets the pool has 91 characters (26 + 26 + 10 + 29 symbols), about 6.5 bits per character, so 12 characters give about 78 bits, 16 about 104 bits and 20 about 130 bits.

Each character is drawn independently, so a password is not forced to contain every selected type; at 16 characters there is roughly a 1 in 6 chance it has no digit, for example. If a site insists on every type, check the result or click Regenerate. Passwords are generated in your browser and are never transmitted or stored.

Frequently asked questions

How long should a strong password be?

For a randomly generated password, 16 characters with mixed character types (about 100 bits of entropy) is strong for any online account. Set the slider to 12, 16 or 20 characters: with all four character types that gives about 78, 104 and 130 bits. Current guidance such as NIST SP 800-63B values length over complexity rules, so if a site limits symbols, use a longer password instead.

Is this password generator truly random?

Yes. It uses crypto.getRandomValues, the browser's cryptographically secure random number generator, and avoids the slight bias that a simple modulo would introduce. It does not use Math.random, whose output can be predicted.

What if a website rejects some symbols?

Some sites only accept a subset of symbols. Untick Symbols and increase the length to keep the same strength: 20 letters and numbers (about 119 bits) is stronger than 16 characters with symbols.

How should I store the passwords I generate?

In a password manager such as Bitwarden, 1Password or your browser's built-in manager. A unique random password for every site means one leaked password cannot unlock your other accounts.

Is my data safe?

Processing happens locally in your browser. Tool input is not sent to CodeUnpack servers.

Does it work offline?

Once the page has loaded, this tool can process input without an internet connection.