Free · runs in your browser

Pattern Based Password Generator

Pattern Based Password Generator. Type your own template to generate a password matching your exact pattern. The free passphrase generator gives you a copy-ready result instantly, with no account required.

Your values
Generate a

A pattern fixes where each character type goes; a random password mixes characters freely; a passphrase joins random words.

U (or L) = uppercase letter, l = lowercase letter, d = digit, s = symbol (!@#$%&*?+=), a = any letter or digit. Any other character, such as a dash, is kept as typed; put a backslash before a placeholder letter to keep it as typed (\a gives a).

Result

Generated password
—
Password strength
—
Estimated crack time (average, 100 billion guesses/second)
—
Entropy
—
Possible combinations
—
Length
—
  • No account, no logging
  • Open formulas explained below
  • Works offline once loaded

Build a password around a shape you choose instead of leaving everything to chance: a pattern based password generator lets you spell out, slot by slot, where uppercase letters, digits and symbols go, then fills every slot with a random character. You type a mask such as Ullll-dd-llllU-ds-llll, click generate, and copy a unique combination to your clipboard in one tap, with strong passwords ready for every login in seconds.

How a Pattern Based Password Generator Builds a Password

A mask is a short recipe. Each letter in the recipe stands for a character type, and the generator replaces it with one character drawn at random from that type. Anything that is not a recipe letter, such as a dash, is copied through unchanged. The mask controls the shape of the result; the randomness controls everything inside that shape. The memorable password generator is completely free to use, with no rate limits, watermarks, or hidden restrictions.

That split is what makes the approach practical. A plain random password generator gives you a block like q7$Zr!k2Lm that satisfies every rule and is miserable to read back to a colleague. A mask lets you group the characters, add dashes as a separator, and place the digit and the symbol exactly where a stubborn login form wants them, while the cryptographic randomness underneath stays intact.

Password length and character types

Two choices decide almost all of the password strength you get: the password length and the pool each slot draws from. A lowercase slot has 26 options, an uppercase slot has 26, a digit slot has 10, and a symbol slot has as many options as the symbol set you allow. Adding one more slot multiplies the number of possible results, so length wins over cleverness every time. Current security best practices point to at least 14 characters for an account you care about, and the worked example below goes well beyond that.

Where randomness comes from

Good tools lean on cryptographic randomness supplied by the operating system, not on a simple clock-seeded function. The same algorithm that picks a character for slot one has no memory of what it picked for slot two, so no slot leaks information about its neighbours. Well-reviewed algorithms for this job are public, so a secure passwords tool never needs to hide how its passwords are made. Secure passwords start with honest randomness; for the rest, see the security notes later in this guide.

Pattern Symbols You Can Use in an Online Password Generator

An online password generator that accepts masks usually offers a small alphabet of codes. The set used throughout this guide is deliberately short so you can memorize it in a minute. When you need to generate a bulk password, this free browser-based tool does it instantly.

  • U picks one of 26 uppercase letters.
  • l picks one of 26 lowercase letters.
  • d picks a digit from 0 to 9, which covers your numbers requirement.
  • s picks one of ten special characters: ! @ # $ % & * ? + =
  • Any other character, including a dash, stays exactly as typed.

Mix these freely. A mask of eight l codes gives plain lowercase letters, while a mask that alternates all four types produces the familiar mix of letters, numbers and symbols. Keep the symbols to characters that every site accepts; some older sign-up forms reject spaces, quotes and angle brackets, so a conservative symbol set saves you a failed submission.

The Formula Behind Password Strength in a Random Password Generator

Strength is counted in bits of entropy. Every slot contributes the base-two logarithm of its pool size, and a pattern's total is the sum:

$$\text{combinations} = \prod_{i=1}^{n} p_i \qquad H = \sum_{i=1}^{n} \log_{2}(p_i)$$

Here \(p_i\) is the pool size of slot \(i\) and \(n\) is the number of random slots. Literal characters such as dashes add nothing, because an attacker already knows they are there. To turn bits into time, divide the total combinations by two (an attacker finds the answer, on average, halfway through) and by the guess rate:

$$t = \frac{\text{combinations}}{2 \times \text{guesses per second}}$$

Formula card showing password entropy as the sum of log2 of each slot's pool size, with the example mask giving 79.1 bits
Entropy is the sum of the bits each random slot contributes; literal dashes contribute none.

Estimated crack time and what it assumes

Every estimated crack time hides an assumption about the attacker's hardware. This guide uses 100 billion guesses per second against an offline copy of a leaked hash, which is a pessimistic setting for you and a generous one for the attacker. Strong, salted hashing slows the real attacker down, so treat the figure as a floor. An approximate crack time of centuries under such a harsh assumption leaves comfortable room for error.

Worked Example: Reading a Pattern Step by Step with a Free Password Generator

Take the mask Ullll-dd-llllU-ds-llll. It is 22 characters long, but only 18 are random; the three dashes are literals. The slots break down as follows:

  1. Two uppercase slots: \(26 \times 26 = 676\) options.
  2. Twelve lowercase slots: \(26^{12} \approx 9.54 \times 10^{16}\) options.
  3. Three digit slots: \(10^{3} = 1{,}000\) options.
  4. One symbol slot: 10 options.

Multiplying everything gives \(676 \times 9.54 \times 10^{16} \times 1000 \times 10 \approx 6.45 \times 10^{23}\) possible passwords. In bits, that is \(2 \times 4.70 + 12 \times 4.70 + 3 \times 3.32 + 3.32 \approx 79.1\). Using the formula above, the average attack takes about 102,000 years at 100 billion guesses per second. A sample result from this mask looks like Kwmzt-47-hbqfR-8%-dvxjn.

Waterfall chart showing 2 uppercase, 12 lowercase, 3 digit and 1 symbol slots adding up to 79.1 bits of password strength
Where the 79.1 bits in the worked mask come from, by character type.
Worked Example: Reading a Pattern Step by Step with a Free Password Generator
PatternRandom slotsCombinationsBitsAverage time to guess
llllllll82.09 × 101137.6about 1 second
Ullllldd83.09 × 101034.8about 0.15 seconds
Ullll-dd-llllU-ds-llll186.45 × 102379.1about 102,000 years
12 characters from all 94 printable symbols, letters and numbers124.76 × 102378.7about 75,000 years

Notice the second row. Capital letter plus lowercase plus two digits feels complex, yet it is weaker than eight lowercase letters, because it has only 8 random slots and the digits are confined to pools of 10. A 12-character fully random password lands almost exactly where the long mask does. The mask reaches the same strength with letters you can read aloud, which is the whole appeal.

Bar chart comparing entropy of four password shapes from 34.8 bits for Ullllldd to 79.1 bits for the long mask
Slot count, not look-alike complexity, decides strength.

Why the symbol pool matters less than slot count

Replacing the one symbol slot with another lowercase letter would change the total by only about 1.4 bits. Replacing it with a longer run of lowercase letters would add 4.7 bits per slot. When a site caps the symbols you may use, spend your effort on extra slots rather than exotic characters.

Setting a Router Admin Password with a Free Password Generator

A clinic's office manager is replacing the admin login on a new router. The vendor's setup page accepts up to 24 characters, and the clinic's own policy asks for at least 16, which is also above the 15-character floor that NIST SP 800-63B-4 sets for a password used as the only authenticator.

The manager opens the mask field and enters UlllllUlll-dddd-lllll-s. That is 22 characters, so it fits the 24-character limit, and 20 of them are random slots: 2 uppercase, 13 lowercase, 4 digits and 1 symbol. One of the results the generator returns is QtzmwpVnck-5081-hxbdk-+.

Next comes the result panel. The pool sizes multiply to \(26^{15} \times 10^{5} \approx 1.68 \times 10^{26}\) combinations, which is 87.1 bits. At the same 100 billion guesses per second used earlier, an average search takes roughly 26.6 million years. For a router login that sits behind a vendor lockout, that comfortably clears the policy.

The decision follows from the number. Because the mask length (22) leaves two spare characters under the vendor's 24-character cap, the manager keeps the dashes as readable separators rather than dropping them to squeeze in another slot. The password then goes straight into the clinic's password manager entry for the router, and the printed copy in the equipment binder is skipped. If the vendor's form had rejected the + symbol, the manager's next move would have been to rerun the mask with the final s changed to d: both pools have ten options, so the strength stays at 87.1 bits.

Why a Password Creator Beats Bad Password Patterns

Humans are poor random number generators, and their passwords show it. Faced with a blank field, most people reach for the same bad password patterns: a pet's name, a date, a keyboard run such as qwerty, or a word with common substitutions. The letter-for-number swap, turning an e into a 3, fools nobody, because hackers bake those swaps into their tools.

The habits attackers count on

  • Personal info such as names, birthdays and phone numbers, all of which show up in public profiles.
  • Keyboard patterns that follow the layout of the keys.
  • A dictionary word followed by a number and a symbol, the most common way to satisfy a composition rule.
  • A weak password reused on several accounts, so one leak opens them all.

A mask-driven generator does not remove the pattern, it moves it. The shape is public and costs you almost nothing in strength, since our formula already assumed the attacker knows the mask. Only the contents of each slot are secret, and those come from the generator, not from your habits.

How attackers actually guess

Weak passwords are cracked first, and cracked lists circulate for years. Cracking usually starts with a wordlist and a dictionary, tries trial and error with common variations next, and finishes with brute force against every combination. A brute-force run is only feasible when the space is small. Against 6.45 × 1023 options, the final stage never ends in your lifetime. Many wordlists exist for the earlier stages, and none of them contain a random slot sequence, so a generated string never matches.

Passphrase Generator vs Pattern Masks: Choosing the Right Tool

A passphrase generator strings together random words from a list, often joined by dashes: the famous correct-horse-battery-staple example from the xkcd comic. A passphrase is long and easy to remember, and four or more words chosen at random hold up well. Passphrases are also easy to type on a television remote or a game console, where symbols are painful to enter.

A mask suits different situations, and a strong password generator that supports masks covers both worlds. If a site insists on a capital letter, a digit and a symbol, or limits the total length, a mask gives you exact control. If you can type freely and want something to memorize, choose words. For a vault or a master password you really will need to recall, diceware, which uses physical dice and a printed list, is the approach with the least trust in any device.

When a passphrase wins

Choose words when you will be memorizing the result and typing it by hand. Choose a mask when software will fill it in and the site's rules are strict.

Making Strong Password Ideas Easy to Remember

You rarely need to remember a generated string, because a password manager will. For the few you do, use a mask that reads in chunks. Five-letter groups with a separator between them are far easier to hold in your head than twenty undivided symbols, and a pronounceable layout of consonant and vowel codes is easy to say aloud over the phone. Any password built this way is memorable enough to remember if you type it a few times, though you should never rely on that for the accounts that matter most.

Looking for password ideas rather than finished passwords? Start from a mask. Try three-block shapes, vary the position of the digit pair, and generate a dozen results. Pick the one whose chunks you find easiest to read. Choosing among random outputs is safe; editing one to make it more personal is not.

Keeping Output from a Password Generator Tool Safe

A password generator tool is only as trustworthy as where the characters are made. The safest design is one where the password is generated locally inside your browser and never sent anywhere. Passwords made in your browser never touch a server, so nobody else can log or intercept them. Look for open source code you can inspect, and for a clear statement about what, if anything, gets stored.

Save it the right way

Once a mask run gives you a result, copy it and save it in a password manager without editing it; any hand-tweak removes the randomness the slots supplied, and never store secure passwords in a spreadsheet or a browser note. Good managers keep the entry encrypted in a vault using zero-knowledge design, and autofill it across your devices, so you remember only one password, the master password, and never need to memorize the rest. Add multifactor authentication. A password stored only in a note or a chat message can leak with the rest of that app.

Why every login needs its own password

Reuse is the quiet cause of most account takeovers. When a data breach exposes one site's list of credentials, attackers try the same email and password everywhere else. Running your mask once per login gives each account unique passwords with a fresh unique value, so every breach stays contained, and the breaches that make headlines stop mattering to your other accounts.

Bulk Password Generator Use and Account Security

A bulk password generator produces many results from one mask at once, which helps in two cases: picking the most readable option from a batch, and preparing credentials for a group of new accounts, such as the laptops in a small business or the profiles in a family plan. Treat every batch like a stack of keys. Give each person their own, deliver it over a protected channel, and require a change at first login.

Match your mask to the site's security requirements

Before you generate, read the security requirements the site publishes. Some demand a minimum length, a number of special characters, a mix of letters, uppercase letters and lowercase letters alongside numbers and symbols, or a ban on repeated characters. Build the mask to meet them by construction. A mask also helps with account security for sites that cap the password length: you cannot exceed their limit, so you choose slots that give the most entropy per character.

Check, then customize

Many tools run the result through a checker such as zxcvbn, which scores password strength by looking for dictionary words, repeats and keyboard runs rather than merely counting character classes. If the score is low, customize the mask with additional slots rather than editing the output by hand, and generate again. Make a habit of testing against an online accounts checklist: unique, long, stored safely, and protected by authentication beyond the password.

Common Questions About Generated Passwords

Is a mask weaker than fully random output?

Slightly, for the same number of characters, because literal characters add nothing and each slot's pool can be smaller than 94. The worked example shows that a long mask reaches the same strength as a shorter fully random string, so the trade is about readability, not safety. Add slots and the gap closes.

Which hackers and attacks should you plan for?

A mask-generated password defeats the two attacks that depend on guessing: credential stuffing after a leak and offline guessing against stolen hashes, because no slot follows a human habit. Phishing is different, since it tricks you into typing the password into a fake page, so pair the password with multifactor protection. Many cyberattacks on personal accounts often begin with a convincing email, whichever mask you use.

Does a complex password need to be changed often?

No. A complex string that is long and unique can stay in place until a service reports that it was compromised. Frequent forced changes push people toward predictable edits, which is the opposite of what you want from complex passwords.

What data should never go into a mask?

Skip anything linked to sensitive data or to you: names, addresses, banking details, social media handles, and anything else an attacker can look up. The generator needs no input from your life, and the best results contain none. A good habit for privacy and cybersecurity alike is to treat each password as a random key, not a message, so it can never be guessed from context.

Build the shape, let the randomness fill it, then protect the result: a long, unique mask output lowers the risk of an attack succeeding and keeps your credentials safe and secure, with encryption in your manager doing the rest. A business that must show password compliance can map each rule to a slot in the mask.

Frequently Asked Questions

What do the pattern characters mean?
L = a random uppercase letter, l = a random lowercase letter, d = a random digit, s = a random symbol, a = any letter or digit (mixed case). Any other character in your pattern -- a hyphen, an underscore, a specific word -- is kept exactly as typed, letter for letter.
Why would I want to match a specific pattern instead of just generating a random password?
Some legacy systems or organizational policies require passwords in a specific shape -- e.g. 5 letters, a hyphen, then 4 digits -- rather than accepting any random mix. A pattern-based generator lets you satisfy an exact format requirement while keeping every placeholder character genuinely random.
How is the entropy calculated for a custom pattern?
Each placeholder character (L/l/d/s/a) contributes log₂(charset size) bits of entropy, and literal characters (kept as typed) contribute none, since they're not random. The total is the sum across every placeholder in your pattern -- a longer pattern with more placeholders is always stronger than a shorter one with the same character types.
Can I include a literal character that happens to be L, l, d, s, or a?
Not directly -- those five letters are always treated as placeholders in this tool's pattern syntax. If you need one of those exact letters to appear literally, generate the password and manually edit that one character afterward.
Is my pattern or generated password sent anywhere?
No. The entire pattern is parsed and the password generated locally in your browser using the Web Crypto API -- nothing is transmitted to a server or stored.

About the author

Vinitha Pu

Founder and designer

Vinitha Pu is a graphic designer based in Palakkad, Kerala, who builds free, privacy-friendly browser tools. She studied Textile and Apparel Design at Avinashilingam University and completed a C-Tech in Graphic Design at Image Creative Education in 2025. She designs, builds and maintains the password generators, strength checkers, hash tools and security calculators on PasswordHive.

  • Content author: Vinitha Pu
  • Fact checked by: Vinitha Pu. Each tool's output is checked against official test vectors or a reference implementation, and every strength and crack-time figure against the formula it uses, before it goes live.
  • Published Updated