Password Policy Generator & Validator — Presets, Breach Checks & Compliance
Define a policy with NIST 2024 / PCI-DSS / HIPAA presets, generate compliant passwords in bulk, validate against your rules and breach lists, and export/import policies as JSON.
0 = not enforced. Requires the password to use at least this many distinct characters.
What is Password Policy Generator & Validator?
A password policy defines the rules a password must meet before it's accepted. This tool lets you configure custom policies from presets, generate compliant passwords in bulk, and validate existing passwords against your rules and breach lists.
Zero-Server Tool Data Guarantee
All generation and validation happens locally in your browser. The only network request is the optional breach check, which sends just 5 characters of a SHA-1 hash prefix to Have I Been Pwned — the password itself never leaves your device.
How to Use
Pick a Preset or Build Custom
Choose NIST 2024, PCI-DSS v4.0, or HIPAA to load recommended rules, or configure each option by hand.
Tune the Rules
Set minimum/maximum length, required character types, pattern restrictions, and a minimum unique-character count.
Generate One or Many
Set the quantity (1–100) and click Generate. Passwords automatically satisfy every rule.
Validate & Check Breaches
Paste a password to see each rule pass/fail plus a NIST compliance card. The HIBP check uses k-anonymity.
Share or Reuse the Policy
Export the policy as JSON (download or copy) and import it later, or use the same schema in your own code.
Common Use Cases
Corporate Password Policy
Define and enforce password standards across your organization with a clear, auditable, shareable policy (JSON).
Application Development
Use the exported policy JSON as validation rules in your registration and password change forms.
Compliance Verification
Apply the NIST 2024 / PCI-DSS / HIPAA presets and read the compliance badge to check alignment.
Password Audit
Validate passwords against your policy and the HIBP breach list to identify accounts that need updates.
Batch Onboarding
Generate a batch of up to 100 compliant passwords for team onboarding or automated provisioning.
Implementation Examples
function validatePassword(password, policy) {const errors = [];if (password.length < policy.minLength)errors.push(`Min ${policy.minLength} characters`);if (password.length > policy.maxLength)errors.push(`Max ${policy.maxLength} characters`);if (policy.requireLowercase && !/[a-z]/.test(password))errors.push('Requires lowercase');if (policy.requireUppercase && !/[A-Z]/.test(password))errors.push('Requires uppercase');if (policy.requireDigits && !/[0-9]/.test(password))errors.push('Requires digit');if (policy.requireSymbols && !/[^a-zA-Z0-9]/.test(password))errors.push('Requires symbol');return errors;}
NIST Password Policy Requirements & Compliance Standards
| Standard | Min Length | Complexity | Rotation |
|---|---|---|---|
| NIST 800-63B (2024) | 8 chars | No composition rules | Only after breach |
| PCI-DSS v4.0 | 12 chars | No complexity rules | Risk-based |
| HIPAA | No specific | Recommended complexity | Periodic recommended |
| Common corporate | 8–12 chars | 3 of 4 char types | Every 60–90 days |
| High-security | 16+ chars | All char types + patterns blocked | After breach only |
Production Best Practices & Security
Frequently Asked Questions
The NIST 2024 preset applies the current baseline: a minimum of 8 characters, no mandatory composition rules (no required uppercase, digits, or symbols), blocking of repetitive/sequential characters and keyboard patterns, and breach-list verification against the Have I Been Pwned database.
The live compliance badge shows which NIST rules your current policy aligns with, and validation includes a dedicated NIST SP 800-63B Compliance card showing each rule pass/fail. NIST also drops periodic rotation — only rotate after a breach.
For stricter environments, the PCI-DSS v4.0 preset raises the minimum to 12 characters, and the HIPAA preset applies recommended complexity (HIPAA itself specifies no fixed rules).