The quickest way: Settings app
Open the Settings app by pressing the Windows key and typing "settings", then press Enter. Click Accounts on the left side. Your username appears at the top of the page under your profile picture — it's the name Windows uses to identify your account on this computer.
This is the fastest route if you're already at your desktop. The username shown here is what appears on your login screen and in the top-right corner of the Start menu. If you see an email address instead of a name, that's your Microsoft account email, and your local username may be different — scroll down to find "Local account info" if you need the local name.
Key Takeaways
- Your Windows username appears in Settings under Accounts, at the top of the page under your profile picture.
- The Command Prompt method (typing "whoami") works on any Windows computer and shows your username when ready.
- File Explorer shows your username in the address bar when you navigate to "This PC" — look for the folder labeled with your name.
- If you see an email address in Settings, your account is linked to Microsoft, but your local username may be different and appears under "Local account info".
Using Command Prompt (works on any Windows version)
Press the Windows key and type "cmd", then press Enter to open Command Prompt. Type whoami and press Enter. Windows displays your username when ready — it shows the format "COMPUTERNAME\username", where the part after the backslash is your actual username.
This method works the same way on Windows 10, Windows 11, and older versions. Command Prompt is built into every Windows installation, so you don't need to install anything. The output is plain text with no extra information, which makes it useful if you need to copy your username to paste elsewhere.
Finding it in File Explorer
Open File Explorer and click This PC on the left side. Look at the address bar at the top — it shows a path that includes your username. You'll also see a folder with your name listed under "Users" in the main window. Double-click that folder to open it, and the address bar will display the full path with your username clearly visible.
This method is useful if you're already browsing files and want to confirm your username without opening a separate window. The folder with your name contains your Documents, Downloads, Desktop, and other personal folders, so you'll recognize it when ready.
Checking the login screen
Lock your computer by pressing Windows key + L. Look at the login screen — your username or account name appears below the profile picture. If you see an email address, that's your Microsoft account. Press Escape to return to your desktop without logging in again.
This method shows exactly what name appears when you start your computer, which is helpful if you're troubleshooting login problems or need to know how to refer to your account when contacting support. Some computers display a full name instead of a username on the lock screen, so this confirms what Windows actually calls your account internally.
Microsoft account vs. local account username
Windows accounts come in two types, and the name you see depends on which one you have. A Microsoft account uses an email address and syncs your settings across devices. A local account uses a username you create on just this computer and doesn't sync anywhere.
If Settings shows an email address, you're using a Microsoft account, but Windows also assigns a local username behind the scenes. To find your local username on a Microsoft account, go to Settings, click Accounts, then scroll down and look for "Local account info" — it shows your actual local username separate from your email. Both names work for logging in, but programs and file paths use the local username.
What to do if you see a different name than expected
If the name you find doesn't match what you expected, check whether you're looking at a display name or a username. Display names are what appear in the Start menu and Settings, while usernames are what Windows uses internally for file paths and command line tools. They're often the same, but not always.
If you recently changed your account name in Settings, the old username may still appear in file paths and Command Prompt for a few days while Windows updates everything. Restarting your computer usually speeds this up. If you're on a work or school computer, your username may be assigned by your organization rather than something you chose, so ask your IT department if you're unsure.
Frequently Asked Questions
Why does my username look like an email address?
You're using a Microsoft account, which is linked to an email address. Windows also creates a local username behind the scenes — find it in Settings under Accounts by scrolling to "Local account info". Both names work for logging in, but the local username is what appears in file paths.
Can I change my Windows username?
Yes, but it depends on your account type. For a Microsoft account, change your display name in Settings under Accounts, though the underlying local username stays the same. For a local account, right-click "This PC" in File Explorer, click Manage, then Local Users and Groups, find your account, and rename it. Work or school computers may not allow changes — contact your IT department first.
What's the difference between username and computer name?
Your username is the account you log in with. Your computer name is what your device is called on a network. They're separate — you can have a username "Sarah" on a computer named "LAPTOP-ABC123". Command Prompt shows both when you type "whoami" — the part before the backslash is your computer name, and the part after is your username.
Does my username appear in my file paths?
Yes. When you save files to your Documents or Desktop, the path includes your username. For example, "C:\Users\sarah\Documents\file.txt" shows "sarah" as the username. This is why changing your username can sometimes break shortcuts or file links — Windows updates the paths, but some programs may not catch up when ready.
What if I forgot my password but remember my username?
Knowing your username doesn't help you log in without a password. On the login screen, click "I forgot my password" and follow the recovery steps — Windows will ask you to verify your identity using a recovery email or phone number. If you're locked out of a local account with no recovery option set up, you'll need to contact Microsoft support or use password reset tools on another computer.