How to Rename Part of a File Name in OneDrive Sync Folder
Question details
The user wants to edit only a specific portion of a file name in OneDrive, but the system automatically selects the entire file name by default, making minor text corrections inconvenient.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Renaming synced files within the local desktop environment.
- Observed behavior
- Attempting to rename a file highlights the entire file name text string, preventing immediate partial edits without extra clicks.
Ensure your OneDrive application is actively running in the background and fully synchronized with your local PC to prevent file conflicts while renaming.
Rename the File Using the Local Windows File Explorer
By accessing the file directly through the local File Explorer sync folder rather than a web interface, you can precisely click into the text field to edit only the required characters.
The default behavior of Windows and OneDrive is to highlight the entire file name (excluding the extension) so users can quickly replace it. However, you can easily bypass this by adjusting where you click.
Click the OneDrive cloud icon on your Windows taskbar or open File Explorer and navigate to your synchronized OneDrive folder from the left sidebar.
Locate the specific file you want to rename and single-click it to highlight the item.
Press the F2 key on your keyboard, or right-click the file and select 'Rename' from the context menu. The entire file name will become highlighted.
Use your mouse to single-click exactly on the part of the text you wish to change, or press the left/right arrow keys. The full highlight will disappear, leaving a blinking cursor so you can make small corrections.
Press Enter to save the new name. Once the blue sync icon turns into a green checkmark, right-click the file and select 'Free up space' if you wish to remove the local copy while safely keeping the renamed file in the cloud.

Seamlessly Manage and Edit Your Documents with WPS Office
If file management quirks in Microsoft's ecosystem are slowing you down, consider switching to WPS Office. It is a highly compatible, free, and lightweight alternative to Microsoft Office that comes with its own robust cloud storage and integrates perfectly with local sync folders.
- 1. Install WPS Office: Download and install the free WPS Office suite from the official website to your Windows device.
- 2. Access Synced Files: Launch WPS Office, click 'Open', and navigate directly to your local OneDrive folder to open your existing documents.
- 3. Edit and Save: Make your document edits and save them. WPS perfectly respects your existing cloud sync folders without altering local file management behaviors.

Frequently Asked Questions
Why does OneDrive select the entire file name when renaming?
This default Windows and OneDrive behavior assumes users want to entirely replace the existing file name. It highlights the text so typing immediately overwrites it, saving time for bulk replacements.
How can I edit the file name without using the mouse?
After pressing F2 to rename a file, simply press the Left or Right arrow key on your keyboard. This drops the highlight and moves your cursor to the beginning or end of the file name, allowing you to navigate to the exact typo.
What does 'Free up space' do to my renamed files?
The 'Free up space' feature deletes the locally downloaded copy of the file from your computer's hard drive to save storage space. The renamed file remains safely stored online and is still visible in your OneDrive folder.




