FormatterHQ

Strong Password Generator

Generate strong, random passwords with the length and character types you choose. Values come from your browser’s secure random generator and are never sent anywhere.

Loading tool…
Ready.

How to use the Password Generator

  1. Set the password length. 16 characters or more is a good default for online accounts.
  2. Choose the character sets to include: uppercase, lowercase, digits and symbols.
  3. Optionally exclude look-alike characters such as l, 1, O and 0 if the password will be read or typed by hand.
  4. Generate a batch, then copy the password you want straight into your password manager.

A password generator that uses real randomness

This password generator builds each password from the character sets you select, using the Web Crypto API (crypto.getRandomValues) with rejection sampling so every character is equally likely. Humans are bad at inventing random strings; we reuse words, dates and keyboard patterns that password-cracking tools try first. A generated password avoids those patterns completely.

At least one character from every set you tick is guaranteed, and the result is shuffled afterwards, so the required characters do not always appear in the same positions.

What makes a password strong?

Strength is measured in bits of entropy: the number of guesses an attacker needs, written as a power of two. For a random password it is simply length × log2(pool size).

Character setsPool sizeBits per character12 chars16 chars20 chars
Digits only103.3405366
Lowercase + digits365.26283103
Upper + lower + digits625.957195119
All four sets896.4878104130

The tool shows the estimated entropy for your settings. Around 80 bits is strong for an online account that is also protected by rate limiting; 100 bits or more is appropriate for anything that could be attacked offline, such as an encrypted archive. Notice that adding length raises entropy faster than adding symbols.

Options explained

  • Length (4–128) – longer is always stronger. Very short lengths are allowed for testing input validation, not for real accounts.
  • Uppercase, lowercase, digits, symbols – match the rules of the site you are signing up for. The symbol set is !@#$%^&*()-_=+[]{};:,.<>?/~.
  • Exclude look-alikes – removes characters that are easy to confuse: i, l, L, 1, o, O and 0. Use it for Wi-Fi keys or codes you will read aloud; it slightly reduces the pool size.
  • Exclude ambiguous symbols – drops the brackets and punctuation ( ) [ ] { } ; : , . < > / ~ that some sites reject or that are easy to misread; the entropy estimate takes the smaller symbol set into account.
  • How many – create up to 100 passwords at once, useful when provisioning test accounts.

Example output

k7#Vq!n2Rf@x9Lp_
T3m$wZ8e]bQ4&hYc
u9=Pa2!Gd7^sKx5v

Every run produces new values; nothing is cached between clicks.

Common mistakes the generator helps you avoid

Attackers rarely guess passwords one character at a time. They use lists of leaked passwords, dictionary words with common substitutions (p@ssw0rd), keyboard walks (qwerty123), names followed by years and the same password reused across sites. A generated password contains none of these patterns, so the only way to find it is brute force, which is exactly what the entropy figure measures.

Another frequent mistake is making a strong password and then storing it somewhere weak: a sticky note, an unencrypted spreadsheet or a chat message. Paste the result directly into a password manager, and avoid sending it by email. If you must share a password with a colleague, use your manager's sharing feature.

Good password habits

  • Use a different password for every account, and store them in a password manager rather than a text file.
  • Turn on two-factor authentication where it is offered; it protects you even if a password leaks.
  • For a password you must memorize, such as the master password of your manager, a passphrase from the memorable password generator is easier to remember at similar strength.

For developers

If you are building a sign-up form, never store passwords in plain text. Hash them with a slow algorithm; you can experiment with the bcrypt generator to see what stored hashes look like. For API keys and tokens rather than human passwords, the random string generator offers URL-safe and hex alphabets.

Frequently asked questions

Is it safe to generate a password online?
With this tool, yes: the password is created by JavaScript in your own browser and is never transmitted or stored. You can even disconnect from the internet after the page loads and it will keep working.
How long should my password be?
For most online accounts, 16 random characters from all four sets gives about 104 bits of entropy, which is far beyond practical brute-force attacks. Use 20 or more characters for encryption keys or other secrets that could be attacked offline.
Why does a site reject my generated password?
Some sites limit the length or refuse certain symbols. Reduce the length to the stated maximum or untick the symbol set and add length instead, which keeps the entropy high.
What does "exclude look-alikes" do?
It removes characters that are easily confused when printed or read aloud, such as l, 1, O and 0. This makes the password easier to type by hand at the cost of a slightly smaller character pool.
Is a random password better than a passphrase?
Both are strong if they have enough entropy. Random character passwords are shorter for the same strength, while passphrases made of random words are easier to remember and type.

Last updated October 3, 2026

Guides

Related tools

Memorable Password Generator Generate easy-to-remember passphrases from random English words, with separators, numbers and symbols. WordPress Password Hash Generator Create a WordPress password hash for the wp_users table: bcrypt for WordPress 6.8+ or phpass for older versions. Password Strength Checker Estimate password entropy and crack time for online and offline attacks, and spot common patterns — checked privately in your browser. WordPress Password Hash Checker Check if a password matches a WordPress user_pass hash ($wp$ bcrypt, $P$ phpass or legacy MD5). Random Alphanumeric Generator Generate letters-and-digits codes for vouchers, reference IDs and usernames in mixed, upper or lower case. Random Binary Generator Generate random binary numbers (strings of 0s and 1s) of any bit length. Random Byte Generator Generate cryptographically secure random bytes as hex, Base64, decimal, binary or a code array. Random Color Generator Generate random colours as HEX, RGB or HSL codes with a swatch preview for inspiration and testing. Random CSV Generator Generate realistic fake CSV test data — names, emails, addresses, dates and more — with custom fields. Random Data from Regex Generate random strings that match a regular expression — ideal for test data such as IDs, codes and formats. Random Date Generator Generate random dates or date-times between two dates in ISO, US, EU, long, Unix or RFC formats. Random Decimal Generator Generate random decimal (floating-point) numbers in a range with a fixed number of decimal places.