Pattern Generator

Describe the structure, not just the length: licence keys, coupon codes, test data.

Fair0 bitsGenerated in your browser

Examples

Syntax

l u d s a
lowercase, uppercase, digits, symbols, alphanumeric
h H
hex lowercase / uppercase
c v
consonants / vowels
w
word from the Diceware list
[A-Z0-9]
explicit character set
{4} {8,12}
repetition, fixed or a uniform range
( ) ( )~
group, optionally shuffled
\d
literal character instead of a class

A range such as a-z is only allowed within one class: digits, a-z or A-Z. Write \- for a literal dash.

A pattern defines what each position draws from. The entropy shown is computed position by position rather than estimated from an overall length. Literal characters contribute nothing, and shuffled groups deliberately get no bonus — an understated entropy is a cosmetic flaw, an overstated one is a security defect.

Frequently asked questions