Skip to content
CalculatorsRuns in your browserPopular

Password Generator

Create strong, cryptographically random passwords entirely on your device.

Input
No upload needed — instant
Privacy
Nothing is uploaded
Cost
Free · no sign-up · no watermark

Loading tool…

The tool is loading its code on your device. This happens once and is cached for later visits.

Processed entirely on your device

Everything you type or paste is handled by JavaScript running in this tab. No request is sent, nothing is logged and nothing is stored. Close the page and it is gone.

Overview

About the Password Generator

Generate strong random passwords free. Cryptographic randomness, adjustable length and character sets, entropy and strength readout, and passphrase mode.

Password generation is one of the few security tasks where the tool matters as much as the intent. A long, random, unique password defeats essentially every credential attack that does not involve phishing or a breached database — and both of those are better solved by a password manager and two-factor authentication than by a cleverer password.

Where the randomness comes from

Math.random() in JavaScript is a pseudorandom number generator seeded from the system clock. It is fast, it passes casual statistical tests, and it is completely unsuitable for security: an attacker who observes enough output can recover the internal state and predict everything that follows.

crypto.getRandomValues() draws from the operating system's entropy pool — the same source used for TLS session keys and SSH key generation. It is not predictable, not reproducible and not observable from another origin. This tool uses it exclusively, and applies rejection sampling so that the modulo bias introduced by mapping random bytes onto a character set is eliminated rather than merely reduced.

Entropy, in numbers

bits = length × log2(poolSize)
ConfigurationPoolBits per char12 chars16 chars20 chars
Lowercase only264.7567594
Lowercase + digits365.26283103
Mixed case + digits625.957195119
All printable946.5579105131

The pattern worth noticing: moving from 12 to 16 characters gains more than adding every symbol on the keyboard to a 12-character password. Length is the dominant lever.

How passwords actually get attacked

Offline cracking. An attacker obtains a hash dump and tries candidates at billions per second on a GPU. This is where entropy matters most, and where short passwords fail catastrophically — a fast hash like MD5 or SHA-1 lets an 8-character mixed password fall in hours.

Credential stuffing. An attacker replays username-and-password pairs leaked from other breaches. Entropy is irrelevant; uniqueness is everything. This is why reusing a strong password is worse than using a mediocre unique one.

Phishing. The password is handed over voluntarily. Neither length nor complexity helps. A hardware security key or a passkey does.

Database compromise with correct hashing. If the service uses bcrypt, scrypt or Argon2 with proper parameters, offline cracking is expensive even for moderate passwords. If it uses SHA-256, a 40-character password may still fall.

Passphrases

The diceware approach picks N words at random from a numbered wordlist. With the standard 7776-word list, each word contributes log2(7776) ≈ 12.9 bits:

  • 4 words ≈ 52 bits — too weak for anything important
  • 5 words ≈ 65 bits — acceptable for low-value accounts
  • 6 words ≈ 78 bits — good
  • 7 words ≈ 90 bits — excellent, and still typeable

Word order matters, and so does randomness: choosing six words yourself produces dramatically less entropy than six words drawn by dice, because human word choice is highly predictable.

Practical advice

Generate unique passwords everywhere and store them in a password manager. Make the manager's own master key a long passphrase you can remember and never wrote down. Enable a second factor — preferably a passkey or hardware key, not SMS — on any account where losing access would hurt. Then stop thinking about passwords, which is the point of the exercise.

Step by step

How to use the Password Generator

  1. Set a length — 16 characters is a good default, 20 or more for anything important.

  2. Choose which character sets to include: uppercase, lowercase, digits and symbols.

  3. Decide whether to exclude visually ambiguous characters such as l, 1, I and O.

  4. Press Generate; the password comes from your browser's cryptographic RNG.

  5. Copy it straight into your password manager, and regenerate until one satisfies any site-specific rules.

Why use it

Benefits and common use cases

What this tool is good for, and what it deliberately does not try to do.

Cryptographic randomness

Uses crypto.getRandomValues, not Math.random(). The distinction is the whole point: Math.random is a predictable pseudorandom generator unsuitable for anything security-related.

Entropy shown in bits

Reports the real entropy of the generated password so you can see the difference a few extra characters or one more character set actually makes.

Passphrase mode

Generates diceware-style word sequences that are far easier to type and remember at equivalent strength — the right choice for a master password.

Never transmitted

No network request is made at any point. A generated password cannot be logged, intercepted or stored by anyone, because it never leaves the tab.

Questions

Frequently asked questions

Short, honest answers about quality, limits and privacy.

How long should a password be?

At least 16 characters for anything that matters, and 20 or more for a password-manager master key or an account protecting finances. Length beats complexity: each additional character from a 94-symbol set adds about 6.5 bits of entropy, while adding a symbol class to a short password adds far less.

What is password entropy?

A measure of unpredictability in bits, calculated as length × log2(pool size). A 12-character password from a 94-character set has about 78 bits. Below 60 bits is weak against offline cracking, 80 bits is solid for most purposes, and above 100 bits is out of reach of any plausible attacker.

Is it safe to generate a password in a browser?

Yes, provided the page is served over HTTPS and the generation happens locally with a cryptographic source. This tool makes no network requests, so the password exists only in your browser's memory. The risk on any website is a compromised script rather than the concept — which is why your own password manager remains the best place to generate them.

Should I avoid ambiguous characters?

It is a reasonable trade-off. Excluding l, 1, I, O and 0 shrinks the character pool slightly, but you can compensate by adding one or two characters to the length. It removes transcription errors when you have to type a password by hand, which is the more likely failure mode.

Are passphrases better than random passwords?

For memorability, substantially. A six-word passphrase drawn from a 7776-word diceware list has about 77 bits of entropy and can actually be remembered. For a password manager entry you never type, random characters are fine and slightly more efficient per character.