Password Generator

Generate a random password of any length from 4 to 64 characters using uppercase, lowercase, numbers, and symbols. Toggle character types, exclude ambiguous characters, and copy the result with one click — generation runs entirely in your browser.

Your password

{hYWCY*Q<Z1)ce8<

Strength: Very strong

Who should use it: Anyone who needs a random password for a new account or to replace a weak one.

How to use this calculator

  1. 1Set the password length with the slider (4 to 64 characters).
  2. 2Tick the character types to include: uppercase, lowercase, numbers, and symbols.
  3. 3Optionally exclude ambiguous characters such as I, l, 1, O, and 0.
  4. 4Click "Generate new password" and copy the result.

Understanding the inputs

Password lengthThe number of characters in the generated password, from 4 to 64.
Character typesWhich sets to draw from: uppercase (A–Z), lowercase (a–z), numbers (0–9), and symbols (!@#$ and more).
Exclude ambiguous charactersRemoves easily confused characters (I, l, 1, O, 0) for passwords you will type manually.

How the calculation works

The calculator builds a character pool from the selected sets, removes ambiguous characters if requested, and draws one character at a time for the chosen length. When the browser supports it, each character is picked using the Web Crypto API (crypto.getRandomValues), which provides a cryptographically secure random source; if that API is unavailable, it falls back to Math.random. The password is generated locally and is never sent to a server.

For each position, pick a random index into the selected character pool using crypto.getRandomValues (fallback: Math.random).

Worked example

Scenario: A 16-character password with all character types included.

Result: A random 16-character string mixing uppercase, lowercase, numbers, and symbols, such as a sample output you can copy with the copy button.

How to interpret your result

The generated password is a random string drawn from the character sets you selected. The strength meter gives a rough sense of variety and length, but it is a basic guide, not a security audit. A generated password does not guarantee account security on its own — how you store and use it matters just as much.

Factors that can affect the result

  • Length: longer passwords are harder to guess; 12–16 characters are commonly recommended for most accounts.
  • Character variety: including more character types increases the pool and the difficulty of guessing.
  • Random source: the Web Crypto API provides a cryptographically secure source when available; the Math.random fallback is less strong.
  • Ambiguous characters: excluding them makes passwords easier to type but slightly reduces the pool.

Limitations and assumptions

  • A generated password does not guarantee account security; reuse, storage, and breach exposure also matter.
  • The strength meter is a basic length-and-variety guide, not a formal security assessment.
  • When the Web Crypto API is unavailable, the generator falls back to Math.random, which is not cryptographically secure.
  • The password is generated in your browser and is not stored or saved by this tool; copy it somewhere safe immediately.

Frequently asked questions

Related calculators

Methodology

The generator builds a character pool from the selected sets, optionally removes ambiguous characters, and draws each character using the Web Crypto API (crypto.getRandomValues) with a Math.random fallback, producing a random string of the requested length entirely in the browser.

Sources and references

Last reviewed: August 2026. Read our editorial policy.

Disclaimer: Results are provided for informational purposes and may vary depending on the values entered, the assumptions described above, and rounding. They are not a substitute for professional advice specific to your situation. Read the full disclaimer.