Password Generator

Create strong, random passwords with cryptographic randomness — generated on your device, never transmitted.

Padlock and keyboard, representing a strong random password generator

Passwords are generated locally in your browser using the cryptographic crypto.getRandomValues API. Nothing is sent to or stored on any server.

How to Use This Tool

Reused and predictable passwords are the single most common way accounts get taken over: one leaked site exposes every account that shares its password. A password manager solves storage, but you still need a source of genuinely random passwords. This generator creates them locally on your device using the same cryptographic randomness your browser uses for secure connections.

  1. Set the length with the slider. Sixteen characters is a good default for most accounts; use 20 or more for email and banking.
  2. Choose the character types. All four types give the strongest result; enable “exclude look-alikes” if you must type the password by hand.
  3. Press Generate for a fresh password, and generate again until you like the result — every click is a brand-new random draw.
  4. Copy the password straight into your password manager or the sign-up form. Never send it by email or save it in a plain note.

What Makes a Password Strong

Strength is mostly about entropy — how many possibilities an attacker must try. Every added character multiplies the possibilities by the size of the character pool, so length beats cleverness: a 16-character random password drawn from letters, digits and symbols carries about 105 bits of entropy, far beyond brute-force reach. This tool estimates entropy as length × log2(pool size) and labels the result from Weak to Excellent.

Just as important is how the randomness is produced. Ordinary Math.random() is predictable and should never be used for secrets. This generator uses crypto.getRandomValues, the browser's cryptographically secure random source, with rejection sampling so every character is equally likely — no subtle bias an attacker could exploit. Pair unique generated passwords with a reputable password manager and two-factor authentication, and a leak at one site stays a problem at only that site.

Entropy is easiest to understand as guesswork. A four-digit PIN has only 10,000 combinations, so it offers very little protection on its own. Each random character you add multiplies the combinations by the size of the pool. That is why length beats complexity tricks: swapping a letter for a symbol in a short, familiar word — turning “password” into “P@ssw0rd” — follows patterns attackers already test, while a longer random string follows no pattern at all. A 20-character random password is not slightly harder to guess than a 12-character one; it is harder by a factor of the pool size raised to the eighth power.

Passphrases, Password Managers, and Two-Factor Authentication

For the few passwords you must memorize — your computer login and the master password for a password manager, for example — a passphrase can work well: four or more unrelated words joined together, long enough to be hard to guess but far easier to remember than random symbols. Do not use a famous quote, song lyric, or your own name and birthday, because those are among the first things an attacker would try.

A password manager does the remembering for everything else. It stores a different random password for each account, fills them in only on the correct site, and warns you if a password is reused or appears in a known breach. Protect the manager itself with a long passphrase and two-factor authentication, and keep its recovery information somewhere safe offline.

Two-factor authentication (2FA) adds a second check — usually a code from an app or a hardware key — after your password. It does not make a weak password safe, but it means a stolen password alone is often not enough to sign in. Turn it on first for email, banking, and any account that can reset your other passwords, because email is usually the master key to everything else.

Practical Examples

Email and banking: generate at least 20 characters with all character types, store the result in a password manager, and enable 2FA. Everyday shopping or forum accounts: 16 random characters, unique to that site, is a sensible baseline. A password you must type on a TV or game console: use a longer passphrase or enable “exclude look-alikes” so characters are easier to read accurately. Sharing a temporary Wi-Fi or guest password: create a separate password rather than reusing your main one, and change it after guests leave. In every case, uniqueness matters as much as strength — the same strong password used in ten places is only as safe as the weakest of those ten sites.

Common Mistakes and Tips

Tip: after generating a password, save it in your manager before leaving the sign-up page, and test signing in once. That avoids the common lockout where a new password was created but never stored.

Frequently Asked Questions

How long should my password be?

At least 14–16 random characters for important accounts. Length matters more than complexity tricks: each extra character multiplies the search space by the full pool size.

Should I change my passwords regularly?

Current guidance (including NIST) says change a password when there is a reason — a breach, a shared device, a suspicious login — rather than on a fixed schedule, which tends to produce weaker, patterned passwords.

Is it safe to generate passwords online?

With this tool, generation happens entirely in your browser; the password is never sent over the network. You can verify that by loading the page and switching your device to airplane mode — it still works.

Does this tool store or send the passwords I generate?

No. This generator runs 100% client-side in your browser. Nothing you generate is sent to a server, stored by this site, or saved when you refresh or close the page. That also means we cannot recover a password for you — save it in your password manager right away, because once the page is gone, the password is gone too.

What is a passphrase, and when should I use one?

A passphrase is a longer password made from several unrelated words. Use one where you must type or memorize the secret yourself, such as a device login or a password manager's master password. For ordinary website accounts, let a manager store a fully random password instead.

What if a site limits password length or symbols?

Some sites cap passwords at a short length or ban certain symbols. Use the longest length the site allows, keep as many character types as it permits, and make that account's password unique. If symbols are banned, increase the length to make up for the smaller character pool.

Related Tools