Numbers
Custom Pattern Password Generator
Used by developers, writers, and creators worldwide.
The custom pattern password generator lets you define a character-level template and instantly produce passwords or codes that match it exactly. Use A for uppercase, a for lowercase, 0 for a digit, # for a special character, and * for any class — every other character stays literal. So AAA-000-aaa reliably produces outputs like XKP-472-mwq, dashes included. This matters when a system enforces a fixed password structure, or when you need batches of consistently formatted codes — license keys, voucher codes, reference numbers. Define the pattern once, set the count, and generate up to dozens of unique outputs in one click. No reformatting, no manual work.
Loading usage…
Free forever — no account required
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Type your desired pattern into the Pattern field using A, a, 0, #, or * as placeholders and any literal characters as fixed separators.
- Set the count field to the number of passwords or codes you want generated in one batch.
- Click Generate to produce your list of pattern-matched outputs instantly.
- Review the results and copy individual entries or the full list for use in your system.
Use Cases
- •Bulk-generating AAAA-0000-AAAA-0000 software license keys to seed a product activation database
- •Creating promo voucher codes with a fixed prefix like SALE-###### for a Shopify discount import
- •Producing QA test credentials in a format like AA00##aa that satisfies a strict corporate password policy
- •Generating INV/000000 customer reference numbers with literal separators for an invoicing system
- •Building structured API tokens like AA-0000-## for internal tooling where format is validated on intake
Tips
- →Fix a meaningful prefix literally in your pattern — like ORD-000000 for order codes — so outputs are instantly recognizable by type.
- →Avoid patterns made entirely of digits or lowercase letters; adding even one # or A character multiplies the guessing difficulty significantly.
- →For voucher codes meant to be typed by hand, skip # placeholders — special characters cause confusion and typos at checkout.
- →Use the * wildcard sparingly and only in positions where any character class is acceptable; overusing it can accidentally produce hard-to-read character combinations.
- →Generate a larger batch than you need, then discard any outputs with ambiguous characters like O, 0, I, or l if your codes will be read aloud or handwritten.
- →Test your pattern with a count of 1 first to confirm the structure looks right before generating a large batch for import.
FAQ
how do i generate software license keys with a specific format
Enter a pattern like AAAA-0000-AAAA-0000 and set count to however many keys you need. The generator fills each placeholder with a random character from the correct class while keeping the dashes exactly in place. For shorter alphanumeric keys, try A000-A000-A000 instead.
can this tool generate passwords that meet corporate complexity rules
Yes. Map your policy directly to the pattern — if you need two uppercase, four digits, and two special characters, write AA0000## or rearrange segments to match positional requirements. Because character class placement is fixed by the pattern, every output satisfies the rule without post-generation filtering.
what is the difference between # and * in the pattern syntax
The # placeholder draws only from printable special characters like !, @, $, and %. The * wildcard picks from all four classes combined — uppercase, lowercase, digits, and specials — maximising unpredictability at that position. Use * when a slot has no class restriction and you want the broadest entropy.