The fastest way: Settings app
Open the Settings app by pressing the Windows key and typing "settings", then hit Enter. Go to Accounts on the left sidebar, then click Your info. At the top of the page, you'll see your account name displayed under your profile picture. That's your Windows username.
This method works on Windows 10 and Windows 11. The username shown here is the one you use to sign in to your computer, and it's the same name Windows uses when you create files or folders. If you're signed in with a Microsoft account, Settings will show both your email address and your local username — the local username is what you need for most technical tasks.
Key Takeaways
- Your Windows username appears in Settings under Accounts > Your info, displayed at the top of the page next to your profile picture.
- You can also find it by opening Command Prompt and typing whoami, which displays your username when ready in the format your computer recognizes it.
- File Explorer shows your username in the address bar when you navigate to your user folder, which appears as C:\Users\[YourUsername].
- If you're on a work computer connected to a domain, your username may include a domain prefix like COMPANY\username, but you typically only type the part after the backslash when signing in.
- Your Windows username is different from your Microsoft account email address, even if you use that email to sign in to your computer.
Using Command Prompt
Press the Windows key, type "cmd", and open Command Prompt. Type whoami and press Enter. The command returns your username when ready, exactly as Windows recognizes it internally.
This method is useful if Settings isn't responding or if you need to copy your username for another task. The output shows your full account identifier, which on a work network might include your domain name before a backslash. Command Prompt also works on older versions of Windows where Settings may look different.
If you want to save your username to a text file for reference, you can type whoami > username.txt in Command Prompt, and Windows will create a file on your desktop containing your username.
Checking File Explorer
Open File Explorer and look at the address bar at the top. Click on This PC in the left sidebar, then double-click the folder labeled with your username under "Users". The path in the address bar will show C:\Users\YourUsername — the part after the last backslash is your Windows username.
Every Windows computer stores user files in a folder named after the account. If you see multiple folders under Users, each one belongs to a different account on that computer. This method is helpful if you're trying to understand where your personal files are stored or if you need to navigate to another user's folder to troubleshoot a shared computer.
Checking the sign-in screen
Lock your computer by pressing Windows key + L. Look at the sign-in screen — the name displayed above the password field is your Windows username. This is the account name exactly as it appears when you log in.
If you see a picture with a name underneath instead of a text field, that's your account name. On shared computers, the sign-in screen shows all accounts that exist on that machine. This method is straightforward but requires you to lock your computer, so it's most useful if you're already at the sign-in screen or if other methods aren't working.
Understanding local vs. domain usernames
If you're using a personal computer at home, your username is a local account — it exists only on that machine. It typically looks like "Sarah" or "john-laptop". Local usernames are created when you first set up Windows and can be changed through Settings without affecting your files or programs.
If you're on a work computer, you likely have a domain account, which means your username includes a domain prefix. It appears as "COMPANY\sarah" or "DOMAIN\john" in Command Prompt, but you may only type "sarah" or "john" when signing in, depending on how your IT department set it up. Ask your IT support team if you're unsure which type you have, because domain accounts are managed by your organization's network and cannot be changed through personal Settings.
Why you might need your username
Windows usernames are necessary when you're troubleshooting computer problems, setting up file sharing with other computers, or following technical support instructions. Some programs also ask for your username when you install them or grant permissions. Help desk staff often ask for your username to look up your account in their system.
Your Windows username is different from your Microsoft account email address. You can have a Microsoft account (like yourname@outlook.com) and still have a separate local Windows username on your computer. When someone asks for your "Windows username," they mean the account name on your computer, not your email address.
Frequently Asked Questions
Is my Windows username the same as my email address?
Not necessarily. Your Windows username is the account name on your computer, while your email address is a separate credential. You might sign in with an email address but still have a different Windows username. Check Settings > Accounts > Your info to see which one your computer uses for file and folder ownership.
What if I see a long string of numbers instead of a name?
Windows sometimes creates usernames with numbers or special characters, especially if you're using a Microsoft account or if your computer is on a domain. This is still your valid username. Write it down exactly as it appears so you can use it in technical support conversations or when setting up file sharing.
Can I change my Windows username?
Yes, but the process depends on whether you have a local account or a Microsoft account. Local accounts can be renamed in Settings > Accounts > Other people, but changing a domain account requires IT support. Changing your username does not affect your files or programs, though the folder in C:\Users\ keeps its original name.
Why does my username have a backslash and a domain name in it?
The backslash and domain name (like COMPANY\username) appear when your computer is connected to a work network. The part before the backslash is your domain, and the part after is your account name. You typically only type the part after the backslash when signing in, unless your IT department has configured your computer differently.
Do I need my Windows username to use my computer?
No — you sign in using your password, not your username. However, you need to know your username when you're setting up file sharing, following technical support steps, or troubleshooting permissions issues. Most people can use their computer without ever knowing their username, but it's useful information to have on hand.