Password Generator

Choose a mode and press Generate. Everything happens on this device.

Characters

Generated Locally in Your Browser

CalculateThisWay generates the password on this device using the browser's cryptographically secure random number generator. The generated secret is not sent to CalculateThisWay, stored in the page URL, or included in analytics.

What Makes a Strong Password?

A strong password should be difficult for someone else to guess or generate before the legitimate user can authenticate. For randomly generated passwords, length and randomness are especially important.

Current NIST guidance places strong emphasis on password length and no longer supports arbitrary composition rules that force every user-created password to contain a particular mix of uppercase letters, lowercase letters, numbers, and symbols. That does not mean numbers and symbols make a random password weaker. A generator can use a large character pool effectively because it is choosing characters randomly rather than asking a person to invent a memorable pattern.

The most important distinction is between a human-chosen password and a randomly generated password. People tend to create predictable patterns. A cryptographically secure generator does not.

How Does This Password Generator Work?

CalculateThisWay generates each secret entirely inside your browser using the browser's cryptographically secure random number generator, window.crypto.getRandomValues(). It does not use an ordinary, non-cryptographic pseudo-random number function. It does not send the password to a server. It does not include the password in analytics. It does not save the password in the URL.

You choose settings such as length, uppercase letters, lowercase letters, numbers, and symbols. The browser then securely selects characters from the chosen sets using rejection sampling, a technique that avoids modulo bias so every eligible character has an equal chance of being picked.

If you require at least one character from each selected category, the generator securely selects one guaranteed character from every selected group, securely fills the remaining positions from the combined pool, and then securely shuffles the final order using a Fisher-Yates shuffle driven entirely by crypto.getRandomValues(), never by an ordinary, non-cryptographic pseudo-random function. The generated password remains on your current device unless you choose to copy it.

Why Password Length Matters

NIST's current password guidance treats length as a major factor in password strength. A longer random password creates more possible combinations. If a random generator selects from N possible characters for each of L positions, the theoretical search space grows approximately as N raised to the power of L.

That growth is exponential. Adding one extra random character does not merely add N possibilities. It multiplies the existing number of combinations by N. This is why increasing length can make such a substantial difference.

Visual: Why Extra Length Multiplies the Search Space

Conceptual search-space growth at 8, 15, and 20 characters Three bars of increasing height labeled 8 characters, 15 characters, and 20 characters, illustrating that the search space grows exponentially, not in a straight line. No crack-time figures are shown. small 8 characters much larger 15 characters far larger still 20 characters

Conceptual illustration only. Bar heights are not to scale and no crack-time estimate is shown. Each added random character multiplies the number of possible combinations rather than simply adding to it.

Conceptual relationship between password length and relative search-space size
LengthRelative Search Space
8 charactersSmallest of the three
15 charactersMuch larger than 8 characters
20 charactersFar larger still than 15 characters

How Long Should My Password Be?

There is no single length accepted by every website. Current NIST SP 800-63B-4 (Final, July 2025) requires password verifiers following the guidance to use a minimum of 15 characters for a password used as a single authentication factor. Passwords used only as part of a multi-factor authentication process may use a shorter minimum, but NIST still sets a floor of at least 8 characters in that situation. Individual websites may use different requirements.

CalculateThisWay defaults to 20 random characters while still allowing shorter or longer outputs, from 8 up to 128 characters, when a service requires them. Common choices include 12-character, 16-character, 20-character, and 32-character passwords. Whenever possible, longer unique passwords are generally preferable to reusing shorter passwords across multiple accounts.

Do I Need Uppercase Letters, Numbers, and Symbols?

Some websites require them. Modern NIST guidance does not recommend imposing arbitrary composition rules on users choosing their own passwords. That is because people often respond predictably: told to add an uppercase letter, a person may capitalize the first character; told to add a number, they may append "1"; told to add a symbol, they may add "!" at the end.

A secure random generator behaves differently because every character can be selected randomly. If a website requires specific character classes, enable those settings in Random Password mode above. If it does not, length and secure randomness remain the main priorities for a machine-generated secret. You can also generate a password without symbols, or with only letters and numbers, simply by unchecking the groups you do not need.

What Is a Random Password?

A random password is generated by a process that does not depend on a person's favorite words, birthdays, pet names, keyboard patterns, or other predictable information. Examples of information you should never turn into a password include your name, a child's name, a birthday, a phone number, an address, the website's own name, or a common phrase.

The Password Generator never asks for personal information in order to create a secret. A secure password does not need to know anything about you.

What Is a Passphrase?

A passphrase is a password made from multiple words. Randomly selected words can create a long credential that may be easier for some people to type or remember than a long string of unrelated characters. The important word is randomly. A famous quote, song lyric, Bible verse, movie line, or common expression is not equivalent to a passphrase made from independently random words.

Passphrase mode above selects each word securely from a local word list of several hundred common, non-sensitive English words using window.crypto.getRandomValues(), never an ordinary, non-cryptographic pseudo-random function. Passphrase security depends heavily on randomness, the size of the word list, the number of words selected, and uniqueness, not on simply using dictionary words.

Visual: Random Password vs. Passphrase

Structure of a random password compared with a passphrase A random password is shown as a row of individual character blocks. A passphrase is shown as a smaller number of whole-word blocks. Placeholders only, not a real recommended secret. Random password: many individual random characters Passphrase: a smaller number of whole, independently random words word word word word +

Illustrative placeholders only, not real recommended secrets. A random password is a long sequence of individually random characters. A passphrase is a smaller number of independently, randomly selected whole words.

Structural difference between a random password and a passphrase
FormatStructure
Random passwordMany individually random characters
PassphraseA smaller number of independently random whole words

Example only. Do not use this exact passphrase. A five-word passphrase selected randomly from this generator's word list might look structurally like "forest-amber-quiet-harbor-42". That specific example is shown only to illustrate structure and separators. It is not a recommendation to use, and copying a published example anywhere defeats the purpose of random generation.

A passphrase can still fail if too few words are used, the words form a predictable phrase, the same passphrase is reused, the service itself is compromised, or the user is tricked by phishing. No password format solves every authentication threat.

Are Random Passwords Better Than Passwords I Make Up?

For high-value accounts, machine-generated unique passwords are often much harder to guess than human-created passwords of similar length. Humans tend to favor names, words, dates, patterns, repeated substitutions, and familiar keyboard sequences. A secure generator does not need the password to be memorable because a password manager can store it. NIST guidance supports the use of password managers and recommends that services allow password paste and autofill functionality.

Should I Use a Password Manager?

A reputable password manager can store unique credentials for different accounts and can generate random passwords. The main advantage is that you do not have to memorize every account password, which makes it more practical to avoid password reuse. The master credential protecting the manager itself needs strong protection. CISA guidance supports using password managers carefully and enabling multi-factor authentication for the password manager when it is supported.

Why Should Passwords Be Unique?

If one password is used on several websites and one site is breached, attackers can try the same email and password combination elsewhere. This is commonly called credential stuffing.

Visual: A Unique Password Per Account

Three separate accounts each paired with their own distinct password Account A, Account B, and Account C each connect to a separate, differently labeled password placeholder, illustrating that reusing one password across accounts is avoided. No real secrets are shown. Account A Account B Password A Password B Password C Account C

Each account is paired with its own distinct, independently generated password. No actual secret values are shown; labels are placeholders only.

Each account paired with a separate password placeholder
AccountPassword
Account AUnique Password A
Account BUnique Password B (different from A)
Account CUnique Password C (different from A and B)

Unique passwords limit the damage of one compromised account. Instead of changing the same reused password everywhere after a breach, only the affected account needs that specific credential replaced.

Should I Change Passwords Every 30, 60, or 90 Days?

Current NIST verifier guidance does not recommend forced periodic password changes simply because a certain number of days passed. Password changes should occur when there is evidence or reason to believe the credential has been compromised, or when a service otherwise requires a change. Repeated forced changes can encourage predictable behavior, such as changing one password into a near-identical successor, which does not necessarily improve security.

Are Passwords Phishing-Resistant?

No. NIST explicitly notes that passwords are not phishing-resistant. A very long password can still be given to a fake login page. This is why password security should be combined with stronger authentication practices where available, including multi-factor authentication, security keys, passkeys, and other phishing-resistant authenticators.

Visual: Password Plus MFA or a Passkey

A password combined with a second authentication factor A box labeled Password, one authentication factor, plus a box labeled MFA or Passkey, a second factor, combine into a box labeled Stronger Sign-In. A note states this generator does not replace MFA or passkeys. Password(one factor, not phishing-resistant) + MFA / Passkey(second factor) = Stronger Sign-In

A password is one authentication factor and is not phishing-resistant by itself. This generator creates passwords, passphrases, and PINs; it does not replace multi-factor authentication or passkeys where a service offers them.

Combining a password with a second authentication factor
ComponentRole
PasswordOne authentication factor, not phishing-resistant on its own
MFA or passkeyA second, often phishing-resistant factor
CombinedStronger sign-in than a password alone

A Password Generator solves the problem of generating a difficult-to-guess secret. It does not solve every authentication problem.

What Is Password Entropy?

Entropy is sometimes used to describe the uncertainty or theoretical search space of randomly generated data. For a uniformly random password with N possible characters and L positions, an approximate information measure is L multiplied by log2(N).

Possible combinations (approximate): NL
Approximate randomness: L × log2(N) bits
Example

Suppose a password uses all four character groups with no exclusions and no spaces, giving a pool of 87 possible characters (26 uppercase, 26 lowercase, 10 digits, and 27 symbols), at a length of 20 characters. The approximate randomness is 20 × log2(87), which is about 20 × 6.44, or roughly 129 bits. The approximate number of combinations is about 87 to the power of 20, an astronomically large figure expressed here as an estimate rather than an exact count.

That calculation is meaningful only when the selection process actually behaves randomly. It should not be used to pretend a user-created phrase has the same strength as a uniformly random password that happens to share the same length and character types. CalculateThisWay labels this figure as an estimate for the random-generation process, not a universal score for every possible password.

If the algorithm guarantees one character from every selected category, as Require At Least One Character From Each Selected Group does above, the true random distribution is slightly more constrained than a simple pool-size calculation suggests. This generator labels that figure as an approximation rather than an exact value, and prefers the phrase "approximate random search-space strength" rather than claiming guaranteed security.

Why This Generator Uses Browser Crypto

Ordinary pseudo-random functions built into general-purpose programming languages can be useful for games, visual effects, and simulations. Passwords require stronger randomness. Modern browsers provide Web Crypto, including crypto.getRandomValues(), specifically for obtaining cryptographically strong random values. CalculateThisWay uses that API for every character, word, and digit this tool selects, and for the secure shuffle step used when you require one character from each selected group.

If secure browser randomness is unavailable, this page tells you that secure generation is unavailable in your browser rather than silently switching to a weaker random function.

What Is a Random PIN?

A PIN uses digits rather than a larger password character set. A six-digit PIN has one million possible values, from 000000 through 999999. That is far smaller than the search space of a long random password. PIN security therefore depends heavily on the system limiting repeated attempts and on the PIN being used in the right context. Random PIN mode above can create the digits securely, but a short PIN and a 20-character random password do not provide equivalent protection.

Is It Safe to Copy a Password?

Copying can be convenient when moving a generated password into a password manager or an account creation form. However, clipboard contents can sometimes be read by other software running on a device. CalculateThisWay never claims copying has zero risk. Copy Password above copies the secret only when you explicitly click the button, and this page avoids storing the secret anywhere else.

Should I Email a Generated Password to Myself?

This page does not encourage that. For that reason, unlike many CalculateThisWay calculators, Password Generator does not have an Email Result function, and it never places the password inside a share URL. Use a password manager or another appropriately secure storage method rather than sending a generated credential through ordinary email.

Why CalculateThisWay Does Not Save Your Generated Password

A password generator does not need to remember the output. Once generated, the secret remains only in the current page session unless you choose to copy it. This website does not save it in browser storage, send it to analytics, attach it to a URL, send it to a server, or print it in a PDF. This reduces unnecessary exposure.

The Bottom Line

A useful password generator should be random, local, private, transparent, and easy to customize. For most users, strong account security also means using unique credentials, using a password manager, turning on MFA where appropriate, and using phishing-resistant options such as passkeys when available. A password generator is one part of account security, not the entire solution.

Which Tool Do I Need?

Password Generator (this page)

I need a strong random password, passphrase, or PIN created securely in my browser, with no secret saved or sent anywhere.

Unit Converter

I want to convert length, weight, temperature, volume, area, or speed between units.

Time Zone Calculator

I want to compare times across time zones or schedule something across locations.

Roman Numeral Converter

I want to convert between Roman numerals and ordinary numbers.

Questions People Ask

What is a password generator?

A password generator is a tool that creates passwords using an automated, randomized process instead of asking a person to invent one. This generator runs entirely in your browser and uses the Web Crypto API for randomness.

Is this password generator secure?

This generator uses your browser's cryptographically secure random number generator, window.crypto.getRandomValues(), for every character, word, and digit it selects. It avoids modulo bias with rejection sampling and securely shuffles results when you require one character from each selected group.

Does CalculateThisWay save my password?

No. The generated password, passphrase, or PIN is not saved to a server, not stored in browser storage, and not included in analytics. It stays on your device for the current page session unless you choose to copy it.

Does my password leave my browser?

No. Generation happens entirely on your device. Nothing about the generated secret is sent over the network.

How long should a password be?

There is no single length required by every website, but current NIST guidance favors at least 15 characters for a password used as a single authentication factor. This generator defaults to 20 characters and supports lengths from 8 to 128.

Why does NIST recommend longer passwords?

NIST's current guidance places strong emphasis on length because a longer random password creates a much larger search space for an attacker to work through, and it de-emphasizes older composition rules that force specific character mixes.

Should passwords contain symbols?

Symbols are optional. Modern NIST guidance does not require a specific mix of character types for user-created passwords. For a randomly generated password, including symbols simply adds to the character pool the generator can choose from.

Do I need uppercase letters?

Only if a particular website requires them. This generator lets you enable or disable uppercase letters, lowercase letters, numbers, and symbols independently.

Is a 12-character password strong?

A random 12-character password using a large character pool can still have a meaningful search space, but current NIST verifier guidance favors at least 15 characters for a single-factor password, so 12 characters falls below that guidance.

Is a 16-character password strong?

A random 16-character password from a large character pool has a large approximate search space and exceeds the 15-character floor in current NIST verifier guidance.

Is a 20-character password strong?

A random 20-character password, which is this generator's default, has a very large approximate search space when drawn from a broad character pool and comfortably exceeds current NIST verifier guidance.

What is a random password?

A random password is generated by a process that does not depend on names, birthdays, pet names, keyboard patterns, or other predictable personal information. Each character is chosen independently and randomly.

What is a passphrase?

A passphrase is a password made from multiple randomly selected words, joined with a separator. This generator selects each word securely from a locally bundled word list.

How many words should a passphrase contain?

This generator supports 4 to 8 words. More words increase the approximate search space, assuming each word is selected independently and randomly.

Is a passphrase safer than a password?

Neither format is automatically safer. Safety depends on randomness, the size of the word list or character pool, and the length or word count, not on the format alone.

What is password entropy?

Entropy here describes an approximate information measure for a randomly generated secret, calculated as length multiplied by log2 of the character pool size, or word count multiplied by log2 of the word list size for a passphrase.

Can you calculate exactly how long a password takes to crack?

No. Actual attack speed depends on the attacker's hardware, method, and the service's own defenses, which this generator cannot know. It shows an approximate search-space size instead of a crack-time estimate.

Why doesn't this calculator show crack time?

Crack-time claims depend on assumptions about attacker hardware and attack method that vary enormously and cannot be verified. This generator instead shows length, character pool size, and approximate combinations and bits, labeled clearly as an approximation.

Should I use the same password twice?

No. Reusing a password across sites means that if one site is breached, attackers can try the same credential elsewhere, a technique known as credential stuffing.

What is credential stuffing?

Credential stuffing is when attackers take username and password pairs exposed in one breach and try them against other websites, hoping people reused the same password.

Should I use a password manager?

A reputable password manager can store unique, randomly generated passwords for each account so you do not need to memorize them. CISA guidance supports using password managers carefully alongside multi-factor authentication.

Should I change passwords every 90 days?

Current NIST verifier guidance does not recommend forcing password changes on a fixed schedule like every 30, 60, or 90 days. Repeated forced changes can encourage predictable patterns instead of improving security.

When should I change my password?

Change a password when there is reason to believe it has been exposed or compromised, or when a service specifically requires a change, rather than on an arbitrary calendar.

Are passwords phishing-resistant?

No. NIST explicitly notes that passwords are not phishing-resistant. Even a long, randomly generated password can be typed into a fake login page.

What is MFA?

MFA, or multi-factor authentication, requires more than one form of proof to sign in, such as a password plus a code or security key, which adds protection beyond the password alone.

What is a passkey?

A passkey is a phishing-resistant sign-in credential that typically replaces or supplements a password. This generator creates passwords, passphrases, and PINs, and does not replace the need for passkeys or MFA where a service offers them.

Is a six-digit PIN secure?

A six-digit PIN has far fewer possible combinations than a long random password. Its practical security depends heavily on the service limiting repeated attempts rather than on the PIN alone.

How many possible six-digit PINs are there?

There are 1,000,000 possible six-digit PINs, from 000000 through 999999.

Does this generator use an insecure random function?

No. This generator uses window.crypto.getRandomValues() exclusively for every random selection, including character choices, word choices, digit choices, and the secure shuffle step. It never uses an ordinary, non-cryptographic pseudo-random function.

What is Web Crypto?

Web Crypto is a browser API that includes crypto.getRandomValues(), a source of cryptographically strong random values suitable for generating secrets, unlike ordinary pseudo-random functions.

Can I generate a password without symbols?

Yes. Uncheck Symbols in Random Password mode and the generator will only use the character types you leave selected.

Can I exclude confusing characters?

Yes. Enable Exclude Similar Characters to remove characters that are easy to misread, such as 0, O, o, 1, l, and I, from the generated output.

Can I generate a WiFi password?

Yes. Random Password mode with a long length and a full character pool works well for a WiFi network password, as long as your router accepts the length and characters you choose.

Can I email the generated password?

This generator intentionally does not include an email-sharing feature for the generated secret. Sending a generated password through ordinary email is discouraged; consider a password manager instead.

Can I print the generated password?

Print or Save as PDF intentionally omits the generated secret and replaces it with a placeholder notice, so the printed page never contains your actual password, passphrase, or PIN.

Why isn't my generated password included in the share link?

Copy Page Link only copies this page's web address. Including a generated secret in a shareable link would risk exposing it, so this generator never places it there.

Sources & Further Learning

Methodology & Limitations

This tool generates passwords, passphrases, and PINs for your own use and provides general educational information about password security. It is not a guarantee of account security, it does not replace multi-factor authentication or passkeys, and no password format is immune to phishing or to a compromised service. For official guidance, consult NIST SP 800-63B-4 and CISA's password and account-security resources.