OneDrive Invalid Filename Characters
OneDrive invalid filename characters are the symbols, reserved words, and name patterns that Microsoft OneDrive and SharePoint refuse to store or synchronize. They include characters such as " * : < > ? / | along with reserved system names and names that begin or end with a space. When a local file uses one of these patterns, the OneDrive sync client flags the item and leaves it out of sync until the name is corrected.
Put this into practice
Sortio applies the idea below to a real folder: describe how you want files organized, review the proposed moves, then apply. Rule-based sorting is free and unlimited.
Table of Contents
What is OneDrive Invalid Filename Characters?
OneDrive invalid filename characters are the specific symbols and naming patterns that Microsoft's cloud storage service will not accept in a file or folder name. Because OneDrive and SharePoint store every item behind a web address, any character that carries special meaning in a URL or in the underlying Windows file system has to be excluded. The blocked set covers the quotation mark, asterisk, colon, less-than and greater-than signs, question mark, forward slash, backslash, and vertical bar. On top of that, OneDrive rejects a name that starts or ends with a space, a name that ends with a period, and a short list of reserved system names inherited from older Windows conventions, such as CON, PRN, AUX, NUL, and the COM and LPT series.
This matters more than it might first appear. A file named "Q3 Report: Final Draft.docx" or "Invoice 4/12/25.pdf" looks completely normal on a local disk, and macOS in particular allows characters that Windows and OneDrive do not. The moment that folder is placed inside a synced OneDrive directory, the client marks the item with a sync error and stops uploading it. The file still exists locally, but colleagues never see it, backups never capture it, and the person who created it often has no idea anything went wrong.
For anyone managing shared drives, client folders, or long-running project archives, understanding the restricted set is a practical prerequisite to reliable cloud sync. Naming problems tend to accumulate quietly over years of downloads, scanner output, and exported reports, and they surface all at once during a migration.
How OneDrive Invalid Filename Characters works
The OneDrive sync client compares each local file and folder name against Microsoft's validation rules before it attempts an upload. If a name contains a blocked character, matches a reserved word, exceeds the supported path length, or uses a disallowed prefix such as ~$ for temporary Office files, the client refuses the transfer and surfaces the item in its sync issues list. Path length is the constraint people forget most often: OneDrive and SharePoint measure the full decoded path, so deeply nested folders with long descriptive names can fail even when every individual character is valid. Some special names are also blocked in specific positions, such as .lock, desktop.ini, and folders named forms at the root of a document library.
Resolving the problem means renaming the offending items, which is straightforward for a handful of files and tedious for a directory tree with hundreds. This is where an AI file organization tool helps. Sortio reads the names and metadata of the files in a folder and applies a plain-language instruction such as "replace colons and slashes in these filenames with hyphens and shorten names over eighty characters," then proposes the resulting names for your review before anything changes. Because Sortio backs up files before it modifies them, a rename pass can be reverted if the outcome is not what you expected.
If you want naming decisions driven by what is inside a document rather than its current name, content analysis only occurs when you explicitly enable the content sorting toggle. For folders holding sensitive material, offline mode processes files locally on your device without cloud connectivity.
Benefits of OneDrive Invalid Filename Characters
OneDrive Invalid Filename Characters best practices
Common OneDrive Invalid Filename Characters challenges and solutions
Challenge:
Files created on macOS or Linux use characters such as colons or question marks that are valid locally but rejected once the folder is synced to OneDrive.
Solution:
Standardize on the stricter Windows-compatible character set across the whole team, and run a rename pass over existing folders before moving them into OneDrive. A prompt-driven tool like Sortio can normalize an entire directory tree in one operation instead of file by file.
Challenge:
Sync errors go unnoticed because the file still opens normally on the local machine, so no one realizes colleagues cannot see the latest version.
Solution:
Make reviewing the OneDrive activity center part of a weekly routine, and fix flagged names as they appear. Keeping the error list at zero makes any new problem visible right away.
Challenge:
Long paths fail even when individual filenames look fine, usually inside deeply nested client or project archives.
Solution:
Flatten the folder hierarchy and shorten repetitive segments. Replace paths that repeat the client name at several levels with a single top-level folder and shorter subfolder names.
Challenge:
Renaming hundreds of files by hand is slow and introduces inconsistency between people doing the work.
Solution:
Define the naming convention once in writing, then apply it with automation. Sortio proposes names for your review and backs up files beforehand, so a batch rename stays revertible if the convention needs adjusting.
How Sortio handles OneDrive Invalid Filename Characters
Sortio applies the ideas behind onedrive invalid filename characters directly: describe how you want files organized in plain English and it sorts, renames, and files them for you, with a preview before anything moves and one-click undo after. The free tier includes a one-time AI trial allowance, and rule-based sorting is free and unlimited.
Download Sortio FreeFrequently Asked Questions
Which characters are not allowed in OneDrive file names?
OneDrive blocks the quotation mark, asterisk, colon, less-than sign, greater-than sign, question mark, forward slash, backslash, and vertical bar. It also rejects names that begin or end with a space, names ending in a period, reserved system names such as CON, PRN, AUX, NUL, and the COM and LPT series, and files beginning with ~$. The number sign and percent sign are supported in current OneDrive and SharePoint libraries.
Why does OneDrive say my file name is not valid when it opens fine on my computer?
Your local file system may allow characters that OneDrive does not, which is common on macOS. The file works locally because your operating system accepts the name, but the sync client validates against Microsoft's stricter rules before uploading. Until you rename the item, it stays on your device and never reaches the cloud, so teammates cannot see it.
Can Sortio rename files to be OneDrive compatible?
Yes. Sortio's optional renaming feature applies a naming pattern you describe in plain language, such as replacing colons and slashes with hyphens or shortening overly long names. You review the proposed names before anything is applied, and files are backed up beforehand so changes can be reverted. AI-powered sorting learns from your preferences; results may vary by file type and complexity.
Is there a path length limit in OneDrive?
Yes. OneDrive and SharePoint limit the full decoded path, so deeply nested folders with long descriptive names can fail even when every character is valid. If an item is flagged despite a clean name, shorten the folder names above it or move the file closer to the top of the tree.
How do I find every file with an invalid name before migrating to OneDrive?
Scan the source folders before you move them. Look for the blocked character set, names that start or end with a space, names ending in a period, and paths that run unusually long. Sortio can group and rename files in bulk from a single prompt, which is a practical way to clean a large archive ahead of a migration.
Does Sortio need to upload my files to fix their names?
No. Sortio works with filenames and metadata by default rather than file contents, and content analysis only occurs when you explicitly enable the content sorting toggle. If you prefer that nothing leaves your machine, offline mode processes files locally on your device without cloud connectivity. Sortio is available for macOS, Windows, and Linux desktops.
Related Terms
OneDrive Organization
Strategies and tools for organizing files stored in Microsoft OneDrive for efficient access and collaboration.
SharePoint File Organization
The practice of structuring folders, metadata, and permissions in Microsoft SharePoint so teams can find and manage shared documents efficiently.
File Naming Conventions
File naming conventions are standardized rules for naming files consistently, making documents easier to find, sort, and manage over time.
