How to Enable or Disable Long File Paths in Windows 11
- 3 ways to do it
- Needs administrator rights
- Group Policy needs Windows 11 Pro, Enterprise or Education
- Includes a restart or sign-out
Enabling long paths in Windows 11 removes the 260-character limit on file and folder paths, known as MAX_PATH. With the limit gone, a path can reach about 32,000 characters. Without it, programs often throw errors when you copy, move or open files with long file names, or files buried in deeply nested folders.
You can turn this setting on or off in the Settings app, the Group Policy Editor or the Registry Editor. All three change the same underlying system setting, so use whichever your edition of Windows supports. Each method needs an administrator account.
Open Settings, go to System Advanced, and switch Enable long paths to On, approving any User Account Control prompt. Windows then accepts file and folder paths longer than the old 260-character limit, but apps that are already running need a restart before they notice the change. If that option is missing, use Group Policy or the Registry Editor instead.
Method 1Enable Long Paths Using the Settings App
The Settings app is the quickest route. The option lets Windows 11 bypass the old 260-character limit, so you can open and save files with very long folder names without errors. This works on Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2). The option only appears on recent Windows 11 builds, so if you can’t find it, use the Group Policy or Registry method below.
These steps enable long paths in Windows 11 from Settings, so Windows stops rejecting paths over 260 characters.
- Click the Start button. It is the Windows icon at the bottom left of your screen, and the Start menu opens.
- Click Settings. You can also press the Win+I to open it directly. The Settings window appears.
- Click System on the left side of Settings. The System options load on the right.
- Scroll down on the right and click Advanced. The Advanced page opens.
- Switch Enable long paths to On. If a User Account Control prompt appears, approve it. The toggle should now read On. To undo the change later, come back here and switch it Off.
- Close the Settings app. If the option doesn’t exist on your build, use one of the other two methods instead.
That’s it. Long paths are now enabled, and Windows accepts paths longer than 260 characters in apps that support them.
Programs that are already running won’t notice the change. Restart them, or restart Windows, before testing.


Method 2Enable Long Paths with Group Policy Editor
The Group Policy Editor (a Windows tool for setting system-wide rules) can turn on long file paths if you run Windows 11 Pro, Enterprise or Education. Windows 11 Home doesn’t include this tool, so Home users should use the Registry method instead. The policy changes a system rule so Windows stops blocking file names and folder paths that go past the normal character limit.
Many admins prefer this method because it gives them more control. Group Policy is also the cleanest way to apply the setting across several PCs. That matters when you manage complex projects or deeply nested folder structures.
These steps enable long paths in Windows 11 by turning on the Enable Win32 long paths policy.
- Click Start, type Edit group policy, and press Enter. The Local Group Policy Editor opens. If nothing is found, you’re probably on Home edition.
- Go to Computer Configuration Administrative Templates System Filesystem. Use the left sidebar of the Group Policy Editor window. The policy list for that folder appears on the right.
- Double-click Enable Win32 long paths on the right side. Its settings window opens.
- Select Enabled to turn on long paths. To turn the feature off later, return here and choose Disabled or Not Configured.
- Click OK to save your settings. The window closes and the policy should now show as Enabled.
- Close the Group Policy Editor. Restart your computer or sign out and back in for the changes to take effect.
That’s it. The Enable Win32 long paths policy is now set, and Windows allows paths over 260 characters once you restart or sign back in.


Method 3Enable Long Paths Using Registry Editor
The Registry Editor lets you turn on long file paths by changing one value in the registry, the database where Windows stores its settings. This method works on every edition of a currently supported Windows 11 version (25H2 or 26H2), Home included. It removes the traditional character limit for files and deeply nested folders.
These steps get long paths enabled in Windows 11 by adding the registry value that switches the feature on.
- [Requires admin privileges] Open the Registry Editor. Press Win+R, type
regedit, and press Enter. Click Yes if User Account Control asks for permission. The Registry Editor window opens. - Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem. You can paste the path into the address bar at the top of the Registry Editor window, or expand the folders in the left pane one by one. - Right-click the FileSystem folder in the left pane. If the value named in step 5 already exists in the right pane, skip to step 6 and edit it.
- Choose New DWORD (32-bit) Value. A new value appears in the right pane with its name highlighted for editing.
- Name the new value
LongPathsEnabled. Spell it exactly, because Windows ignores a value with the wrong name. - Double-click
LongPathsEnabledand set its Value data to 1. A 1 turns long paths on and a 0 turns them off. Leave Base on Hexadecimal. - Click OK. Then close the Registry Editor.
- Restart your computer or sign out and back in. Do this for the changes to take effect. To undo the change later, open the same value, set it back to 0 and restart again.
That’s it. The long paths value is now set to 1, and Windows allows paths over 260 characters after you restart or sign back in.

Summary
Older programs may still show path errors after you enable long paths, because only apps designed to use them take advantage of the setting.
To reverse the change, switch Enable long paths to Off in Settings, choose Disabled in the Group Policy Editor, or set the registry value back to 0.
Have a question about this guide?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
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.
No comments yet — be the first to share your thoughts!