Whether it’s issues with syncing to OneDrive, during governance workshops, or directly from users – the question about path length in SharePoint Online keeps coming up:
👉 “How is the path length calculated?”
👉 “What’s the maximum limit?”
No wonder there’s confusion: conflicting information circulates online, and even tools or AI assistants often give wrong answers. 🤯
That’s why we’re clearing things up now – clear, understandable, and without myths!
Some say 256 characters, others 400, and many claim it depends on the encoded URL (for example, with 3 characters for %20 for spaces).
❌ Both are incorrect!
✅ SharePoint Online measures the decoded path length.
Different environments:
On-premises and cloud have different limits.
AI answers:
Many AI tools repeat the myth of the “encoded path length.”
Tools:
Some migration tools report the encoded length, while SharePoint checks the decoded length.
✔ Site name
✔ Document library
✔ Folders and subfolders
✔ File name (without extension)
Not counted:
❌ The domain (e.g., https://tenantname.sharepoint.com/)
❌ The file extension (.docx, .xlsx, etc.)
Spaces or special characters each count as one character.
Example:
Decoded: Meine Zeiterfassung 2025.xlsx = 24 characters
Encoded: Meine%20Zeiterfassung%202025.xlsx = 28 characters