The fastest way to see your username right now

Your username appears in the bottom left corner of the Windows login screen before you type your password. On a Mac, click the Apple menu in the top left, then System Settings, then General, and look for "Computer Name" near the top — your username is listed just below it as "Local Hostname". Both take about 10 seconds.

If you are already logged in and want to confirm without restarting, Windows shows your username in the bottom right corner of the taskbar when you click your profile picture. On Mac, open System Settings the same way and scroll to "Users & Groups" — your account name is listed there.

You may see two different names: your display name (what appears on the login screen) and your actual username (what the system uses for file paths and permissions). The actual username is what you need for most technical purposes.

Key Takeaways

  • On Windows, your username shows on the login screen in the bottom left corner, or in the taskbar profile menu after you log in.
  • On Mac, open System Settings, go to General, and find your username listed as "Local Hostname" or in Users & Groups.
  • Your display name and your actual system username may be different — the system username is what matters for file paths and permissions.
  • You can also open a command prompt or terminal and type a single command to see your username when ready.

Finding your username in Windows using the command prompt

Open the Start menu and type "cmd" without quotes. Click "Command Prompt" when it appears. Type whoami and press Enter. The result shows your username in the format COMPUTERNAME\username — the part after the backslash is your actual username.

This method works on any Windows version and shows your username exactly as the system recognizes it. If you see a domain name before the backslash (like COMPANY\username), you are on a work network and that domain name matters for login purposes.

Finding your username on Mac using Terminal

Open Spotlight by pressing Command + Space, type "terminal" without quotes, and press Enter. In the Terminal window, type whoami and press Enter. The result is your exact username as the system recognizes it.

You can also type id and press Enter to see your username along with your user ID number and group information. Both commands work on any Mac and show the same username you would use to log in.

What your username is used for

Your username controls which files and folders you can access, which programs can run, and how your computer identifies you on a network. If you are setting up a new program, troubleshooting permissions, or connecting to a shared drive, you will need this exact name.

Some programs ask for your "user account name" or "login name" — these all mean the same thing. Your username is not the same as your email address, even if your email is based on your name. If you are unsure which one a form is asking for, use the username you type when you log in to your computer.

Changing your username if you need to

On Windows, right-click the Start button, select "Settings", go to "Accounts", then "Your info", and click "Rename your account". Type the new name and click "Next". This changes your display name but not your actual system username — the folder where your files are stored keeps the old name.

On Mac, open System Settings, go to "Users & Groups", click the lock icon to unlock it, right-click your account, and select "Advanced Options". You can change your "Account name" here, though this is less common and may affect file permissions. Most people only change their display name instead.

Changing your username can cause problems with programs that remember your old name or with files that have permission restrictions. If you are doing this for a work computer, check with your IT department first.

If you forgot your password but remember your username

On Windows, use another administrator account to reset the password. Click the Start button, go to Settings, Accounts, then "Other people", select the account you need to reset, and click "Reset password". You will need to answer security questions or use a recovery email.

On Mac, restart your computer and hold Command + S to enter Single-User Mode. Type fsck -fy and press Enter, then type mount -uw / and press Enter. Then type launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist and press Enter. This is complex — if you are locked out, contacting Apple Support or visiting an Apple Store is usually faster.

Frequently Asked Questions

Is my username the same as my email address?

No. Your username is what you type to log in to your computer. Your email address is separate, even if it contains your name. Some programs ask for one, some for the other — if you are unsure, use the name you type at the login screen.

Why does my username look different in different places?

Windows sometimes shows your display name (what you see on the login screen) instead of your actual system username. The command prompt shows the real one. If a program is not recognizing your username, use the result from the whoami command instead of what appears in Settings.

Can I have a username with spaces in it?

Windows allows spaces in display names but not in system usernames. Mac allows spaces in both. If you have spaces in your username and a program will not accept it, try using quotes around the name or replacing spaces with underscores.

What if I see a domain name before my username?

That means your computer is connected to a work network or domain. The part before the backslash is the domain name, and the part after is your username. When logging in remotely or on a different computer, you may need to type both parts.