GoToolsOnline Blog How-To All Tools

Password Generator Best Practices: Length, Character Sets and Entropy

What each setting does, what the entropy number means, and what to do with the result

By Ben Praveen J · October 17, 2024 · Updated October 2026

A password generator is only as good as the settings you give it and what you do with the result. This guide explains each setting in plain terms, using the numbers our own Password Generator shows you, so you can pick a length and character mix that a site will accept and an attacker cannot realistically guess. For the bigger picture (passphrases, two-factor authentication and common myths) see our strong password guide.

What a good generator does

Three things separate a trustworthy generator from a risky one:

  • A cryptographic random source. Browsers provide crypto.getRandomValues, which is designed for security use. The everyday Math.random is not, and its output can be predictable. Our generator uses crypto.getRandomValues and discards out-of-range values (rejection sampling), so no character is picked more often than another.
  • It runs on your device. The password should be created in your browser and never sent to a server, written into a URL, or saved. Ours does all three of those correctly: nothing is sent or stored.
  • It respects your rules. If you tick a character set, at least one character from it should appear, otherwise the site may reject the password. Our tool regenerates until every ticked set is present. That reduces the possible combinations by a very small amount, which the length more than covers.

Length: the setting that matters most

Each character you add multiplies the number of possible passwords by the size of the character pool. That is why length beats clever substitutions. Practical defaults:

  • Website accounts saved in a password manager: 16 to 20 characters. You never type them, so there is no reason to go shorter.
  • Wi-Fi (WPA2/WPA3) keys: 20 or more. Attackers can test captured Wi-Fi handshakes offline, and you change the key rarely.
  • Sites with a maximum length: use the maximum they allow, up to 20 or so. Our tool accepts anything from 8 to 128.
  • Passwords you must memorise (your password manager's master password, your computer login): a random string is hard to remember. A passphrase of several random words usually works better; the strong password guide explains how.

Entropy, explained with real numbers

After you generate, the tool shows a line such as "About 103 bits of entropy (16 characters from a pool of 88)". For a randomly generated password, entropy is length × log2(pool size), and every extra bit doubles the guesses needed. The pool sizes in our tool are 26 (lowercase only), 52 (adding uppercase), 62 (adding numbers) and 88 (adding its 26 symbols).

LengthLowercase only (26)Letters + numbers (62)All four sets (88)
8~38 bits (weak)~48 bits (fair)~52 bits (fair)
12~56 bits (fair)~71 bits (strong)~77 bits (strong)
16~75 bits (strong)~95 bits (very strong)~103 bits (very strong)
20~94 bits (very strong)~119 bits (very strong)~129 bits (very strong)

The labels are the tool's own bands: under 45 bits is weak, 45 to 63 fair, 64 to 79 strong, and 80 or more very strong. To make the numbers concrete, imagine an attacker who has stolen a database of fast, unsalted password hashes and can test 100 billion guesses a second (an illustrative figure; sites that use slow hashes such as bcrypt or Argon2 allow far fewer). On average they would find an 8-character password from all four sets in about 5 hours, a 12-character letters-and-numbers password in about 500 years, and a 16-character password from all four sets in roughly two trillion years.

One caution: these figures only hold for passwords a generator picked at random. A password you invented, like Summer2026!, has the same length and character types as a random one but is far weaker, because attackers try human patterns first.

Character sets and fussy site rules

Tick all four sets when the site allows it. When a site rejects some symbols, untick symbols and make up the difference with length: letters and numbers give a pool of 62, so 18 characters gives about 107 bits, a little more than 16 characters with symbols (about 103). If a site accepts only a few specific symbols, generate without symbols and add one of the allowed ones yourself; a single added symbol does little harm, but do not replace random characters with a word.

If a site caps passwords at a short length such as 12, use the full 12 with all sets it accepts, and turn on two-factor authentication there if it is offered.

When to exclude look-alike characters

The "Exclude look-alikes" option removes 0, O, o, 1, l, I and |, characters that are easy to misread. Use it when you will type the password by hand or read it to someone: a Wi-Fi key on a smart TV, a router admin password, a printed recovery sheet. It shrinks the full pool from 88 to 81, which at 16 characters costs about 2 bits (103 down to about 101). If you want the lost strength back, add one character. For passwords that live in a password manager, leave it off; you will never read them.

What to do right after you generate

  1. Save it straight into your password manager before you submit the sign-up or change-password form, so a page error cannot leave you locked out.
  2. Do not paste it into chats, emails or plain notes. Those are stored and synced in places you do not control.
  3. Mind the clipboard. Clipboard history and sync features can keep copies. Copy something harmless afterwards, or use a password manager that clears its own clipboard.
  4. Use one password per account. Generating is free, so never reuse a generated password on a second site.
  5. Turn on two-factor authentication for email, banking and your password manager. A strong password does not help if it is phished.

What current guidance says

The US National Institute of Standards and Technology's digital identity guidelines (NIST SP 800-63B) tell sites to allow long passwords, to drop arbitrary composition rules and forced periodic changes, and to block passwords that appear in known breach lists. In practice that means a long, random, unique password that you change only when there is a reason, such as a breach, is the right approach. You can check whether a password has appeared in public breaches with the Pwned Passwords service on Have I Been Pwned, which checks it without sending the full password.

FAQ

Is it safe to use an online password generator?
It is safe when the password is created on your own device with a cryptographic random source and never sent anywhere. The GoToolsOnline generator runs in your browser with crypto.getRandomValues, does not send the password to our server and does not save it. Avoid generators that build the password on a server or show it inside a URL.
How long should a generated password be?
For accounts stored in a password manager, 16 to 20 characters is a sensible default. Sixteen characters from all four character sets gives about 103 bits of entropy. Use 20 or more for Wi-Fi keys and anything you rarely change.
What does bits of entropy mean?
It measures how many guesses a random password could take: each extra bit doubles the number. For a randomly generated password it is length multiplied by log2 of the pool size, so 16 characters from a pool of 88 is 16 × 6.46, about 103 bits. It only applies to random passwords, not ones a person picked.
A site will not accept symbols. What should I do?
Untick symbols and add length instead. Letters and numbers give a pool of 62, so 18 characters gives about 107 bits, slightly more than 16 characters with symbols.
Should I tick Exclude look-alikes?
Only when you will read or type the password by hand, such as a Wi-Fi key entered on a TV. It removes 0 O o 1 l I and |, shrinking the full pool from 88 to 81 characters, which costs about 2 bits at 16 characters. That is easy to make up with one extra character.
Generate a password: Password Generator — 8 to 128 characters, generated in your browser with crypto.getRandomValues. Nothing is sent or saved.

Try these free tools

No signup. Keep-list tools only — honest privacy notes live on each tool page.

  • 🔐Password Generator
    Open tool →
  • 🔐Hash Generator
    Open tool →
  • 📝Text Tools hub
    Open tool →
  • 📝Regex Tester
    Open tool →

← Blog index  |  Quick guides  |  All tools

We use cookies for analytics and to show ads. Learn more