How to Rename a File from the OneDrive Preview Screen
Question details
The user is trying to rename a file while actively previewing its contents in OneDrive.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Reviewing the contents of a file in the OneDrive preview mode and wanting to rename it immediately without navigating back to the main file directory.
- Observed behavior
- OneDrive does not support a direct renaming option from within the file preview screen interface.
Ensure you have a stable internet connection so that your file name changes sync correctly, and verify the file is not currently open in a desktop application to avoid file-in-use errors.
Rename the File from the OneDrive Web File List
Since renaming directly within the preview is not supported, the fastest web workaround is closing the preview and renaming the file from the main directory list.
The OneDrive preview interface is strictly designed for viewing documents, images, and media quickly. To make structural changes to the file, including modifying its name, you must use the file management options in the main directory.
Click the 'X' in the top right corner of the screen or press the 'Esc' key on your keyboard to exit the file preview.
Find the file you were just previewing in your main OneDrive file list.
Right-click the file (or click the three-dot menu icon next to the file name) and select 'Rename'. Type the new name and press 'Enter' to save the changes.

Rename Using the Desktop File Explorer
If you have the OneDrive app installed and synced to your computer, you can preview and rename files simultaneously using your local file explorer.
Manage and Edit Your Documents Seamlessly with WPS Office
Frustrated by the limitations of online file previews? WPS Office provides a complete, lightweight desktop suite that lets you seamlessly open, edit, and manage files. Enjoy high compatibility with Microsoft formats and an intuitive interface that makes managing document names and contents easier than ever.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Open Your Document: Open your document directly in the WPS Office interface to view and edit its contents simultaneously.
- 3. Rename with Ease: To rename an open file, go to Menu > Save As, or use the file management tools in the WPS dashboard.

Frequently Asked Questions
Why can't I rename a file directly in the OneDrive preview screen?
OneDrive's preview interface is designed exclusively for quick viewing and rendering of files. It does not currently include advanced file management controls, so you must return to the main file list to rename, move, or delete the file.
Can I rename a file while it is open in Office Online instead of preview mode?
Yes. If you choose to open the document in Word Online, Excel Online, or PowerPoint Online, you can simply click on the file's name in the top title bar and type a new name to instantly rename it.
Will renaming a file in my synced OneDrive desktop folder break its sharing link?
Generally, no. Microsoft 365 maintains a unique internal ID for each file. When you rename a file within your synced OneDrive folder, existing active sharing links will typically continue to work.




