The fastest way: Settings

Open Settings by pressing Windows key + I. Go to Accounts on the left side, then click Your info. Your username appears at the top of the page, under your profile picture. This is the method most people use because Settings is already built into Windows and takes about 10 seconds.

If you see an email address instead of a username, that means you signed in with a Microsoft account rather than a local account. Your username is still there — it is the part before the @ symbol. For example, if your email is priya.desai@outlook.com, your username is priya.desai.

Key Takeaways

  • Your username appears in Settings under Accounts > Your info, and this is the quickest way to find it on Windows 11.
  • If you signed in with a Microsoft account, your username is the part of your email address before the @ symbol.
  • The command prompt method (typing whoami) works if Settings is not responding, and shows your username in the format COMPUTERNAME\username.
  • File Explorer shows your username in the address bar when you navigate to This PC, which is useful if you need to verify it while working with files.

Using the command prompt if Settings does not work

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

This method is useful when Settings is frozen or not responding. The command prompt is a direct line to Windows itself, so it works even when the graphical interface is slow. You can close the command prompt window by typing exit and pressing Enter.

Finding it in File Explorer

Open File Explorer by pressing Windows key + E. Look at the address bar at the top — it shows a path that includes your username. Click on This PC in the left sidebar, then look for a folder labeled with your username. This folder is your user profile folder, and the folder name is your username.

You can also right-click on any file you own and select Properties. Go to the Details tab and look for the Owner field — it will show your username in the format COMPUTERNAME\username. This method is slower than the others but works if you are already working in File Explorer.

Checking the user account settings panel

Open Settings and go to Accounts > Other people. This page lists all user accounts on your computer. Find your account in the list — the name shown here is your username. If you are the only person who uses this computer, you will see only one account listed.

This method is useful if you have multiple accounts on the same computer and need to see all of them at once. Each account name shown here is the actual username for that account. If you see an email address, that account is linked to a Microsoft account, and the username is the part before the @ symbol.

What to do if you cannot find your username

If Settings shows only an email address and you need the actual local username, try the command prompt method — it always shows the true username in the format COMPUTERNAME\username. If the command prompt shows an error, restart your computer and try again.

If you are locked out of your account entirely and cannot log in, you will need to use a different administrator account on the same computer, or contact the person who set up the computer. Windows does not provide a way to recover a forgotten username without access to an active account on that machine.

Why you might need your username

Your Windows username is required when you set up file sharing with other people on your network, when you troubleshoot permission errors, or when a program asks you to identify yourself. It is different from your Microsoft account email, even if you signed in with that email. Knowing the difference between the two prevents confusion when you are following technical instructions.

Some older programs and network settings still ask for your username in the format COMPUTERNAME\username. Knowing how to find this full format means you can fill in the field correctly the first time, rather than guessing or trying multiple variations.

Frequently Asked Questions

Is my username the same as my Microsoft account email?

Not necessarily. If you signed in with a Microsoft account, your username is the part before the @ symbol in that email. Windows treats the username and the email address as separate things, even though they are linked. Settings will show you both — the email in Your info, and the username in the command prompt output.

Can I change my username in Windows 11?

Yes, but the process is different depending on whether you have a local account or a Microsoft account. For a Microsoft account, you change the display name in Settings > Accounts > Your info, but the underlying username stays the same. For a local account, you can right-click the account in Settings > Accounts > Other people and select Rename to change the username itself.

What does the COMPUTERNAME part mean in COMPUTERNAME\username?

COMPUTERNAME is the name of your computer itself, which you can find in Settings > System > About. The backslash separates the computer name from your username. This full format is used when you are sharing files on a network or when a program needs to identify you on a specific machine.

Why does Settings show an email instead of a username?

You signed in with a Microsoft account rather than a local account. Microsoft accounts use email addresses as the primary identifier. Your actual username is still there — it is the part before the @ symbol. Both the command prompt and File Explorer will show you this username in the traditional format.