The fastest way: Settings app

Open the Settings app by pressing Windows key + I on your keyboard. Click Accounts in the left sidebar, then click Your info. At the top of the page, you will see your account name displayed under a profile picture. This is your Windows username.

This method works on Windows 10 and Windows 11. The username appears exactly as it is stored on your system, which matters if you need it for network access or troubleshooting.

Key Takeaways

  • Your Windows username appears in Settings under Accounts > Your info, and this is the fastest way to find it on Windows 10 or 11.
  • The Command Prompt command whoami displays your username when ready if you prefer the command line.
  • File Explorer shows your username in the address bar when you navigate to your user folder, which is usually C:\Users\[YourUsername].
  • Your username and your display name are often different — the username is what Windows uses internally, while the display name is what appears on the login screen.

Using Command Prompt

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

This method is useful if you are troubleshooting network issues or need to verify your username for a script or batch file. The output is always accurate because it shows exactly what the system recognizes.

Checking File Explorer

Open File Explorer and click This PC in the left sidebar. 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 navigate directly to the Users folder by typing C:\Users in the address bar and pressing Enter. Your username will be the name of one of the folders listed there. This folder contains your Documents, Downloads, Desktop, and other personal files.

Looking at the login screen

Restart your computer or lock your screen by pressing Windows key + L. Look at the login screen — the name displayed under the profile picture is your account display name, not necessarily your username. However, if you set up Windows with a local account (not a Microsoft account), the display name and username are usually the same.

If you use a Microsoft account, your display name might be different from your username. For example, your display name might be "James Rodriguez" while your username is "jrodriguez". This is why the Settings app or Command Prompt method is more reliable for finding your actual username.

Understanding username versus display name

Windows stores two different names for your account. Your username is the internal identifier the system uses — it appears in file paths, network connections, and system logs. Your display name is what shows on the login screen and in the Start menu. They are often the same, but not always.

If you created your account with a Microsoft email address, your username might be something like user123456 while your display name is your full name. When you need your username for technical purposes — setting up a network share, running a command, or checking file permissions — use the Settings app or Command Prompt to be certain you have the right one.

What to do if you see a different name

If the Settings app shows a name you do not recognize, or if Command Prompt returns a username that looks like a string of numbers, your account may have been created automatically by Windows or your organization. This is normal on computers managed by a workplace or school.

If you need to change your username, you can do so through Settings > Accounts > Your info > Rename your account. Keep in mind that changing your display name is straightforward, but changing your actual username (the folder name in C:\Users\) is more involved and may require administrative help. For most purposes, knowing what your current username is will be enough.

Frequently Asked Questions

Is my username the same as my Microsoft account email?

Not necessarily. Your Microsoft account email is what you use to sign in, but your Windows username is a separate identifier stored on your computer. You can see both in Settings — your email appears under "Your info" as your account, and your username is the folder name in C:\Users\.

Why does Command Prompt show COMPUTERNAME before my username?

The whoami command displays your username in the format COMPUTERNAME\username to show which computer the account belongs to. The part after the backslash is your actual username. On a home computer, the COMPUTERNAME is usually something like DESKTOP-ABC123.

Can I have a username with spaces or special characters?

Windows usernames cannot contain spaces or most special characters. If you see spaces in your account name, that is your display name, not your username. Your actual username will be a single word or use hyphens and underscores instead of spaces.

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

You can see your username on the login screen without entering a password — it is the account name displayed under the profile picture. If you need to reset your password, Windows will ask you to verify your identity using a recovery email or phone number associated with your account.