How to Change Maximum PIN Length in Windows 11
Maximum PIN length in Windows 11 sets the upper limit for the numbers you type to sign in, which defaults to 127 characters. Windows Hello handles these numerical login credentials to keep your computer secure.
Changing this limit lets you make your PIN longer or shorter depending on your needs. You can adjust this setting using the Local Group Policy Editor found in Pro and Enterprise editions of Windows 11.
Open the Local Group Policy Editor and navigate to Computer Configuration Administrative Templates System PIN Complexity. Double-click “Maximum PIN length” and set your desired number between 4 and 127. Apply the changes to enforce the new maximum length.
Change Maximum PIN Length in Windows
Windows admins can change the maximum PIN length for users on Windows 11.
The following steps outline the procedure.
Method 1Using Local Group Policy Editor
- ⚙️ Admin Required – Open the Local Group Policy Editor. Search for “Edit group policy” on the Start menu .
- Navigate to these folders:
You can change the maximum Windows 11 PIN length using the Local Group Policy Editor. This tool lets you adjust settings for how complex your PIN can be. Search for “Edit group policy” on your Start menu and open the tool to begin.
- In the PIN Complexity details pane on the right, find and double-click “Maximum PIN length” settings.

- In the “PIN Complexity” window, choose one of these options:
- Not Configured (default) – Same as Disabled.
- Enabled – You set the maximum PIN length. The largest number you can use is 127. The smallest number must be larger than the Minimum PIN length setting or 4, whichever is greater.
- Disabled – PIN length must be 127 or less.
- Click OK to save your changes.

Method 2Using the Registry
Another option involves using the Registry Editor (a hierarchical database storing configuration settings for the operating system). Administrative privileges are required for this approach. Backing up the registry or generating a System Restore point prevents accidental system instability.
- ⚙️ Admin Required - Open the Registry Editor and navigate to this folder path:📝Good to Know
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity - If you do not have the PassportForWork and/or PINComplexity keys in the registry path, create new keys to match the path above.
- Right-click PINComplexity > New > DWORD (32-bit) Value and name the new DWORD
MaximumPINLength. - Double-click
MaximumPINLengthand select Decimal under Based. Then type a number between 4 and 127 for the PIN length you want.

- To restore the default behavior, delete the
MaximumPINLengthvalue you created. - You may need to restart your computer to apply the changes.
Configuration finishes here.
Reference
Summary
Administrators modify the maximum Windows 11 PIN length to bolster device security. Windows 11 supports PINs up to 127 characters, surpassing the standard 4 digits. The Local Group Policy Editor and Registry Editor both provide paths for this modification.
- Windows 11 supports a maximum PIN length of up to 127 characters. The default is 4 digits.
- You can modify the maximum PIN length using the Local Group Policy Editor or the Windows Registry Editor.
- A longer PIN helps protect your device from unauthorized access by making it harder to guess.
- Back up your registry or create a restore point before making changes to avoid problems.
- Users may need to update their existing PINs if they don't meet the new length requirements after the change.
- These steps ensure a more secure user experience on your Windows 11 device.
How long should my 🪟 Windows 11 PIN be?
Deciding on an ideal PIN length depends on internal security policies. While standard setups rely on 4 to 6 digits, enterprise environments often enforce stricter rules. Review specific requirements from organizational IT compliance guidelines before implementation.
How many digits is a 🪟 Windows 11 PIN?
💡 Tip: Generally, PINs range between 4 and 6 numbers long. Business needs dictate final length configurations. Click Apply, then Ok. Open an elevated Command Prompt and execute gpudate /force to apply the changes immediately.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!