---
title: "Pattern Generator – pwgen.de"
description: "Describe the structure, not just the length: licence keys, coupon codes, test data."
canonical_url: "https://pwgen.de/en/pattern-generator"
meta:
  "og:description": "Describe the structure, not just the length: licence keys, coupon codes, test data."
  "og:image": "https://pwgen.de/_og/s/o_dd47efbb004198a7.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Pattern Generator – pwgen.de"
  "twitter:image": "https://pwgen.de/_og/s/o_dd47efbb004198a7.png"
---

> Index of every page on this site: [llms.txt](https://pwgen.de/llms.txt)

# **Pattern Generator**

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

**Pattern**

Fair**0 bits**Generated in your browser

## **Examples**

## **Syntax**

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

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**

For values with a required structure: licence keys in groups of five, coupon codes with a fixed prefix, test data in a particular format. Instead of a length alone, you define what each position is drawn from.

l u d s stand for lower case, upper case, digits and symbols, a for alphanumeric, h and H for hex, c and v for consonants and vowels, and w for a word from the word list. On top of that you can use explicit sets such as \[A-Z0-9], repetitions such as {4} or {8,12}, and groups in parentheses.

Yes, every constraint narrows the space of possible results. That is why the readout computes entropy position by position instead of estimating it from the total length: fixed characters count as zero, and mixed groups deliberately get no bonus.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pwgen.de/en#website","@type":"WebSite","description":"Kostenloser, datenschutzfreundlicher Passwort-Generator. Generierung direkt im Browser – keine Passwörter werden gespeichert.","inLanguage":"en-US","name":"pwgen.de","url":"https://pwgen.de/en","publisher":{"@id":"https://pwgen.de/#identity"},"translationOfWork":{"@id":"https://pwgen.de/#website"}},{"@id":"https://pwgen.de/en/pattern-generator#webpage","description":"Describe the structure, not just the length: licence keys, coupon codes, test data.","name":"Pattern Generator","url":"https://pwgen.de/en/pattern-generator","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://pwgen.de/en/pattern-generator#breadcrumb"},"isPartOf":{"@id":"https://pwgen.de/en#website"},"mainEntity":[{"@id":"https://pwgen.de/en/pattern-generator#/schema/question/1"},{"@id":"https://pwgen.de/en/pattern-generator#/schema/question/2"},{"@id":"https://pwgen.de/en/pattern-generator#/schema/question/3"}],"potentialAction":[{"@type":"ReadAction","target":["https://pwgen.de/en/pattern-generator"]}],"primaryImageOfPage":{"@id":"https://pwgen.de/#logo"}},{"@id":"https://pwgen.de/#identity","@type":"Organization","email":"info@htrs.io","legalName":"GbR HTRS i/o","name":"HTRS i/o","telephone":"+49 221 292 513 03","url":"https://pwgen.de","vatID":"DE359532582","address":{"@type":"PostalAddress","streetAddress":"Gotenring 9","addressLocality":"Köln","postalCode":"50679","addressCountry":"DE"},"logo":{"@id":"https://pwgen.de/#logo"},"sameAs":["https://htrs.io"]},{"@id":"https://pwgen.de/en/pattern-generator#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","name":"pwgen.de Pattern Generator","operatingSystem":"Web Browser","offers":{"@type":"Offer","availability":"https://schema.org/InStock","price":"0","priceCurrency":"EUR","priceValidUntil":"2027-12-30T00:00:00.000Z"}},{"@id":"https://pwgen.de/en/pattern-generator#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"pwgen.de","item":"https://pwgen.de/en","position":1},{"@type":"ListItem","name":"Secrets","item":"https://pwgen.de/en/secrets","position":2},{"@type":"ListItem","name":"Pattern Generator","position":3}]},{"@id":"https://pwgen.de/en/pattern-generator#/schema/question/1","@type":"Question","inLanguage":"en","name":"What do I need a pattern generator for?","acceptedAnswer":{"@type":"Answer","text":"For values with a required structure: licence keys in groups of five, coupon codes with a fixed prefix, test data in a particular format. Instead of a length alone, you define what each position is drawn from."}},{"@id":"https://pwgen.de/en/pattern-generator#/schema/question/2","@type":"Question","inLanguage":"en","name":"Which placeholders does a pattern understand?","acceptedAnswer":{"@type":"Answer","text":"l u d s stand for lower case, upper case, digits and symbols, a for alphanumeric, h and H for hex, c and v for consonants and vowels, and w for a word from the word list. On top of that you can use explicit sets such as [A-Z0-9], repetitions such as {4} or {8,12}, and groups in parentheses."}},{"@id":"https://pwgen.de/en/pattern-generator#/schema/question/3","@type":"Question","inLanguage":"en","name":"Does a fixed pattern reduce security?","acceptedAnswer":{"@type":"Answer","text":"Yes, every constraint narrows the space of possible results. That is why the readout computes entropy position by position instead of estimating it from the total length: fixed characters count as zero, and mixed groups deliberately get no bonus."}},{"@id":"https://pwgen.de/#logo","@type":"ImageObject","caption":"HTRS i/o","contentUrl":"https://pwgen.de/apple-touch-icon.png","inLanguage":"en","url":"https://pwgen.de/apple-touch-icon.png"}]}
```

## Sitemap

See the full [sitemap](https://pwgen.de/sitemap.md) for all pages.
