The following characters aren't allowed in file and folder names in OneDrive
" * : < > ? / \ |
Note
- You can't use leading and trailing spaces in file or folder names.
- To rename a file or folder in Windows, select it and press F2. To rename a file or folder on a Mac, select it and press Return.
- Some organizations don't yet support # and % in names. If you're a global admin or SharePoint admin in Microsoft 365, see Enabling # and % Support on the SharePoint blog to learn how to allow these characters.
- For Office desktop Win32 apps: If you save an Office file through the Backstage view to a OneDrive or SharePoint folder, you can't save the file if the folder name contains ; (semicolon).
- If you use Office 2010, you can't use "&" in file and folder names.
- For automatic renaming behavior, including changes from a comma to ^J, see Why has my filename changed?.
Invalid file or folder names
These names aren't allowed for files or folders: .lock, CON, PRN, AUX, NUL, COM0 - COM9, LPT0 - LPT9, _vti_, desktop.ini, any filename starting with ~$.
Note
- You can't use _vti_ anywhere in a file name.
- You can't use forms when the folder or file is at the root level of a library.
- A folder name can't start with either ゛ or ဧ.