Free document and scripts
Password policy generator
for your team.
Create a password policy for your organization from NIST, PCI DSS or CIS presets. Adjust the rules, compare the selected settings and download a document plus scripts for Windows, Active Directory or Linux.
Start from a standard
Length and content
Reuse and expiry
Lockout
Document
Compare your selected settings
These checks compare the settings above with the tool’s reference presets. They do not inspect your systems or certify compliance.
Scripts change security settings. Read them, test on a non-production system first and keep an admin session open until you have verified the result.
How to use the generator
From a preset to a policy you can review.
Choose a starting point
Select a reference preset, then adjust length, reuse, expiry and lockout settings to suit your systems.
Preview the document
Enter your organization name and review the Policy tab. Read our guide to NIST password guidelines to understand the reference rules.
Download each format
The policy downloads as Markdown (.md), Windows and Active Directory scripts as PowerShell (.ps1), and Linux as a shell script (.sh). Select a tab, then Download.
Need individual account passwords? Use the random password generator or create a random passphrase for a secret you need to type.
Preparing a policy for a small business? Use our editable password policy example and rollout checklist to assign responsibilities, plan recovery and verify the deployed controls.
Standards at a glance
Why no policy passes all three.
NIST follows the research: length, screening and no forced changes. PCI DSS and CIS still ask for composition rules and rotation. Here is where they differ.
| Rule | NIST SP 800-63B | PCI DSS 4.0 | CIS Windows |
|---|---|---|---|
| Minimum length | 15 (8 with MFA) | 12 | 14 |
| Composition rules | Not allowed | Letters and numbers | Complexity on |
| Scheduled expiry | Not allowed | 90 days, unless MFA | 365 days or less |
| Password history | Not required | Last 4 | 24 or more |
| Breached-password screening | Required | Not specified | Not specified |
| Lockout | 100 failures max | 10 tries, 30 minutes | 5 tries, 15 minutes |
Simplified for clarity. Want the reasoning behind each NIST rule? Read NIST password guidelines in plain English.
Turn the generated template into a team policy
Name an owner, define which accounts are covered and review recovery, MFA and exceptions before distributing the document. The selected preset compares settings; it is not a certification that your organization meets a standard.
Use the small-business template and rollout checklist to plan the introduction. Review the generated Windows, Active Directory or Linux script and test it in an appropriate environment before applying it. Our fake-support call checklist also covers verifying requests to reset authentication.
Questions
Password policy FAQ
What should a modern password policy require?
For most organizations: a minimum of 15 characters for password-only accounts (8 when MFA is enforced), acceptance of at least 64 characters, screening against breached and common passwords, no forced periodic changes, no composition rules, support for password managers and paste, and limits on failed attempts. That is the NIST SP 800-63B approach.
Why do NIST and PCI DSS disagree on complexity and expiry?
NIST bases its guidance on research showing that composition rules and scheduled changes lead to predictable passwords. PCI DSS 4.0 still requires letters and numbers, and 90-day changes when a password is the only factor. If you are in scope for PCI DSS, enforcing MFA removes the expiry requirement, which gets you close to both.
Can I run the generated scripts as they are?
They are written to be safe and readable, with backups on Linux, but they change security settings. Read them first, run them on a test machine, and keep an administrator session open in case you need to roll back. Scripts need administrator (Windows) or root (Linux) rights.
Why can't Windows enforce lengths above 14 characters?
The classic Windows policy stops at 14. Recent versions (Windows 10 2004 and later, Server 2022 and later) can go higher once 'Relax minimum password length limits' is enabled, which the local script does for you. In Active Directory, use a fine-grained password policy, which the AD script creates.
Does the generator store or send my policy?
No. The policy and scripts are built in your browser. Nothing is uploaded, and the download is created locally.
Is this legal or compliance advice?
No. It is a strong, well-documented starting point based on public standards. Have your security and compliance owners review the final policy against the exact version of the standard you are audited on.
More free tools
Password generator
Random passwords, passphrases or PINs, created by the Web Crypto API on your device.
Open toolPassphrase generator
Random words you can actually remember, with the entropy of a 16-character password.
Open toolWi-Fi password + QR code
A strong WPA2/WPA3 key and a QR code your guests scan to join, with a card to print.
Open toolStrength test
See your password the way an attacker does: patterns, entropy and four crack-time scenarios.
Open toolBreach checker
Find out if a password already leaked, without ever revealing it (k-anonymity).
Open toolSuspicious link checker
Inspect a URL and its actual hostname locally, without opening the destination.
Open toolCrack-time table
How long every length and character mix survives a modern GPU cracking rig.
Open toolPassword audit
Import your password manager export and find reused, weak and breached passwords, all on your device.
Open toolCustom-rules generator
A strong password that still fits picky websites: maximum length, allowed symbols, required types.
Open toolPhishing quiz
Twelve realistic messages. Can you tell the scams from the real thing? Share it with your team.
Open toolSmall-business security checklist
Score your company's account security in five minutes and print a prioritised action plan.
Open toolTwo-factor authentication guide
Which 2FA method to choose and how to turn it on for Google, Microsoft, Apple and more.
Open tool