How to Generate a Secure Password
This online password generator runs completely inside your browser across four tabs:
- 1. Password: Choose a length from 4 to 128 characters, toggle uppercase, lowercase, digits, or symbols, exclude look-alikes (
O 0 I l 1), or edit the custom symbol set. - 2. PIN: Generate random numeric PINs from 4 to 12 digits (
0–9) for phones, locks, and banking apps. - 3. Wi-Fi: Create 8 to 63-character WPA2 wireless keys with look-alikes excluded by default so you can read and type them accurately on TVs and smart devices.
- 4. Bulk (1–50): Create up to 50 independent random passwords at once and copy all or download a local
.txtfile.
How This Password Generator Makes Random Passwords
JavaScript's built-in Math.random() is not cryptographically secure and can exhibit predictable internal state. Instead, this generator relies exclusively on your browser's Web Crypto API (crypto.getRandomValues). If Web Crypto is unavailable, generation fails closed with an error rather than falling back to weak randomness.
To eliminate modulo bias when picking from a pool of size N (for example, 94 characters), the engine draws an unsigned 32-bit integer and rejects any value at or above floor(2³² / N) × N (for N = 94, the limit is 4,294,967,254). When “At least one of each set” is enabled, the engine draws all characters uniformly from the full pool and redraws until every selected set appears, preserving a mathematically uniform distribution across all valid passwords.
How Long Should a Password Be?
According to NIST SP 800-63B rev 4 (§3.1.1.2), websites should require a minimum length of 15 characters when a password is the only authentication factor, or 8 characters when combined with multi-factor authentication (MFA), and should permit at least 64 characters. Guidance from CISA (archived page) recommends at least 16 characters alongside a password manager.
| Length | Lowercase Only (26 chars) | All 4 Sets, Uniform (94 chars) | All 4 Sets, At Least One Each |
|---|---|---|---|
| 8 characters | 37.60 bits | 52.44 bits | 51.32 bits |
| 12 characters | 56.41 bits | 78.66 bits | 78.14 bits |
| 15 characters | 70.51 bits | 98.32 bits | 98.00 bits |
| 16 characters | 75.21 bits | 104.87 bits | 104.59 bits |
| 20 characters | 94.01 bits | 131.09 bits | 130.93 bits |
| 24 characters | 112.81 bits | 157.31 bits | 157.21 bits |
| 32 characters | 150.41 bits | 209.75 bits | 209.71 bits |
Do Passwords Need Upper and Lower Case Letters?
NIST SP 800-63B rev 4 (§3.1.1.2) specifies that sites shall not impose composition rules requiring mixtures of uppercase, lowercase, digits, or symbols, because forced patterns often push people toward predictable habits like capitalizing the first letter and appending ! at the end.
For machine-generated random passwords, however, enabling more character sets genuinely expands the search space per character: 10 lowercase letters give 26¹⁰ = 141,167,095,653,376 combinations (47.00 bits), whereas 10 characters from all 94 printable symbols give 94¹⁰ (65.55 bits).
Password Special Characters
The OWASP Password Special Characters list defines 32 printable non-space ASCII symbols (33 when including the space character):
Some legacy forms block characters such as quotes, angle brackets, or backslashes. In those cases, edit the Custom Symbol Set box in the generator to keep only the symbols that site accepts.
PINs and Numbers-Only Passwords
When a system enforces numeric-only passcodes (0–9), the character pool is 10 digits: a 4-digit PIN has 10,000 combinations (13.29 bits) and a 6-digit PIN has 1,000,000 combinations (19.93 bits). Because the search space is small, security depends heavily on rate limiting by the device or server—under 10 guesses per second without rate limits, a 6-digit PIN takes an average of 13.9 hours, while at 100 guesses per hour it takes about 208 days. Avoid sequential runs like 1234 or dates.
Wi-Fi Passwords (WPA2 8–63 Characters)
Standard WPA2-Personal pre-shared keys accept 8 to 63 printable ASCII characters (codes 32–126; IEEE 802.11i Annex H.4.1 via secondary reference). Our Wi-Fi preset defaults to 20 characters using uppercase letters, lowercase letters, and digits with look-alike characters (O, 0, I, l, 1) excluded—giving a 57-character pool and 116.66 bits of entropy (without require-each) that stays easy to enter on TVs, consoles, and phones.
Password Rules: What NIST Says
Modern guidelines in NIST SP 800-63B rev 4 shift the burden away from arbitrary user rules:
- Length over complexity: Prioritize 15+ characters for single-factor accounts instead of short mixed-case strings.
- No periodic expiration: Sites should not force scheduled password rotations without evidence of compromise.
- Blocklist screening: Passwords should be checked against known compromised or common wordlists.
- Unicode and spaces: Sites should accept spaces and printable Unicode characters (NFC-normalized).
Password Tips That Help
- Unique per account: Never reuse a password across websites so a single breach cannot cascade.
- Use a password manager: Store generated 16+ character passwords in a trusted password manager rather than trying to memorize them.
- Enable MFA: Turn on hardware keys or authenticator-app multi-factor authentication wherever available.
Frequently Asked Questions
How long should a password be?
Under NIST SP 800-63B rev 4 (§3.1.1.2), websites should require at least 15 characters when a password is the sole authentication factor, or at least 8 characters when paired with multi-factor authentication (MFA), and allow at least 64 characters. CISA (archived guidance page) also recommends at least 16 characters.
What makes a password strong?
Strength comes from unpredictability (high entropy in bits) and length, not predictable substitutions. A 16-character password drawn uniformly from 94 printable ASCII characters provides 104.59 bits of entropy (with at least one character from each set), making exhaustive guessing infeasible.
What are the special characters for passwords?
The 32 non-space ASCII special characters listed in OWASP Password Special Characters are: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ (plus space, making 33 total). If a specific website rejects certain symbols, you can edit the Custom Symbol Set field in the generator.
Is it safe to use an online password generator?
Only if generation runs entirely in your local browser with a cryptographic random number generator and never contacts a remote server. This tool generates passwords client-side using Web Crypto (crypto.getRandomValues), stores nothing, and continues working offline after the page loads.
Should I change my password regularly?
No. NIST SP 800-63B rev 4 (§3.1.1.2) states that verifiers shall not require subscribers to change passwords periodically. Change a password only if there is evidence of compromise or unauthorized access.
Do I need upper and lower case letters?
NIST SP 800-63B rev 4 states that verifiers shall not impose composition rules requiring specific mixtures of character types. However, including uppercase, lowercase, digits, and symbols increases the character pool from 26 to 94, raising entropy from 4.70 bits per character to 6.55 bits per character.
What is an example of an 8-character password?
Never copy a fixed password example from a webpage, because public strings can appear on wordlists. Use the generator above with Length set to 8 to create fresh 8-character examples (about 51.32 bits across all 94 characters with at least one of each). Note that NIST recommends at least 15 characters when no MFA is present.
How do I create a strong Wi-Fi password?
Select the Wi-Fi tab above to generate a 20-character WPA2 passphrase (8–63 printable ASCII characters per IEEE 802.11i). By default, look-alike characters (O, 0, I, l, 1) are excluded so the key is easy to type on smart TVs and phones while still providing 116.66 bits of entropy without symbols.
What is a good phone PIN?
Use the PIN tab to generate a random 6-digit (19.93 bits, 1,000,000 combinations) or longer numeric PIN rather than 4 digits (10,000 combinations). Avoid sequential digits like 1234, repeated digits like 0000, or birth dates.
What are the best password practices?
Use a unique, randomly generated password of 15 to 16+ characters for every account, store passwords in a reputable password manager so you do not reuse them, enable multi-factor authentication (MFA) wherever supported, and only rotate passwords if a breach or compromise occurs (NIST SP 800-63B rev 4; CISA archived guidance).
Should I use a password manager?
Yes. Using unique, long random passwords across dozens of accounts is impractical to memorize. A password manager generates, stores, and autofills unique credentials for each site so a leak on one service cannot compromise your other accounts.
Related Security & Developer Tools
- Password Strength Checker: Test your password against pattern matching and 10,000+ common passwords offline.
- Passphrase Generator: Create easy-to-remember random-word passphrases from the 7,776-word EFF list.
- UUID / GUID Generator: Generate RFC 9562 v4, v7, v5, and v3 identifiers in your browser.