The fastest way to see your username

Open the Settings app by pressing the Windows key and typing "Settings", then press Enter. Go to Accounts in the left menu, then click Your info. Your username appears at the top under your account picture — it's the name Windows uses to identify you on this computer.

If you need to know your username right now and don't want to open Settings, there's a faster route: press Windows key + R to open the Run dialog, type whoami, and press Enter. A command window will pop up and display your username in the format COMPUTERNAME\username. The part after the backslash is what you're looking for.

Both methods show the same information. Settings is easier to read; the command line is faster if you just need to confirm it quickly.

Key Takeaways

  • Your Windows username appears in Settings under Accounts > Your info, displayed at the top of the page.
  • The command whoami typed into the Run dialog (Windows key + R) displays your username when ready in a command window.
  • Your username is the name Windows uses to identify your account on this specific computer, separate from your Microsoft account email.
  • If you see COMPUTERNAME\username in the command window, the part after the backslash is your local Windows username.

Where to find it in Settings

Open Settings by pressing the Windows key, typing "Settings", and pressing Enter. On the left side of the window, click Accounts. Then click Your info in the submenu that appears. At the top of the main panel, under your profile picture, you'll see your account name. This is your Windows username.

Below your username, you may also see "Microsoft account" or "Local account" — this tells you what type of account you're using, but your username is the name displayed directly under the picture. Write it down if you need it for later, because some programs and network settings require you to enter it exactly as it appears here.

Using the command line to check your username

Press Windows key + R to open the Run dialog box. Type whoami (all lowercase) and press Enter. A black command window will open and display your username in the format COMPUTERNAME\username. The text after the backslash is your Windows username.

This method is useful when you need to confirm your username without navigating menus, or when you're troubleshooting a problem and need to provide your exact username to technical support. Copy the username part (everything after the backslash) if you need to paste it elsewhere. Close the command window by typing exit and pressing Enter, or by clicking the X button.

Why you might need to know your username

Your Windows username is required when you set up network connections, configure shared folders, or troubleshoot permission errors. Some programs ask for your username when you're installing them or setting up features. If you're sharing your computer with others, knowing your own username helps you understand which account owns which files and settings.

Your Windows username is different from your Microsoft account email address. If you signed into Windows using an email address, that email is your Microsoft account, but your Windows username is usually a shortened version of it (like "john.smith" instead of "john.smith@outlook.com"). Both pieces of information are useful to have on hand.

What to do if you see an unfamiliar username

If the username shown in Settings doesn't match what you expected, you may be looking at a local account rather than a Microsoft account, or vice versa. Local accounts use a straightforward name like "User" or "Admin", while Microsoft accounts display an email address. Both are legitimate — it depends on how you set up Windows.

If you don't recognize the username at all, check whether someone else set up this computer and created an account for you. You can see all accounts on the computer by going to Settings > Accounts > Other people. If you're concerned about an unfamiliar account, contact whoever manages the computer or your IT department.

Changing your username if you need to

If you want to change your Windows username, the process depends on whether you're using a local account or a Microsoft account. For a Microsoft account, you change your display name through your Microsoft account settings online, not through Windows itself. For a local account, you can right-click the account name in Settings > Accounts > Other people and select Rename.

Keep in mind that changing your username doesn't change the folder where your files are stored — Windows keeps your old folder name even after you rename the account. This can be confusing, but it prevents you from losing access to your files. If you need help renaming your account, contact your IT support or the person who manages your computer.

Frequently Asked Questions

Is my Windows username the same as my Microsoft account email?

No. Your Windows username is the local name Windows uses to identify your account on this computer. Your Microsoft account email is what you use to sign into Microsoft services online. They're often related (your email might be john.smith@outlook.com and your username might be john.smith), but they're not the same thing.

What if I forgot my Windows password but need to know my username?

Your username is visible on the Windows login screen before you enter your password. Look at the account name displayed on the sign-in screen — that's your username. If multiple accounts are shown, your username is the name under the account picture you normally use.

Can I have the same username as someone else on my network?

Yes. Your Windows username only needs to be unique on your own computer, not across your network or workplace. However, if you're on a domain network (common in offices), your domain username must be unique across the entire domain. Ask your IT department if you're unsure whether you're on a domain.

Why does the command line show COMPUTERNAME before my username?

The whoami command displays your username in the format COMPUTERNAME\username to show both your computer's name and your account name. The part before the backslash is your computer's name; the part after is your actual username. You only need the part after the backslash in most situations.