In short
- Some characters and names are not allowed on Windows and in the cloud.
- Use letters, numbers, hyphens and underscores, and keep names short.
- Send files with clean names using a free link, nothing gets renamed on the way.
A file name looks like a small thing, but it can cause real trouble. A name that works on your Mac may not save on a Windows PC, and a name that works on your PC may be refused by a cloud service.
Microsoft lists nine characters that Windows does not allow in a file name, plus a set of reserved names. OneDrive has a few extra rules on top of that.
Characters Windows does not allow
According to Microsoft, these characters cannot be used in a file name on Windows: less than, greater than, colon, double quote, forward slash, backslash, vertical bar, question mark and asterisk. Control characters are not allowed either.
A Mac lets you use some of these, like the colon or the question mark. When that file reaches a Windows PC, it may be refused or renamed, so it is best to avoid them from the start.
Reserved names and endings
Windows also reserves a few names, such as CON, PRN, AUX and NUL, and the names COM1 to COM9 and LPT1 to LPT9. Microsoft says to avoid them even when an extension follows, so NUL.txt is a problem too.
A name should not end with a space or a period. The file system may allow it, but the Windows shell and user interface do not.
Extra rules in the cloud
OneDrive has its own list. It does not allow the characters quote, asterisk, colon, less than, greater than, question mark, slash, backslash and vertical bar. Names also cannot start or end with a space.
It also blocks names like .lock, desktop.ini and anything that starts with ~$. If a cloud upload fails with no clear reason, check the name first.
Long names and long paths
The path is the folder names plus the file name. In editions of Windows before Windows 10 version 1607, the maximum path length is 260 characters. Newer versions need a setting changed to go past that limit.
Folders inside folders inside folders add up fast. Short folder names and a flat structure keep you away from the limit, and OneDrive also warns that apps and Office versions have different limits.
A naming system that works
Use only letters, numbers, hyphens and underscores. Skip accents and spaces if you can, or replace spaces with a hyphen. Start with the date as year, month, day, then a short description and a number, like 2026-08-14_beach_001.
Be the same every time. A pattern you repeat makes files sort in order and lets anyone find the right one. If your old files are a mess, a batch rename tool fixes them in minutes.
Never compressed or converted, one link, no account needed. Free up to 10 GB.
Send files with clean names →Questions
Which characters can I not use in a Windows file name?
Less than, greater than, colon, double quote, slash, backslash, vertical bar, question mark and asterisk.
Can I use spaces in file names?
Yes, but not at the start or the end of the name. Hyphens or underscores are safer.
Why does my file name work on Mac but not on Windows?
Some characters, like the colon, are allowed on a Mac but not on Windows.
Is there a limit on path length?
Before Windows 10 version 1607, the limit is 260 characters. Newer versions need a setting changed.
