The fastest way: Settings

Open Settings by pressing Windows key + I on your keyboard. Go to Accounts in the left menu, 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 account identifier in that case, though Windows may also have assigned a local username behind the scenes.

Key Takeaways

  • Your Windows username appears in Settings under Accounts > Your info, usually at the top of the page.
  • If you signed in with an email address, that email is your account identifier, though a separate local username may exist.
  • Command Prompt shows your username when ready when you type whoami and press Enter.
  • File Explorer displays your username in the address bar when you navigate to This PC or your user folder.

Using Command Prompt for when ready confirmation

Press Windows key + R to open the Run dialog. Type cmd and press Enter to open Command Prompt. Type whoami and press Enter. Your username appears on the next line in the format COMPUTERNAME\username. The part after the backslash is your actual Windows username.

This method works on every version of Windows and gives you the exact name the system uses internally. If you have multiple user accounts on the computer, this shows only the username of the account you are currently logged into.

Finding it in File Explorer

Open File Explorer and look at the address bar at the top. Click on This PC in the left sidebar. Your user folder appears in the main window with a folder icon and your username next to it. The folder name itself is your Windows username. You can also navigate directly to your user folder by typing the path in the address bar: C:\Users\ shows all user accounts on the computer, and your folder is the one with your username.

If you do not see the address bar, press Ctrl + L to show it. The address bar displays the full path to wherever you are browsing, making it straightforward to spot your username in the file structure.

What to do if you see an email instead

Microsoft accounts use your email address as the login credential, but Windows still creates a local username for file storage and system functions. If Settings shows only your email, open Command Prompt and run whoami to see the local username. It often appears as a shortened version of your email or a name you chose during setup.

Both the email and the local username are valid identifiers for your account. The email is what you use to sign in; the local username is what appears in file paths and system settings. Knowing both prevents confusion when troubleshooting or setting up shared folders.

Checking username on the sign-in screen

If you are locked out or need to verify the username before signing in, look at the sign-in screen itself. Your username or email appears above the password field. If multiple accounts exist on the computer, click the account you want to check, and the identifier appears on that screen. This is the fastest way to confirm your account name without logging in.

On some computers, the sign-in screen shows only a profile picture without text. In that case, hover your mouse over the picture or click it to reveal the username or email address associated with that account.

Why you might need your username

Your Windows username is required for file sharing over a network, setting up remote access, troubleshooting permission errors, and creating backup or recovery accounts. Some programs also ask for your username when configuring network settings or user profiles. Knowing where to find it saves time when you need it for any of these tasks.

Your username is different from your computer name (the name of the machine itself). If someone asks for your computer name, that is found in Settings under System > About and labeled as "Device name". The username is the account you log into; the computer name is the name of the hardware.

Frequently Asked Questions

Is my username the same as my email address?

Not necessarily. If you signed in with a Microsoft account, your email is your login credential, but Windows creates a separate local username for file storage. Run whoami in Command Prompt to see the local username. If you signed in with a local account, your username is what you chose during setup, not an email.

Can I change my Windows username?

Yes, but the process differs depending on whether you use a Microsoft account or a local account. For a Microsoft account, go to Settings > Accounts > Your info and click "Manage your Microsoft account" to change your display name. For a local account, right-click This PC, select Manage, then go to Local Users and Groups to rename the account. Changing your username does not affect your files or programs.

What if I forgot my username and cannot sign in?

If you can see the sign-in screen, your username or email appears above the password field. If you cannot remember the password, click "I forgot my password" and follow the recovery steps. If you cannot access the computer at all, you may need to use a password reset disk or contact your system administrator if this is a work computer.

Does my username appear in my file path?

Yes. Your personal files are stored in C:\Users\[your username]. When you navigate to your Documents, Downloads, or Desktop folder, the file path includes your username. This is why knowing your username helps when troubleshooting file permission issues or setting up shared network folders.