Skip to content
Follow
Windows

How to Change Maximum PIN Length in Windows 11

Richard
Written by
Richard
Jan 22, 2025 Updated Sep 15, 2026 3 min read
How to Change Maximum PIN Length in Windows 11
How to Change Maximum PIN Length in Windows 11

Maximum PIN length in Windows 11 sets the upper limit for how many characters your sign-in PIN can be, with the default cap sitting at 127 characters. Windows Hello manages these login credentials to keep your PC secure against unauthorized access.

Advertisement

You can adjust this limit to make your login credentials longer or shorter by changing a rule in the Local Group Policy Editor (a tool for managing advanced system settings), which is available on Pro and Enterprise editions of Windows 11.

⚡ Quick Answer

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.

Advertisement

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

  1. ⚙️ Admin Required – Open the Local Group Policy Editor. Search for “Edit group policy” on the Start menu .
  2. Navigate to these folders:

    You can change your Windows 11 PIN length using the Local Group Policy Editor (a built-in tool for managing system settings). Open the Start menu , search for Edit group policy, and open the tool to get started. You must be signed in as an administrator to make these changes.

  3. In the PIN Complexity details pane on the right, find and double-click “Maximum PIN length” settings.
PIN maximum length
PIN maximum length
  1. 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.
  2. Click OK to save your changes.
PIN maximum length option
PIN maximum length option

Method 2Using the Registry

You can adjust your Windows 11 PIN length using the Registry Editor (a database for system and app settings) if you do not have the Group Policy tool. Press Win+R, type regedit, and press Enter. Make sure to back up your registry before you change anything.

Advertisement
⚠️Warning⚠️ Important: Remember to back up your registry before making any changes.

Or create a System Restore point as a backup.

  1. ⚙️ Admin Required - Open the Registry Editor and navigate to this folder path:
    📝Good to KnowHKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity
  2. If you do not have the PassportForWork and/or PINComplexity keys in the registry path, create new keys to match the path above.
  3. Right-click PINComplexity New DWORD (32-bit) Value and name the new DWORD MaximumPINLength.
  4. Double-click MaximumPINLength and select Decimal under Based. Then type a number between 4 and 127 for the PIN length you want.
PIN maximum length option registry
PIN maximum length option registry
  1. To restore the default behavior, delete the MaximumPINLength value you created.
  2. You may need to restart your computer to apply the changes.

Configuration finishes here.

Reference

Advertisement

Summary

Windows 11 supports a maximum Windows 11 PIN length of up to 127 characters instead of the standard four digits. You can change this limit using either the Local Group Policy Editor or the Registry Editor to make your device more secure.

  • 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.





Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

📚 Related Tutorials

How to Change Minimum PIN Length in Windows 11
Windows How to Change Minimum PIN Length in Windows 11
How to Enable Windows Hello Sign-In for Microsoft Accounts in Windows 11
Windows How to Enable Windows Hello Sign-In for Microsoft Accounts in Windows 11
How to Allow Windows Hello Secure Sign-in to Windows 11 Using a Fingerprint
Windows How to Allow Windows Hello Secure Sign-in to Windows 11 Using a Fingerprint
How to Reset Group Policy Windows 11 to Default
Windows How to Reset Group Policy Windows 11 to Default

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *