Naming Files on OneDrive and SharePoint

File Types Allowed in OneDrive and SharePoint

All file types are allowed to be saved to OneDrive for Business on Office 365. There are no invalid files types of files or file extensions. However, there are restrictions to the names of files saved.

Invalid Characters for File and Folder Names

No filenames can contain: .lock, CON, PRN, AUX, NUL, COM0 - COM9, LPT0 - LPT9, _vti_, desktop.ini, or any filename starting with ~$.

File and folder names in OneDrive for Business on Office 365 cannot contain any of the following characters:

Name

Symbol

Name

Symbol

Quotation marks

Asterisk

*

Less than symbol

Greater than symbol

Question mark

?

Slash

/

Backslash

\

Vertical Bar

|

Paths for a document location that include the folder and file name cannot exceed more than 400 characters total.

To learn more about OneDrive and SharePoint file path limits, visit File Path Limit - OneDrive and SharePoint

Which data should be on OneDrive and SharePoint

Data supported by SharePoint

Related Articles

Related content

File Path Limit - OneDrive and SharePoint
File Path Limit - OneDrive and SharePoint
More like this
Version History for Files in OneDrive
Version History for Files in OneDrive
Read with this
File Path Length Error - OneDrive and SharePoint
File Path Length Error - OneDrive and SharePoint
More like this
Request a File in OneDrive and SharePoint
Request a File in OneDrive and SharePoint
Read with this
Fix OneDrive/SharePoint File Path Issue
Fix OneDrive/SharePoint File Path Issue
More like this
Open OneDrive in a Browser
Open OneDrive in a Browser
Read with this