Where to find your username on Windows

Your Windows username appears in the bottom-left corner of your lock screen, just above the password field. When you turn on your computer or wake it from sleep, look for your name or account picture before you type your password. That is your username.

If you are already logged in, the fastest way is to open the Start menu (the Windows icon in the bottom-left corner) and look at the top of the menu. Your username and profile picture appear there. You can also right-click the Start button, select "System", and scroll down to find "Device name" — though that is your computer's name, not your username. Your username is the account you use to sign in.

Another method: press the Windows key and R together, type cmd, and press Enter. In the black command window that opens, type echo %username% and press Enter. Your username will print on the next line. Close the window when you are done.

Where to find your username on Mac

On a Mac, click the Apple menu in the top-left corner and select "System Settings" (or "System Preferences" on older versions). Click "General" in the sidebar, then look for "About" — your username does not appear there. Instead, go back and click "Users & Groups" or look at the top-right corner of your screen, where your account name sometimes displays next to the Wi-Fi icon.

The simplest method on Mac is to open Finder, click "Go" in the menu bar, and select "Home". The folder that opens is named after your username — you will see it in the window title or in the sidebar. Your home folder is always labeled with your account name.

You can also open Terminal (search for it in Spotlight by pressing Command and Space, then type "Terminal"). Type whoami and press Enter. Your username prints on the next line.

Where to find your username on Linux

On Linux, open a terminal window. Type whoami and press Enter. Your username appears on the next line. This works on any Linux distribution — Ubuntu, Fedora, Debian, or others.

You can also look at the command prompt itself. If you see james@computer:~$, the part before the @ symbol is your username. In this example, "james" is the username.

Key Takeaways

  • On Windows, your username shows on the lock screen above the password field, or in the Start menu at the top.
  • On Mac, your username is the name of your home folder in Finder, or you can type whoami in Terminal.
  • On Linux, open a terminal and type whoami to see your username when ready.
  • Your username is the account you sign in with, not your computer's name or device name.
  • If you see multiple accounts on your lock screen, your username is the one attached to the account picture you use.

Why you need to know your username

Your username matters when you install software, connect to a network, or troubleshoot problems. Some programs ask for your username during setup. Network administrators need your username to give you access to shared files or printers. If you forget your password and need to reset it, support staff will ask for your username to verify your identity.

Your username is also different from your email address, even if they look similar. You might sign into your computer with "james" but use "james@gmail.com" for your email. Programs and support staff need the right one, so knowing which is which saves time.

What to do if you cannot find your username

If you are locked out of your computer and cannot see the lock screen, restart the machine. The lock screen always appears when you turn it on. If you see multiple account names on the lock screen and do not remember which one is yours, try the one with your profile picture or the one you remember using most often.

On Windows, if you are stuck at a sign-in screen with no username visible, try typing a username you think might work. If you are wrong, Windows will tell you the account does not exist. On Mac, if you cannot remember your username, restart the computer and look at the login window — all active accounts appear there by name.

If you have physical access to the computer but cannot sign in at all, you may need to reset your password through your Microsoft account (Windows), Apple ID (Mac), or your Linux system administrator. That is a separate process from finding your username, but knowing your username is the first step.

Frequently Asked Questions

Is my username the same as my email address?

Not always. Your username is what you type to sign into your computer. Your email address is separate, even if they look similar. You might have username "james" but email "james@gmail.com". Check your lock screen or Start menu to see your actual username.

What is the difference between my username and my computer name?

Your username is your personal account — the one you sign in with. Your computer name (or device name) is the name of the machine itself, which you might share with others or use on a network. They are not the same thing. Your username appears on the lock screen; your computer name appears in System Settings.

Can I change my username?

Yes, but the process is different on each system. On Windows, go to Settings > Accounts and look for "Your info" or "Change your account name". On Mac, open System Settings > Users & Groups, unlock the settings, right-click your account, and select "Advanced Options". On Linux, use the terminal command usermod or ask your system administrator. Changing your username can affect file permissions and program settings, so do it carefully.

Why does my lock screen show a different name than my Start menu?

You might be seeing your display name (the friendly name you chose) instead of your actual username. Windows lets you set a display name separate from your login username. Your actual username is what you type when you sign in, not what displays on screen. Use the command prompt method (echo %username%) to see your true username.