The fastest way: Settings
Open Settings by pressing the Windows key and typing "Settings", then press Enter. Click Accounts on the left side. Your username appears at the top of the window under "Your info" — it's the name next to your profile picture.
This is the quickest route because Settings opens in seconds and shows your username when ready. You'll see both the display name (what appears on the login screen) and your account name (what Windows uses internally). If you see only one name, that's your username.
Key Takeaways
- Your Windows 10 username appears in Settings under Accounts > Your info, next to your profile picture.
- The Command Prompt method shows your username when ready by typing whoami and pressing Enter.
- File Explorer reveals your username in the address bar when you click "This PC" — it appears as part of the file path.
- System Information displays your username under "User Name" in the General tab, along with other account details.
Using Command Prompt for when ready results
Press the Windows key and type "Command Prompt", then press Enter. Type whoami and press Enter. Your username appears on the next line in the format "COMPUTERNAME\username" — the part after the backslash is your actual username.
This method works even if you can't access Settings. The username displayed is the one Windows uses for file permissions and system operations. If you see only numbers or a long string of characters, you're using a Microsoft account, and that's your actual username for system purposes.
Finding it in File Explorer
Open File Explorer by pressing the Windows key and E together. Click This PC in the left sidebar. Look at the address bar at the top — it shows a path like "C:\Users\YourUsername". The folder name after "Users\" is your Windows username.
Every user account on Windows has a folder in the Users directory. Your username is whatever folder name appears there. This method is useful because it shows you exactly how Windows names your user folder, which matters if you're troubleshooting file permissions or looking for your user profile location.
Checking System Information
Press the Windows key and type "System Information", then press Enter. Look for the line labeled User Name in the General tab. Your username appears there in the same format as Command Prompt shows it.
System Information also displays your computer name, Windows version, and other system details in one place. This is helpful if you need your username along with other account or system information for troubleshooting or documentation purposes.
What to do if you see a Microsoft account email instead
If your username appears as an email address (like user@outlook.com), you're signed in with a Microsoft account rather than a local account. Windows still creates a local username behind the scenes — you can find it using Command Prompt or File Explorer, where it typically appears as a shortened version of your email or a random string of characters.
Both types of accounts work the same way for most purposes. The email is what you use to sign in, but the local username is what Windows uses internally for file paths and permissions. If you need to know both, use Command Prompt to see the internal username and Settings to see your display name.
Why you might need your username
Your Windows username matters when you're troubleshooting file permissions, setting up network access, or following technical instructions that reference your user folder. It's also what appears in the file path when you save documents to your user directory.
If you're setting up a new device or helping someone else with their computer, knowing how to find the username quickly saves time. The four methods above cover every situation — whether Settings is working, whether you need it fast, or whether you're looking at the system from a technical angle. Understanding where to look also helps you recognize your username in different contexts, since it may appear differently depending on which tool you're using.
Frequently Asked Questions
Is my username the same as my display name?
Not always. Your display name is what shows on the login screen and in Settings under "Your info". Your username is the folder name in the Users directory. They're often the same, but if you changed your display name after creating the account, they might differ. Command Prompt and File Explorer show your actual username.
What if I see a long string of numbers instead of a name?
That's a Microsoft account username. Windows creates a local folder name based on your email address, and if it's too long or contains characters that folders can't use, Windows shortens it to numbers or a truncated version. Your display name in Settings is usually more readable, but the number string is your actual system username.
Can I change my Windows username?
You can change your display name in Settings easily, but changing your actual user folder name is more complex and requires creating a new account or using advanced tools. For most purposes, changing your display name in Settings is sufficient. If you need to rename your user folder, contact Microsoft support or consult documentation for your specific situation.
Why does my username look different in Command Prompt than in Settings?
Command Prompt shows your system username (the folder name), while Settings shows your display name. They're the same thing if you haven't changed your display name since creating the account. If they differ, the Command Prompt version is what Windows uses internally for file paths and permissions.