Password Policy Regex Builder

Your workspaceProcessed on your device
Password rules

Unicode mode uses letter case and decimal digit properties. Punctuation and symbols form the symbol group.

A few things to know.

Supports 1–512 code points, 48 ASCII punctuation characters and one synthetic test up to 2,048 UTF-16 code units. Produces an ECMAScript regex literal with the u flag. Pattern checks establish syntax only.

  1. Set minimum and maximum lengths and choose Unicode or restricted ASCII.
  2. Enable the required composition rules. In ASCII mode, list the exact punctuation allowed.
  3. Build the pattern. Optionally enter an invented test string to check whether it matches, then copy or download the regex.