Calculators Converters Generators Developer Tools Finance Tools Writing Tools SEO Tools
Blog About Contact

Password Generator

A password generator creates random character strings that resist the guessing attacks used against real accounts. The threat is not a person typing guesses: it is software testing billions of candidates per second against a stolen password database, working from dictionaries, previous breaches, and the substitution patterns people reach for when asked to include a symbol. Randomness defeats that because there is no pattern to exploit. This generator produces passwords from 6 to 64 characters using the Web Crypto API, the browser interface designed for cryptographic randomness rather than the ordinary random number function used for animations and shuffling. It reports strength as entropy in bits, which is the measure that actually predicts how long a password survives, rather than a label based on length alone. Generation happens entirely in your browser. No password is transmitted, logged, or stored.

How to Use the Password Generator - Step by Step

  1. Set "Password Length" using the slider - the range is 6 to 64 characters and the default is 16. Length matters more than any other setting because entropy scales linearly with it. Each additional character multiplies the number of possible passwords by the size of the character pool. For accounts that matter, 16 characters is a sensible floor and 20 or more is better.
  2. Enable "Uppercase (A-Z)" - adds 26 characters to the pool. Keep it on unless a site rejects mixed case, which some older banking systems still do.
  3. Enable "Lowercase (a-z)" - adds another 26 characters. There is no reason to disable this.
  4. Enable "Numbers (0-9)" - adds 10 characters. Many sites require at least one digit, and the generator draws randomly so a digit is not guaranteed to appear in short passwords. If a site rejects the result for missing a number, generate again.
  5. Enable "Symbols (!@#)" - adds 26 punctuation characters. This is the single largest contributor after length. Some systems reject certain symbols, so if a password is refused, try again without this option and add four characters of length to compensate.
  6. Click "Generate Password" - the tool requests random values from the Web Crypto API and maps them onto the enabled character pool. Every click produces a fresh password with no relationship to the previous one.
  7. Read the "Strength" indicator - it shows a label and the entropy in bits. Bits are the number that matters. Below 50 bits is weak against an offline attack. Above 100 bits is beyond any foreseeable brute force capability. All four sets enabled at 16 characters gives 103 bits.
  8. Click "Copy Password" and paste it straight into a password manager - do not attempt to memorise it. A generated password you cannot remember is doing its job. The password manager is what makes long random passwords practical, and it is the reason you never need to reuse one.

How Password Entropy Is Calculated

Entropy (bits) = L x log2(R) where R = 26 (uppercase) + 26 (lowercase) + 10 (numbers) + 26 (symbols) = 88 with all sets enabled Guesses to exhaust half the keyspace = 2^(bits - 1)
L
Password Length

The number of characters generated. This tool allows 6 to 64. Entropy scales linearly with length, so doubling the length doubles the bits.

R
Pool Size

The number of distinct characters available at each position, determined by which sets are enabled. This tool offers 26 uppercase, 26 lowercase, 10 numbers, and 26 symbols, for a maximum pool of 88.

log2
Base-2 Logarithm

Converts the pool size into bits per character. A pool of 88 gives log2(88) = 6.46 bits per character. A pool of 10 gives only 3.32.

Entropy measures how many guesses an attacker must make on average, expressed as a power of two. Each character contributes log2(R) bits, so total entropy is length multiplied by that figure. The formula assumes every character is chosen independently and uniformly at random, which holds for a generated password and does not hold for anything a person invents. A human-chosen password like Summer2026! has a nominal entropy of about 72 bits by the formula, but its real guessing resistance is a small fraction of that, because a cracking dictionary tests season plus year plus punctuation early. The formula is only valid for genuinely random selection. Two limitations of the numbers on this page. First, the guessing rates cited assume an offline attack against a stolen database hashed with a fast algorithm. A site using a slow hash such as bcrypt or Argon2 reduces attack speed by several orders of magnitude, and an online attack against a rate-limited login form is slower still. Second, entropy says nothing about whether a password has already leaked. A 200-bit password that appears in a breach corpus is worth nothing, which is why uniqueness matters as much as strength.

Password Generator - Worked Examples with Entropy

Example 1 - Standard Account, Default Settings

Sixteen characters with all four sets enabled gives a pool of 88 possible characters at each position. Entropy is 16 x log2(88) = 16 x 6.46 = 103.4 bits. An attacker with a stolen password database, testing a trillion candidates per second against a fast hash, would need approximately 205 billion years to exhaust half the keyspace. This is the right default for email, banking, and anything holding personal data.

Inputs

Length: 16 - Uppercase, Lowercase, Numbers, Symbols all enabled

Result

103 bits of entropy - labelled Very Strong

Example 2 - The Cost of Unchecking Boxes

The same 16 characters with only numbers enabled gives a pool of 10. Entropy falls to 16 x log2(10) = 53.2 bits, and the same attacker exhausts half the keyspace in roughly 83 minutes. The password is the same length and looks similarly unmemorable, but it is 50 bits weaker. This is why entropy is reported rather than length alone: length and strength are not the same thing.

Inputs

Length: 16 - Numbers only

Result

53 bits of entropy - labelled Fair

Example 3 - Master Password for a Password Manager

A password manager vault protects every other credential you hold, so it warrants more. Thirty-two characters with all four sets gives 32 x log2(88) = 206.9 bits. This is far beyond any practical attack and there is no reason to go further. Note that a vault master password is the one you do have to memorise, so many people prefer a long random passphrase for this single case and use generated passwords everywhere else.

Inputs

Length: 32 - Uppercase, Lowercase, Numbers, Symbols all enabled

Result

207 bits of entropy - labelled Very Strong

Who Uses the Password Generator?

Anyone Setting Up a New Account

Generating a unique password at the moment of signup and saving it straight to a password manager, rather than reaching for a variation of an existing password. This is the single habit that limits the damage of a breach, because a credential stolen from one site cannot be replayed against another.

People Recovering From a Breach Notification

Replacing every password that shared a pattern with a compromised one. Attackers do not stop at the exact string they stole: they test predictable variations of it across other services, so changing one character is not a fix.

Developers and System Administrators

Producing random values for database credentials, service account passwords, and API secrets during deployment, where the string is stored in a secrets manager and never typed by a human, so maximum length carries no usability cost.

Households Securing Network Equipment

Replacing the default router administration password and the Wi-Fi passphrase, both of which ship with predictable values that are published in manufacturer documentation and indexed in searchable default password lists.

Common Password Mistakes to Avoid

⚠️Judging Strength by Length Alone

A 16-character password using only digits carries 53 bits of entropy and falls to an offline attack in roughly 83 minutes. The same length using all four character sets carries 103 bits and is beyond any practical attack. Length and strength are not interchangeable: what matters is length multiplied by the bits contributed per character. This is why the tool reports entropy rather than a label derived from length.

⚠️Substituting Characters in a Word and Calling It Random

Turning password into P@ssw0rd adds no meaningful security. Every cracking tool applies these substitutions automatically as one of the first transformations it tries, because the pattern is universal. The formula would score P@ssw0rd! at roughly 58 bits, but its real guessing resistance is closer to a handful of bits, because the search space an attacker explores is dictionary words plus known substitutions, not all possible strings.

⚠️Reusing One Strong Password Everywhere

A single 103-bit password used across twenty sites provides 103 bits of protection against brute force and none at all against credential stuffing. When any one of those twenty sites is breached, the attacker has a working credential for the other nineteen. Uniqueness is a separate property from strength and neither substitutes for the other.

⚠️Changing Passwords on a Schedule

Mandatory rotation every 60 or 90 days is a legacy practice that current guidance from NIST advises against, because it pushes people toward predictable increments such as appending a number that goes up by one each cycle. Change a password when there is reason to believe it is exposed, not on a calendar. A long unique random password left alone is safer than a shorter one rotated quarterly.

Entropy by Length and Character Set

Entropy in bits for each combination available in this tool, with time to exhaust half the keyspace at one trillion guesses per second. That rate models an offline attack against a stolen database using a fast hash. A site using bcrypt or Argon2 would be far slower, and an online login form slower still.

LengthSets EnabledPoolEntropyTime to Crack
6All four8839 bitsUnder one second
8All four8852 bits30 minutes
12All four8878 bits3,400 years
16Numbers only1053 bits83 minutes
16Lowercase only2675 bits600 years
16All four88103 bits205 billion years
20All four88129 bitsBeyond meaningful estimate
32All four88207 bitsBeyond meaningful estimate

Verification. Pool with all sets enabled: 26 uppercase + 26 lowercase + 10 numbers + 26 symbols = 88. Entropy at 16 characters: 16 x log2(88) = 16 x 6.4594 = 103.35 bits, shown as 103. Guesses to exhaust half the keyspace: 2^102 = 5.07e30. At 1e12 guesses per second that is 5.07e18 seconds, or approximately 205 billion years. Numbers only at 16 characters: 16 x log2(10) = 16 x 3.3219 = 53.15 bits, shown as 53. 2^52 = 4.50e15 guesses, which at 1e12 per second is 4,504 seconds, approximately 75 to 83 minutes depending on rounding. Confirmed.

Frequently Asked Questions

Sixteen characters with all four character sets enabled is a sensible default, giving 103 bits of entropy, which is beyond any foreseeable brute force attack. Twenty or more is better for accounts that protect other accounts, such as your primary email or a password manager vault. Length is the most effective single lever because entropy scales linearly with it: each additional character adds another 6.46 bits when all sets are enabled.
Entropy measures how many guesses an attacker needs on average, expressed in bits. Each bit doubles the work. A 50-bit password requires about a thousand trillion guesses, while a 100-bit password requires that number squared. It matters because it is the only strength measure that accounts for both length and character variety. A 16-character numeric password and a 16-character full-set password differ by 50 bits despite being the same length.
Generation happens entirely in your browser using the Web Crypto API. No password is transmitted to any server, logged, or stored. You can verify this by opening your browser developer tools, switching to the network tab, and generating a password: no request is made. That said, the safest place for a password you care about is one generated by your password manager, which never leaves the vault at all.
Math.random is designed for speed in games, animations, and shuffling. Its output is predictable to anyone who can observe enough of it, which makes it unsuitable for anything security related. crypto.getRandomValues draws from the operating system entropy pool and is designed to be unpredictable even to an attacker who has seen previous output. This tool uses crypto.getRandomValues. Any generator using Math.random should be avoided for passwords.
Both work if they are long enough, and the difference is where the entropy comes from. A random 16-character password from this tool gives 103 bits. A passphrase of four words drawn randomly from a 7,776 word list gives 51.7 bits, which is considerably less. Six random words gives 77.5 bits. Passphrases are easier to type and remember, which makes them a good choice for the few passwords you must memorise, such as a vault master password. Use generated passwords for everything else.
It depends on whether the password is random. Enabling symbols expands the pool from 62 to 88 characters, which raises entropy from 5.95 to 6.46 bits per character. At 16 characters that is a gain of roughly 8 bits, meaningful but smaller than adding two more characters. On a human-chosen password, appending an exclamation mark adds almost nothing, because it is the most common symbol choice and cracking tools test it first.
Most commonly the site imposes a maximum length, often 20 or 32 characters, or disallows certain symbols. Some legacy systems reject characters that could interfere with their own parsing, such as quotes or angle brackets. If a password is refused, either shorten it or generate again with symbols disabled and add four characters of length to recover the lost entropy. A site with a low maximum length is telling you something about how it stores your password.
Not on a schedule. Current NIST guidance advises against mandatory periodic rotation, because it drives people toward predictable increments such as adding a number that increases each cycle, which weakens rather than strengthens. Change a password when you have reason to believe it is exposed: a breach notification, a shared device, or a credential you typed on a network you did not trust. Otherwise leave a strong unique password alone.
Credential stuffing is the automated replay of username and password pairs stolen from one breach against many other sites, and it works because most people reuse passwords. Strength alone does not defend against it: a 200-bit password reused across ten sites fails the moment any one of those sites is breached. What defends against it is uniqueness. Generating a fresh password per account means a single breach compromises exactly one account.
A password manager, which is the tool that makes long random passwords practical. It stores every credential encrypted behind one master password, fills them automatically, and removes any reason to reuse. The common objection is that it creates a single point of failure, which is true, and it is still a substantial improvement over the alternative of reused or written down passwords. Protect the vault with a long passphrase and enable two-factor authentication on it.

Why Use the Password Generator on GlobalUtilityHub?

The Password Generator is part of our collection of 68 free online utilities designed to make your life easier. We understand that in today's fast-paced digital world, you need tools that are not only accurate but also respect your time and privacy. That's why our password generator runs entirely on the client side, meaning your data is processed instantly in your browser and never sent to any server.

Our commitment to a premium user experience means you won't find intrusive pop-ups or mandatory registration requirements here. Whether you are using this generator for professional work, academic research, or personal planning, you can count on a clean, ad-light interface that works perfectly on any device - from high-resolution desktops to small smartphone screens.

Every tool on our platform, including the Password Generator, is regularly updated to ensure compliance with modern standards and mathematical accuracy. By choosing GlobalUtilityHub, you are joining a community of millions of users who trust us for their daily calculation, conversion, and generation needs. Explore our other Generators or check out our blog for deep-dive guides on how to optimize your productivity.

📖

Expert Guide: Password Generator

Learn the science and best practices behind password generator in our detailed guide.

Read Article →