Skip to content
Security

Password Generator

Generate strong passwords with Web Crypto and a strength meter.

passwordgeneratecryptosecurerandom
Loading tool…

Recommended tools

Affiliate links — we may earn a commission if you sign up.

About the Password Generator

The Password Generator creates cryptographically strong passwords entirely in your browser using the Web Crypto random number generator, so nothing ever leaves the page. A Length slider moves from 4 to 64 characters with a live character counter, and the default lands on 16. Four checkboxes toggle lowercase letters, uppercase letters, numbers, and symbols, and an "Exclude ambiguous characters" switch removes the lookalike glyphs I, l, 1, O, and 0 to prevent reading mistakes when a password is printed or dictated. The generator guarantees at least one character from each enabled set when the length allows it, then fills the rest from the combined pool and shuffles the result. A strength meter computes entropy as base-two logarithm of the pool size times the length, grading the result Very Weak under 28 bits, Weak under 36, Fair under 60, Strong under 128, and Very Strong beyond that. A progress bar scales the entropy against a 256-bit ceiling, while composition cards count the lowercase, uppercase, number, and symbol characters in the current password. Regenerate rolls a fresh candidate, Copy grabs it from the clipboard, and pressing the G key triggers a new password from anywhere on the page.

Hand-written guide

Examples

Input
Length 16 · Lowercase ✓ · Uppercase ✓ · Numbers ✓ · Symbols ✓ · Exclude ambiguous: off
Output
Password "Xk9$zQ4!mB7@nR2#" · Strength Strong · 103.4 bits · Pool size 88 · Composition: Lowercase 4, Uppercase 4, Numbers 4, Symbols 4
Note: With all four sets enabled the pool is 26 + 26 + 10 + 26 = 88 characters, so entropy is log2(88) × 16 ≈ 103.4 bits, landing in the Strong band. The generator drew one character from each set and shuffled, yielding a balanced 4-4-4-4 mix.
Input
Length 6 · Lowercase off · Uppercase off · Numbers ✓ (only) · Symbols off
Output
Password "483920" · Strength Very Weak · 19.9 bits · Pool size 10 · Composition: Lowercase 0, Uppercase 0, Numbers 6, Symbols 0
Note: A digits-only pool of 10 raises entropy to log2(10) × 6 ≈ 19.9 bits, far below the 28-bit Very Weak cutoff. The meter shows red and the progress bar barely moves, demonstrating why short numeric passcodes are trivially brute-forced.
Input
Length 12 · Lowercase ✓ · Uppercase ✓ · Numbers ✓ · Symbols ✓ · Exclude ambiguous: on
Output
Password "Xq7#Rz2$kM8@" · Strength Strong · 76.3 bits · Pool size 82 · Composition: Lowercase 3, Uppercase 3, Numbers 3, Symbols 3
Note: Excluding I, l, 1, O, and 0 trims the pool to 82 characters, so entropy is log2(82) × 12 ≈ 76.3 bits — still Strong. The output contains none of the ambiguous glyphs, so it survives handwriting, print, and phone dictation without mix-ups.

How to use

  1. 1

    Drag the Length slider between 4 and 64 characters; the hint next to the label shows the selected length as you move it.

  2. 2

    Tick the Lowercase (a-z), Uppercase (A-Z), Numbers (0-9), and Symbols (!@#$…) checkboxes to control which character sets feed the pool.

  3. 3

    Flip the Exclude ambiguous characters switch to ban I, l, 1, O, and 0 from the output for printed or dictated use.

  4. 4

    Press Regenerate, or simply tap the G key on your keyboard, to roll a fresh password; the shortcut works wherever your focus is on the page.

  5. 5

    Read the Strength and Composition cards, then click Copy to place the password on the clipboard for your password manager or login form.

Common use cases

  • New account passwords — generate a 20-character mixed password instead of typing one that reuses an older, already-leaked pattern.
  • Wi-Fi network keys — a long random passphrase fits comfortably in most router fields and stays strong for years between changes.
  • API tokens and developer secrets — generated strings replace hand-typed tokens that tend to be too short and predictable for automation.
  • Master passwords for managers — the copy button feeds a freshly rolled candidate straight into a password vault during first-time setup.
  • Rotation scripts — batch-regenerate per-service secrets periodically and paste them into dashboards rather than inventing variations.
  • Offline storage — an ambiguous-free password prints cleanly onto paper, so exclude the lookalike set when handwriting a backup.

Best practices

  • Prefer length over gimmicks; every extra character multiplies the search space by the pool size while set diversity adds only log2(pool) bits.
  • Keep passwords above 20 characters for critical accounts so the entropy clears the 128-bit bench where state actors stop guessing.
  • Enable the ambiguous-character exclusion for anything printed, emailed, or spoken; an unreadable password is worse than a shorter one.
  • Use a distinct generated password per service and never recycle; one leaked password must not open the rest of your accounts.
  • Store every result in a password manager immediately; the web page and clipboard alone cannot protect a password once the tab closes.
  • Remember the strength grade matters less than uniqueness — a Strong 12-char password reused across ten sites still fails on the tenth breach.

Tips

  • Press G between fills to re-roll until the composition counts match what a site demands, such as a minimum of two digits.
  • Turn on the ambiguous exclusion before generating anything you will write by hand, then check the composition before copying.
  • Regenerate for a fresh candidate rather than editing an existing password; manual tweaks shrink the effective pool and lower real entropy.
  • Verify the strength label against your risk level per account, and log each new password into your manager before the clipboard clears.

Frequently asked questions

Entropy is the base-two logarithm of the alphabet size multiplied by the length, shown in the Composition card as bits. A 16-character string over an 88-character pool yields roughly 103.4 bits. The strength meter then maps that bit count onto the Very Weak through Very Strong bands shown beside the value.

Explore more security tools

Browse the full collection of security tools on the hub, or jump back to all categories.

Related tools