The fastest way: Settings app

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

This is the method most people use because Settings is already on your computer and takes about 10 seconds. The username you see here is what appears in your file paths, in shared folders, and when you log in. If you're on Windows 11, the layout is slightly different but the information is in the same place.

Key Takeaways

  • Your Windows username shows in Settings under Accounts > Your info, next to your profile picture.
  • The Command Prompt method using "whoami" works on any Windows version and displays your username when ready in the format COMPUTERNAME\username.
  • File Explorer shows your username in the Users folder path when you navigate to C:\Users, where each folder is named after an account on your computer.
  • Your username is different from your display name — the display name is what appears on the login screen, while the username is what Windows uses internally for file paths and permissions.
  • You need your username when setting up file sharing, troubleshooting permission problems, or connecting to network drives.

Using Command Prompt if Settings doesn't work

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

This method works on every version of Windows and never fails because it pulls the information directly from your system. If you see something like "DESKTOP-ABC123\sarah", then "sarah" is your username. This is the most reliable method if you're unsure about what you're looking at in Settings or File Explorer.

Command Prompt is also useful if you're troubleshooting a computer problem and need to confirm your username for technical support or documentation purposes.

Finding it in File Explorer

Open File Explorer and click on "This PC" in the left sidebar. Double-click "Local Disk (C:)" or whichever drive your Windows is installed on. Open the "Users" folder. Each folder inside Users is named after a username on your computer — the one without a lock icon next to it is your current account.

You can also look at the address bar at the top of File Explorer. When you navigate to your user folder, the path shows "C:\Users\[your username]". That bracketed part is your actual username. This visual method helps if you want to see all the accounts on your computer at once.

Why you might need your username

Your Windows username is required when you're setting up file sharing with other computers, troubleshooting permission problems, or connecting to a network drive. It's also what appears in your user profile folder path, which some programs need to locate your files or settings.

If you're setting up a new device or helping someone else with theirs, knowing the exact username prevents confusion — it's not the same as the display name that shows on your lock screen. System administrators and IT support staff often ask for your username when diagnosing issues because it tells them which account is having the problem.

The difference between username and display name

Your display name is what appears on the Windows login screen and in the Start menu — you can change this without affecting anything else. Your username is the account identifier Windows uses internally, and changing it is more complicated because it affects file paths and permissions throughout your system.

If you see "Sarah Johnson" on your login screen but need your username for a technical task, use one of the three methods above to find the actual username, which might be something like "sarahjohnson" or "sarah.johnson". The display name is purely cosmetic, while the username is structural to how Windows organizes your files and access rights.

What to do if you see an unfamiliar username

If the username you find doesn't match what you expected, you may be looking at a system account or a secondary user account on the computer. Windows creates accounts like "Administrator" and "Guest" automatically — these are normal and separate from your personal account.

If you see multiple usernames in the Users folder and aren't sure which one is yours, use the Command Prompt method above. The "whoami" command shows only the account you're currently logged into, which is always the right one. This eliminates any confusion about which account belongs to you versus other users or system processes.

Frequently Asked Questions

Can I change my Windows username?

You can change your display name easily in Settings, but changing the actual username is more involved because it affects file paths and permissions throughout your system. Most people change the display name instead, which takes 30 seconds and doesn't break anything.

Is my username the same as my Microsoft account email?

No. Your Microsoft account email is what you use to sign into Microsoft services online. Your Windows username is a separate local identifier on your computer. You can have a Microsoft account tied to a local username, but they're not the same thing.

What if I forgot my password but remember my username?

Knowing your username doesn't help you reset a forgotten password — Windows needs other verification like a recovery email or phone number. If you're locked out, you'll need to use your Microsoft account recovery options or contact Microsoft support.

Does my username appear when I share files with others?

When you share a folder or file over a network, other people see the folder name you gave it, not your username — unless you're sharing your entire user folder, which you shouldn't do. Your username stays private unless you explicitly tell someone what it is.

Why does my username have a backslash and computer name in front of it?

When Command Prompt shows "DESKTOP-ABC123\sarah", the part before the backslash is your computer's name and the part after is your actual username. You only need the part after the backslash for most purposes — the computer name just identifies which machine the account belongs to.