OneDrive File Issues

How to Hide File Extensions and Switch OneDrive Accounts

Nimra MalikNimra Malik Nov 3, 2026 869 views

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.

How to Hide File Extensions and Switch OneDrive Accounts
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.
Before you start

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.

Solution 1Recommended

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.

1
Open OneDrive Settings

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.

2
Unlink the Current Account

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.

3
Sign In with the New Account

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.

Unlink Your PC and Switch OneDrive Accounts
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Office formats, including .docx, .xlsx, and .pptx.Open, edit, and save documents directly to your local OneDrive sync folder without compatibility issues.Lightweight installation that runs smoothly on all Windows PCs, saving system resources.Completely free to use with a familiar, easy-to-navigate tabbed interface for seamless migration.
microsoft office alternative - wps office

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.