The fastest way: Settings app

Open the Settings app by pressing the Windows key and typing "settings", then press Enter. Click Accounts on the left side. At the top of the window, under "Your info", you will see your username displayed next to 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 your account is linked to a Microsoft account. Your actual Windows username may be different — scroll down slightly and look for a line that says "Local account info" or check the "Email and accounts" section to see both your Microsoft account email and your local username.

Key Takeaways

  • Your Windows username appears in the Settings app under Accounts > Your info, next to your profile picture.
  • If you see an email address, your account is a Microsoft account, and your local Windows username may be listed separately below.
  • The Command Prompt method (typing whoami) shows your username when ready if you prefer the command line.
  • File Explorer displays your username in the address bar when you click "This PC" — look for a folder labeled with your name.
  • Your username is case-insensitive in Windows, so "JohnDoe" and "johndoe" are treated as the same account.

Using Command Prompt

Press the Windows key, type "cmd", and press Enter to open Command Prompt. Type whoami and press Enter. Windows will display your username in the format COMPUTERNAME\username. The part after the backslash is your Windows username.

This method works the same way on every Windows computer and is often the fastest if you are comfortable typing commands. The output is always exact — no guessing whether you are looking at a display name or an actual username.

Checking File Explorer

Open File Explorer and click This PC on the left side. Look at the address bar at the top — it will show a path like C:\Users\YourUsername. The folder name after "Users\" is your Windows username. You can also see this by looking at the folder list under "This PC" — your user folder will be labeled with your username and have a house icon next to it.

This method is useful because it shows you exactly how Windows stores your files. Every user account has its own folder in the Users directory, and the folder name is always your Windows username.

Looking at the login screen

If you are not currently logged in, the login screen displays your username below your profile picture. If multiple accounts exist on the computer, you will see all of them listed. Click on your account tile to see your username clearly before you type your password.

This is the most straightforward method if you have just turned on the computer or if you are troubleshooting a login issue. The name shown on the login screen is always your Windows username, not a display name.

Understanding display names versus usernames

Windows allows you to set a display name (the friendly name that appears on your profile) separately from your username (the technical name the system uses). Your display name might be "John Doe" while your username is "johndoe" or "jdoe". Programs and system tools use the username, not the display name.

If you changed your display name in Settings but need to know your actual username, use Command Prompt or File Explorer — both show the technical username that Windows recognizes. The Settings app sometimes shows the display name first, which can cause confusion.

What to do if you see a Microsoft account email

Modern Windows computers often use Microsoft accounts instead of local accounts. If Settings shows an email address as your account name, your local Windows username is usually hidden. To find it, open Command Prompt and type whoami — this will show your actual Windows username regardless of whether you signed in with an email address.

You can also check by opening File Explorer and navigating to C:\Users\ — your user folder will be there with your actual Windows username as the folder name. This folder name is what you need if a program asks for your Windows username or if you are troubleshooting file permissions.

Frequently Asked Questions

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

Not always. If you signed in with a Microsoft account, your email is your sign-in method, but your Windows username (the folder name in C:\Users\) is usually different. Use Command Prompt or File Explorer to see your actual username. Programs that ask for your "Windows username" want the folder name, not your email.

Can I change my Windows username?

You can change your display name easily in Settings under Accounts > Your info. Changing your actual Windows username (the folder name) is more complex and requires renaming your user profile folder, which can cause problems if done incorrectly. Most people only need to change their display name.

Why do I need to know my Windows username?

Programs sometimes ask for your Windows username to set file permissions, create network connections, or troubleshoot access issues. System administrators need it to manage computers on a network. If a program asks for it, use Command Prompt to get the exact spelling and capitalization.

What if I see "Administrator" as my username?

This means your account has administrator privileges on the computer. Your actual username is still displayed in Settings or File Explorer — "Administrator" is a role, not your username. Check Settings or Command Prompt to see your real account name.

Does my Windows username have to match my computer name?

No. Your computer has its own name (shown in Settings under System > About as "Device name"), and you can have multiple user accounts with different usernames on the same computer. They are separate identifiers — one for the machine, one for your account.