Fix an Invalid File Name When Saving a Word Copy to SharePoint
Question details
The user needs to save a Word document copy to SharePoint when Word rejects a filename that SharePoint Online accepts.

- Product
- Microsoft Word and SharePoint Online
- Device & OS
- not provided
- Scenario
- Saving a copy of a Word document to a SharePoint document library with a new filename.
- Observed behavior
- Word reports that the filename is invalid, although the same name can be applied directly in SharePoint Online.
Check the document's SharePoint folder path and proposed filename, including the lengths of parent folder names. Confirm that you have permission to save and rename files in the destination library.
Shorten the filename or SharePoint folder path
Use a shorter name or a folder closer to the library root when Word rejects the save location.
Word and other desktop clients can encounter path-length limits that differ from SharePoint Online's limit. SharePoint Online allows up to 400 characters in the decoded path, while the usable length in a desktop app can be lower.
Spaces appear as %20 in an encoded URL, but SharePoint's 400-character limit applies to the decoded path. Check the full path, not just the filename.
In Word, select File > Save a Copy or File > Save As, depending on your version.
Select the SharePoint library and choose a folder closer to the library root, or use a destination with shorter folder names.
Enter a shorter filename in the file name box, then select Save.
Open the destination library in SharePoint Online and select the saved document to confirm it opens.
Save with a short name and rename the copy in SharePoint
Use SharePoint Online to apply the desired name if Word can save the copy under a shorter one.
Edit Word documents with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface for working with Word documents. Its format compatibility makes it easy to move existing files into your workflow, though it does not fix Microsoft Word or SharePoint path-limit errors.

Frequently Asked Questions
Why does SharePoint accept a filename that Word rejects?
SharePoint Online and desktop applications can apply different path-length limits. The full folder path plus the filename may be too long for Word even when SharePoint accepts it.
Do spaces count as three characters in SharePoint's path limit?
Spaces appear as %20 in an encoded URL, but SharePoint Online's 400-character limit applies to the decoded path. Desktop clients may have separate limits.
Can I rename the file in SharePoint after saving it?
Yes. In the SharePoint library, select the file and choose Rename. Test opening it in Word afterward, because the longer path may still cause desktop access problems.
What should I do if a short filename still fails?
In Word's File > Save a Copy or Save As dialog, choose a folder closer to the library root. If the error continues, check that you have permission to save and that the filename follows SharePoint's naming rules.




