How to Fix OneDrive for Business Folder and File Path Length Limits
Question details
OneDrive for Business users encounter sync issues when their combined folder path and file name exceed the maximum allowed character limit.

- Product
- OneDrive for Business
- Device & OS
- not provided
- Scenario
- Users saving files in deeply nested subfolders or using exceptionally long names for folders and documents.
- Observed behavior
- Files fail to sync or save, triggering an error indicating that the file path is too long, as the decoded path exceeds the 400-character limit.
Before making structural changes, identify exactly which files are failing to sync by clicking the OneDrive icon in your taskbar or menu bar and reviewing the listed sync errors.
Shorten Folder and File Names to Stay Under 400 Characters
Reduce the length of your file names and restructure your folders to ensure the total path stays within OneDrive's 400-character limit.
OneDrive for Business does not strictly limit the number of nested subfolders you can create. However, it imposes a strict 400-character limit on the combined path string. This includes the drive letter, all folder names, the file name, and the file extension.
To resolve syncing issues, you must reduce the overall character count of the file's path.
Open File Explorer (Windows) or Finder (Mac) and locate the deeply nested folders within your OneDrive directory that contain the files failing to sync.
Right-click on folders with excessively long names, select 'Rename', and use concise abbreviations instead of full sentences or redundant descriptions.
Drag and drop files from deeply nested subfolders closer to the main root directory to eliminate unnecessary nesting levels entirely.
Right-click the problematic files and rename them to be shorter, removing repetitive dates or keywords if they are already indicated by the parent folder's name.

Reorganize Folders Using OneDrive Web Interface
Use the OneDrive web portal to move and reorganize files if your local operating system prevents you from interacting with files whose paths are too long.
Experience Seamless Document Management with WPS Office
While OneDrive imposes strict path length limitations that require tedious folder reorganization, managing and editing your actual documents doesn't have to be a hassle. WPS Office offers a free, lightweight alternative to Microsoft Office with robust cloud support, full format compatibility, and a highly intuitive interface.
- 1. Download WPS Office: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install the application: Run the downloaded setup file and follow the quick on-screen instructions to install the suite.
- 3. Open your documents: Launch WPS Office and directly open your local or cloud-stored files to begin editing with seamless compatibility.

Frequently Asked Questions
Does the 400-character limit include the file extension?
Yes, the 400-character limit encompasses the entire decoded file path. This includes the drive letter, all nested folder names, the file name, and the file extension (e.g., .docx or .xlsx).
Why do spaces in my folder names make the path longer than expected?
On the server side, OneDrive decodes spaces and certain special characters into multi-character URL encodings. For instance, a single space is often encoded as '%20', which counts as three characters toward the 400-character limit.
Is there a limit to the number of subfolders I can create in OneDrive?
Technically, OneDrive for Business does not have a hard cap on the number of nested subfolders you can create. However, you are practically restricted by the 400-character total path length limitation.




