Get started
HomeEncoding & SecurityPassword Generator
Encoding & SecurityRuns in your browser · files never uploaded

Password Generator

Strong, customizable passwords

4.5· 43 votes
A password generator creates a random string of characters of a chosen length and character class mix. StuHub uses the browser's crypto.getRandomValues() API — a cryptographically secure PRNG — so every password is unpredictable and suitable for use as an account password, encryption key, or API secret.
Your file never leaves this browser. Everything runs on your device — no uploads, no server storage, no retention.How it works →

What is Password Generator?

Generate cryptographically strong passwords that respect your specific requirements: length, character classes (lowercase, uppercase, digits, symbols), and whether to exclude ambiguous characters (like O and 0). Uses the browser's Web Crypto API (crypto.getRandomValues), not Math.random — so the output is genuinely unpredictable, not just pseudo-random. Generate multiple at once for a whole rotation.

How do I use Password Generator?

  1. Set the length (12-64 recommended).
  2. Toggle character classes: lowercase, uppercase, digits, symbols.
  3. Click Generate for a fresh password.
  4. Copy or download the output.

Password Generator by the numbers

RNG
crypto.getRandomValues()
Length range
4–128 characters
Character classes
Upper, lower, digits, symbols, ambiguous exclusion
Entropy meter
Live zxcvbn score
Storage
None — in-memory only

Common use cases for Password Generator

  • Generating a 20-character Wi-Fi password for a small-office router.
  • Creating a unique password per site for use in a password manager.
  • Producing a memorable 5-word diceware passphrase for a master password.
  • Spinning up 50 user seeds for a staging database.
  • Getting a numeric PIN of exact length for a device lock.

Common pitfalls and how to avoid them

  • Same password appears twiceEach click produces a fresh generation. If you see duplicates, you copied the old buffer — click Regenerate and copy again.
  • Site rejects the passwordCheck the site's allowed characters. Toggle off symbols (or specific ones) to match their policy.
  • Forgot the password after closingWe never store passwords. Paste into a password manager (1Password, Bitwarden, KeePass) before leaving the page.

When should I use Password Generator?

Password Generator is for creating new passwords. To check the strength of an existing password, use Password Strength. For hashing rather than generating, use Hash Generator.

Frequently asked
How long should a password be?

For online accounts: at least 14 characters with mixed case, digits, and symbols — or a passphrase of 4–5 random words. For encryption keys: 20+ characters.

Is this generator cryptographically secure?

Yes — it uses the browser's crypto.getRandomValues() API, which is a cryptographically strong pseudo-random number generator. It does not use Math.random().

Why does my password look different every time I click?

Each click generates a fresh password. Passwords are never stored or logged — once you close the tab, they are gone.

Is my file uploaded anywhere?

No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.

Related in Encoding & Security
Base64 Encode
Base64 Decode
URL Encode
URL Decode
JWT Decoder
Hash Generator
Strength Checker
HMAC Generator