Text Tools

Password Generator

Generate high-entropy passwords with length and character-set controls.

Generated password

wE$_Gyfz5nYH6ujs85

The generator uses the browser crypto API and keeps generation local.

Understand the format

How Password Generator works

The strength of a generated password is measurable: it is the number of characters multiplied by the bits contributed by each position, assuming the source of randomness is genuinely unpredictable.

Entropy is length times the log of the alphabet

For a randomly generated password, strength in bits is length multiplied by the base-two logarithm of the character pool size. A pool of 71 characters contributes about 6.15 bits per position, so an 18-character password from that pool carries roughly 111 bits of entropy. An attacker who can test a billion candidates per second would still need vastly longer than the age of the universe to exhaust that space.

The formula shows why length dominates. Adding one character multiplies the search space by the pool size, while adding a whole extra character class only increases the per-character contribution slightly. Sixteen lowercase letters beat eight characters drawn from every class on the keyboard.

Where randomness comes from, and which characters are excluded

This generator draws from crypto.getRandomValues, the browser cryptographically secure random source. That distinction matters: an ordinary pseudo-random function is predictable from its output, which makes any password built from it recoverable. It also guarantees at least one character from each selected group, then shuffles the result, so the password satisfies composition rules without a predictable layout.

Look-alike characters are deliberately left out of the pools: lowercase l, uppercase I and O, and the digits 0 and 1. That removes transcription errors when a password is read aloud or typed from a screen, at the cost of a fraction of a bit per character, which the entropy table below already accounts for.

Step by step

How to use Password Generator

  1. Set the length. Sixteen characters or more is a sensible floor for anything that matters.
  2. Select the character groups the destination system will accept.
  3. Press Generate password, and generate again if the result is awkward to type.
  4. Store the value in a password manager immediately rather than pasting it into a ticket or chat message.

Passwords are generated in your browser with crypto.getRandomValues. They are not transmitted, saved in local storage, or recoverable after you leave the page.

Worked examples

Password Generator examples explained

A default 18-character password

Input

length 18, all four character groups

Result

about 111 bits of entropy from a 71-character pool

Far beyond any offline guessing attack. The realistic threats are reuse, phishing, and a breach of the service that stores it.

Length beats complexity

Input

12 characters from all four groups vs 16 lowercase letters

Result

about 74 bits vs about 74 bits

Four extra letters buy as much strength as adding uppercase, digits, and symbols to a shorter password, and the longer one is easier to type.

Reference

Approximate entropy for the pools this generator uses

Approximate entropy for the pools this generator uses
Selected groupsPool size12 characters16 characters18 characters
Lowercase only2556 bits74 bits84 bits
Letters, no digits or symbols4967 bits90 bits101 bits
Letters and digits5770 bits93 bits105 bits
All four groups7174 bits98 bits111 bits

Practical Guide

How teams use Password Generator

Common use cases

  • Create one-off administrator or staging credentials during environment setup.
  • Test whether a password policy accepts a given length and character mix.
  • Produce sample values for documentation without reusing a real secret.

Checks before trusting the result

  • Check the destination policy before distributing, since some systems still reject particular symbols.
  • Never paste a temporary credential into a ticket or shared chat without an expiry and a rotation plan.
  • For real accounts, pair a strong password with a password manager and multi-factor authentication.

Troubleshooting

Common mistakes and how to fix them

Relying on forced complexity rules and 90-day rotation.
Current NIST guidance recommends long passwords, screening against known-breached values, and rotation only after a suspected compromise. Forced rotation pushes people towards predictable variations.
Generating a strong password and reusing it across services.
Reuse turns any single breach into a credential-stuffing campaign against every other account. Generate a distinct value per service.
Storing the password in the ticket that requested the account.
Use a secret manager or a one-time share link, and rotate anything that has appeared in a chat or issue tracker.

FAQ

Password Generator questions, answered

Is generating a password in a browser safe?

The value is produced locally with the cryptographic random source and is never transmitted. The remaining risks are local: browser extensions, clipboard managers, and shoulder surfing. For your most sensitive accounts, generate inside a password manager.

How long should a password be?

Sixteen characters is a reasonable minimum for accounts that matter, and twenty or more for administrative access. Since a manager types it for you, extra length costs nothing.

Why are some characters missing?

Look-alikes such as l, I, O, 0, and 1 are excluded so a password can be read and retyped without ambiguity. The entropy figures above already reflect the smaller pools.

Are passphrases better than random passwords?

A passphrase of five or six words chosen at random by a tool is both strong and memorable, which suits the handful of passwords you must type from memory. For everything a manager fills in, a random string is simpler.

Does the generator remember what it produced?

No. Nothing is stored or logged, and refreshing the page discards the value entirely.

Go deeper

Specifications and guides