...
Characters that aren't allowed in file and folder names in OneDrive for home, OneDrive for work or school and SharePoint in Microsoft 365 | Characters that aren't allowed in file and folder names in OneDrive for work or school on SharePoint Server 2013 |
" * : < > ? / \ | (Leading and trailing spaces in file or folder names also aren't allowed.) | ~ " # % & * : < > ? / \ { | }. (Leading and trailing spaces in file or folder names also aren't allowed.) |
Notes
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 the 'return' key.
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're saving an Office file via the Backstage view to a OneDrive or SharePoint folder, you won't be able to save the file if the folder name contains ; (semicolon).
If you're using Office 2010, you can't use "&" in file and folder names
...