The fastest way: Settings app

Open the Settings app by pressing Windows key + I on your keyboard. Go to Accounts in the left sidebar, then click Your info. Your username appears at the top of the page under your profile picture. This is the name Windows uses to identify your account on this computer.

If you see an email address instead of a username, that means you signed in with a Microsoft account rather than a local account. The email is your login name for that Microsoft account. Windows still has a local username behind the scenes, but Settings shows the Microsoft account email as your primary identifier.

Key Takeaways

  • Your Windows username appears in Settings under Accounts > Your info, usually within seconds of opening the app.
  • If you see an email address in Settings, that is your Microsoft account login, and your local username is different.
  • Command Prompt and File Explorer both show your username if Settings does not work or you need to verify it a different way.
  • Your username is not the same as your computer name — the computer name is what other devices see on the network.

Using Command Prompt

Press Windows key + R to open the Run dialog. Type cmd and press Enter. In the Command Prompt window, type whoami and press Enter. Windows displays your username in the format COMPUTERNAME\username. The part after the backslash is your actual username.

This method works on any Windows computer and does not require navigating menus. It is also useful if you need to copy your username to paste it somewhere else — you can right-click the Command Prompt window, select Edit, then Select All, and copy the text. Command Prompt is built into Windows and requires no additional software to run.

Checking File Explorer

Open File Explorer and look at the left sidebar. Click This PC or look for a folder labeled with your username — it usually appears under Quick Access or in the main folder list. The folder name is your Windows username. You can also right-click any file you own, select Properties, and look at the Owner field to see your username.

This approach works well if you are already browsing files and want to confirm your username without opening a separate app. The username folder is where Windows stores your Documents, Downloads, Desktop, and other personal folders. Every file and folder you create is tagged with your username as the owner.

System Information window

Press Windows key + R, type msinfo32, and press Enter. The System Information window opens. Look for the line labeled User Name in the list. Your full username appears there, usually in the format COMPUTERNAME\username.

This window also shows your computer name, Windows version, and other system details in one place. It is helpful if you need to gather multiple pieces of information about your computer at once. System Information is a built-in Windows tool that displays detailed technical details about your machine.

Username versus computer name

Your Windows username and your computer name are two different things. Your username is the account you use to log in and access files. Your computer name is what other devices see when your computer appears on a network or in a workgroup.

To find your computer name, right-click This PC in File Explorer and select Properties. Look for Device name or Computer name near the top. Programs and network tools often ask for your computer name, not your username, so knowing the difference matters when you are troubleshooting or connecting devices.

What to do if you see an email address

If every method shows an email address instead of a traditional username, you are logged in with a Microsoft account. This is common on newer Windows installations. The email is your login name for that account, and Windows treats it as your username for most purposes.

If you need a traditional local username without an email address, you can create a separate local account in Settings under Accounts > Other people > Add account. Choose I don't have this person's sign-in information and then Add a user without a Microsoft account. This creates a local account with a username you choose, separate from your Microsoft account.

Frequently Asked Questions

Is my username the same as my email address?

Only if you signed in with a Microsoft account. If you created a local account on your computer, your username is separate from any email address. Check Settings under Accounts > Your info to see which type of account you have.

Can I change my Windows username?

Yes, but the process is different depending on whether you have a local account or a Microsoft account. For a local account, go to Settings > Accounts > Other people, select your account, and click Rename. For a Microsoft account, you change your name through the Microsoft account website, not through Windows Settings.

Why does Command Prompt show my username with a backslash and computer name?

The format COMPUTERNAME\username tells you both your computer name and your username at once. The part before the backslash is your computer name, and the part after is your username. This format is standard in Windows and helps identify which computer the account belongs to.

What if none of these methods show my username?

Try restarting your computer and trying again. If you are logged in as a guest account or a temporary account, Windows may not display a traditional username. Check Settings under Accounts to see what type of account you are using.