The fastest way to see your username right now

Your PC username appears in the bottom left corner of your Windows lock screen, or in the top right corner of your Mac menu bar. On Windows, you can also press the Windows key and type "cmd" to open Command Prompt, then type whoami and press Enter — your username will display when ready. On Mac, open System Preferences, click System Settings, then select General and About; your computer name and user account name both appear there.

If you are already logged in and working, the quickest method is often the simplest: look at the Start menu on Windows (bottom left) or the Apple menu on Mac (top left). Both show your account name next to your profile picture.

Key Takeaways

  • Your username shows on the Windows lock screen in the bottom left, or on the Mac menu bar in the top right.
  • On Windows, typing whoami in Command Prompt displays your username when ready.
  • On Mac, System Settings under General and About shows both your computer name and user account name.
  • The Start menu on Windows and Apple menu on Mac both display your account name when you are logged in.

Finding your username in Windows Settings

Open Settings by pressing Windows key + I, or by clicking the gear icon in your Start menu. Navigate to Accounts on the left side, then click Your info. The top of the page shows your account name — this is your PC username. You will also see your profile picture and the type of account (Microsoft account or local account).

If you use a Microsoft account, your username may look like an email address. If you use a local account, it will be a single word or phrase you created when you set up Windows. Both are valid usernames for your computer.

Finding your username on Mac

Click the Apple menu in the top left corner and select System Settings. Click General in the left sidebar, then click About. Under the Computer Name section, you will see your computer's name. Below that, look for the user account name — this is your Mac username. It typically appears in a smaller font and may be different from your computer's display name.

You can also find your username by opening Terminal (search for it in Spotlight by pressing Command + Space, then type "Terminal"). Type whoami and press Enter, and your username will print on the next line. This method works the same way as Windows Command Prompt.

Using Command Prompt or Terminal for a quick check

Command Prompt on Windows and Terminal on Mac both run the whoami command, which returns your username when ready. This is the most reliable method if you are unsure whether you are looking at your actual username or a display name.

On Windows, right-click the Start button and select Terminal (or Command Prompt on older systems). Type whoami and press Enter. On Mac, open Terminal from Applications > Utilities, type whoami, and press Enter. The output will show your username in the format computername\username on Windows, or just username on Mac.

The difference between display name and username

Your display name is what appears on your profile picture and in the Start menu or Apple menu — it can include spaces and special characters. Your actual username is what the system uses behind the scenes, and it is usually shorter and simpler. For example, your display name might be "Sarah Johnson" but your username might be "sjohnson" or "sarah.johnson".

When you need to log into a program, connect to a network, or troubleshoot a computer problem, you will usually need your actual username, not your display name. The Settings menu and the whoami command both show your actual username, so those are the most reliable places to look.

What to do if you see multiple usernames on your computer

Some computers have more than one user account. If you see multiple names in Settings > Accounts on Windows, or multiple accounts in System Preferences on Mac, each one is a separate username. You are currently logged in as the account shown at the top of the Accounts page on Windows, or the one highlighted in System Settings on Mac.

If you are not sure which account you are using, the whoami command will tell you when ready. This is especially useful if someone else also uses your computer and you need to know which account is active right now.

Frequently Asked Questions

Is my username the same as my email address?

Only if you use a Microsoft account on Windows. Microsoft accounts are tied to an email address, so your username may look like an email. Local accounts have a separate username that is not an email. Check Settings > Accounts > Your info to see which type you have.

Can I change my username?

On Windows, you can change your display name easily in Settings > Accounts > Your info. Changing your actual username is more complex and requires using Control Panel or Command Prompt. On Mac, you can change your display name in System Settings, but changing the actual account name requires more steps through System Preferences.

What if I forgot my password but remember my username?

Knowing your username does not let you bypass a forgotten password. On Windows, you can use a password reset disk or a Microsoft account recovery option. On Mac, you can use your Apple ID to reset your password, or boot into Recovery Mode. Contact your system administrator if your computer is managed by a workplace or school.

Why do I need to know my username?

You need your username to log into remote connections, set up network drives, troubleshoot permission issues, or when a program asks for your account name. Some software also requires your username to install or run correctly.