Random Password Generator

Generate secure random passwords with fine-grained control over character types

🔒 All passwords are generated locally in your browser and never stored or transmitted.

4 128

Character Types

Minimum Requirements

Password History

⚠️ Password history is stored only for this session. Refreshing the page will clear all generated passwords.

No passwords generated yet

In-depth guide

Random passwords: length, character sets and how strong they really are

How the generator builds a password with crypto.getRandomValues, how to work out entropy from length and character set, what the Strength bar does and does not measure, and what NIST says about password length.

Last verified: Sources: MDN · NIST Plain-text version of this guide

Key figures at a glance

Randomness source
crypto.getRandomValues()
The browser's cryptographically strong random generator, not Math.random().
Source: MDN
Length range
4 to 128 characters
The slider starts at 25.
Pool with every type ticked
88 characters
26 upper + 26 lower + 10 digits + 26 symbols.
Entropy of a random password
length × log₂(pool size) bits
25 characters from 88 gives about 161.5 bits.
NIST minimum for a password used alone
At least 15 characters
SP 800-63B-4. A password used only as one part of multi-factor login may be shorter but not under 8.
Source: NIST

How the password is built

The generator works in four steps, all in your browser:

  1. It builds a pool from the types you tick: A–Z, a–z, 0–9 and the 26 symbols !@#$%^&*()_+-=[]{}|;:,.<>?.
  2. It first adds the minimum number of each type you asked for.
  3. It fills the remaining length with characters drawn at random from the whole pool.
  4. It shuffles everything, so the required characters do not sit at the start.

Every random pick uses crypto.getRandomValues(), the browser's cryptographically strong generator. The shuffle uses it too. The page generates nothing on a server, and the history list of the last 10 passwords lives only in memory until you refresh.

Entropy: the number that matters

If every character is picked uniformly at random from a pool of N characters, a password of length L has L × log₂(N) bits of entropy. Each extra bit doubles the number of guesses an attacker needs.

Length Digits only (10) Lower case (26) Letters + digits (62) All four types (88)
8 26.6 bits 37.6 bits 47.6 bits 51.7 bits
12 39.9 bits 56.4 bits 71.5 bits 77.5 bits
16 53.2 bits 75.2 bits 95.3 bits 103.4 bits
20 66.4 bits 94.0 bits 119.1 bits 129.2 bits
25 83.0 bits 117.5 bits 148.9 bits 161.5 bits

Length beats variety. A 16-character lower-case-only password (75.2 bits) is stronger than an 8-character password using all four types (51.7 bits). Going from 12 to 16 characters adds more than switching on symbols does.

These figures are an upper bound. Setting minimums for each type removes a tiny fraction of possible passwords, so the true entropy is a little lower, which does not matter at normal lengths.

What the Strength bar measures

The bar is not an entropy estimate. It is a simple score: 2 points per character (capped at 50), plus 12.5 points for each type present (lower, upper, digit, symbol). Under 30 is Weak, under 50 Medium, under 75 Strong, 75 and above Very Strong.

  • 12 characters with all four types scores 74, so it shows Strong, not Very Strong. 16 characters with all four types scores 82 (Very Strong).
  • A 4-character password with all four types scores 58 and shows Strong, even though it has only about 26 bits of entropy. Treat the bar as a rough guide and read the length yourself.

What NIST says

NIST SP 800-63B-4 (the US guidance many organisations follow) says a password used on its own should be at least 15 characters, and that services should accept at least 64. It tells services not to impose composition rules (such as "one symbol required") and not to force periodic changes unless there is evidence of compromise. It also asks them to check new passwords against lists of known-breached or common values. The minimum fields in this tool exist because some sites still enforce composition rules.

Tip: For anything you do not need to type from memory, use a long random password in a password manager and turn on two-factor authentication where offered. Use a different password for every account.

Edge cases

  • Untick a type but set its minimum above 0. The minimum characters are still drawn from that type, so the password will contain it. Set the minimum to 0 to exclude a type.
  • Minimums that add up to more than the length disable the Generate button with an error.
  • Sites that reject symbols. Untick the symbol type and increase the length instead. 20 letters and digits (119.1 bits) beats 12 characters with symbols (77.5 bits).
  • Copying. The Copy button uses the browser clipboard. Clipboard managers on your device may keep a copy, so clear it after pasting into a password manager.

Common mistakes

  • Trusting the Strength bar over length. Short passwords can still score "Strong".
  • Reusing a generated password on several sites.
  • Editing a generated password to make it memorable. That removes the randomness.
  • Leaving the page open on a shared computer with the history showing.

Frequently Asked Questions

How long should my password be?

We recommend at least 16-25 characters for strong security. Longer passwords are exponentially harder to crack. For highly sensitive accounts like banking, consider 30+ character passwords.

Are the generated passwords truly random?

Yes, they use crypto.getRandomValues() which provides cryptographically secure random generation. This is much more secure than mathematical random functions.

Are my generated passwords stored anywhere?

No, all passwords are generated locally in your browser and never sent to any server. The password history shown is only stored in your current session and disappears when you close or refresh the page.

Should I include special characters in my password?

Yes, special characters significantly increase password strength by expanding the possible character combinations. However, some systems may not accept certain special characters, so check your service's requirements.

What's the minimum password length I should use?

The absolute minimum should be 12 characters, but 16-25 characters is recommended for good security. Longer passwords are always better.

How do I remember complex passwords?

Use a password manager to securely store your passwords. Popular options include 1Password, LastPass, Bitwarden, and Dashlane. Never write passwords down or store them in plain text files.

How often should I change my passwords?

Change passwords immediately if you suspect they've been compromised. For regular accounts, changing every 6-12 months is reasonable, but using unique strong passwords for each account is more important than frequent changes.

Can I use the same password for multiple accounts?

No, never reuse passwords across different accounts. If one account is compromised, all accounts with the same password become vulnerable. Use a password manager to maintain unique passwords for each service.

What are minimum requirements useful for?

Minimum requirements ensure your password contains a balanced mix of character types. Some websites require at least one uppercase letter, one number, and one special character - you can set these minimums to match their requirements.

Sources

  1. NIST SP 800-63B-4 — Authentication and Authenticator Management — Section 3.1.1: length, composition rules, blocklists, periodic changes.
  2. MDN — Crypto: getRandomValues()

This guide explains published rules in plain language. It is not financial, legal or official advice — rules change, so confirm with the agency linked above before you commit.

Embed this tool on your website

Free to use. Paste this code into your page and keep the link back to ToolSG.