How to Hide File Extensions and Switch OneDrive Accounts
Question details
The user wants to know how to hide file extensions like .docx for their OneDrive files and how to switch their local OneDrive application from an old, closed Microsoft account to a new one.

- Product
- Microsoft OneDrive and Windows File Explorer
- Device & OS
- Windows
- Scenario
- Customizing file display preferences in File Explorer and migrating the local OneDrive sync client to a different Microsoft account.
- Observed behavior
- File extensions are currently visible in the local folders, and the computer's OneDrive client is stuck syncing with a closed Microsoft account instead of the desired active account.
Make sure you have the login credentials for your new Microsoft account ready, and verify that any pending file uploads to your old OneDrive account have been successfully synced or saved locally.
Unlink Your PC and Switch OneDrive Accounts
Safely disconnect your computer from the old Microsoft account and sign in with the active account you want to use.
By unlinking your PC, you stop OneDrive from syncing with the old account. This process does not delete your files, but simply severs the connection so you can link a new account to your computer.
Click the OneDrive cloud icon located in the Windows taskbar notification area (system tray). Click the gear icon (Help & Settings) in the top right corner of the menu, then select Settings.
Navigate to the Account tab in the settings window. Click on the 'Unlink this PC' option, and then confirm your choice by clicking 'Unlink account' in the popup dialog.
Once unlinked, the OneDrive setup screen will automatically appear. Enter the email address associated with your active Microsoft account, click Sign in, and follow the prompts to choose your new sync folder location.

Hide File Name Extensions in Windows File Explorer
Change your Windows File Explorer view settings to hide file extensions (such as .docx or .xlsx) for all files, including those in your OneDrive folder.
Edit Your OneDrive Documents with WPS Office
Looking for a fast and free way to open and edit the documents synced to your new OneDrive account? WPS Office provides a lightweight, highly compatible alternative to Microsoft Office that flawlessly handles your everyday document needs.

Frequently Asked Questions
Will unlinking my OneDrive account delete my local files?
No, unlinking your PC does not delete your files. The files that were already synced will remain in the old OneDrive folder on your computer's hard drive. You can choose to move, archive, or delete them manually after you verify they are safely stored.
Can I hide file extensions only for my OneDrive folder?
No, Windows File Explorer applies the 'File name extensions' setting globally. When you choose to hide or show file extensions, the change affects all folders across your entire Windows operating system.
Why can I still see file extensions on the OneDrive website?
The OneDrive web interface is designed to always show file extensions by default so users can easily identify file types directly from their browser. Microsoft does not currently offer a setting to hide extensions on the web version of OneDrive.
How do I switch OneDrive accounts on a Mac?
To switch accounts on a Mac, click the OneDrive cloud icon in your Mac's top menu bar. Click the gear icon to open Preferences, go to the Account tab, and click 'Unlink this Mac'. Afterward, the setup prompt will appear, allowing you to sign in with your preferred Microsoft account.




