The fastest way depends on whether you use Windows, Mac, or Linux
On Windows 10 or 11, you change your username through Settings in about two minutes. On a Mac, you use System Settings and the Users & Groups panel. On Linux, the process varies by distribution, but most use a terminal command or a graphical settings tool. The steps are different because each operating system stores usernames in different places, but all three let you change it without losing your files or programs.
Before you start, know that changing your username does not affect your password, your files, or your installed programs. Your old username folder may still exist on disk after the change, but Windows and Mac both handle the transition automatically. If you are the only person who uses this computer, the process takes five minutes. If multiple people have accounts on the machine, you will need administrator access to change anyone's username but your own.
Key Takeaways
- On Windows, go to Settings > Accounts > Your info and click "Rename your account" to change your username in under two minutes.
- On Mac, open System Settings > General > Users & Groups, unlock the panel with your password, right-click your account, and select "Advanced Options" to edit the username.
- On Linux, use the terminal command usermod -l newusername oldusername or use your distribution's graphical settings tool if you prefer not to use the command line.
- Your files, passwords, and installed programs stay exactly where they are — changing your username does not affect them.
- If you forget your password or lock yourself out during the process, you can still recover your account using a password reset disk or recovery key.
Changing your username on Windows 10 or 11
Open the Start menu and type "Settings" into the search box, then click the Settings app. Once Settings opens, click "Accounts" on the left side of the window. You will see a section called "Your info" at the top — this shows your current username and account picture.
Click the button that says "Rename your account". A dialog box will appear with your current username highlighted in a text field. Delete the old name and type your new username, then click "Next". Windows will ask you to confirm the change. Click "Finish" and you are done. Your new username takes effect when ready, though you may need to sign out and back in to see it everywhere on your computer.
If you do not see a "Rename your account" button, you may be using a Microsoft account instead of a local account. Microsoft accounts are tied to your email address, and changing the display name works differently — you would change it through your Microsoft account settings online, not on the computer itself. To check which type you have, look at the "Your info" page: if it shows an email address instead of a straightforward username, you have a Microsoft account.
Changing your username on Mac
Click the Apple menu in the top-left corner and select "System Settings". In System Settings, click "General" in the left sidebar, then scroll down and click "Users & Groups". You may see a lock icon at the bottom of the window — if you do, click it and enter your password to unlock the settings.
In the Users & Groups panel, your account should be highlighted on the left side. Right-click your account name and select "Advanced Options". A sheet will slide down showing several fields, including "Full Name" and "Account Name". The "Account Name" field is your username — this is the one that appears in the terminal and in file paths. Change it to what you want, then click "OK". Your new username takes effect the next time you sign out and back in.
Do not change the "Full Name" field unless you want to change the display name that appears on the login screen and in menus — that is separate from your actual username. If you change only the "Full Name", your username stays the same.
Changing your username on Linux
The method depends on which Linux distribution you use. Ubuntu, Fedora, Debian, and most others let you change your username through the graphical settings tool, but the exact location varies. Open your distribution's Settings or System Settings app and look for a "Users" or "Accounts" section. Click your account, unlock it with your password if needed, and look for a field labeled "Username" or "Login Name". Edit it and save.
If your distribution does not have a graphical tool, or if you prefer the command line, open a terminal and use the usermod command. The syntax is sudo usermod -l newusername oldusername. Replace "newusername" with what you want and "oldusername" with your current username. The system will ask for your password, then make the change. You will need to sign out and back in for the change to take effect.
One important note: if you change your username on Linux, your home directory path does not change automatically. Your files will still be in /home/oldusername even though your username is now different. This usually does not cause problems, but if you want to rename the home directory as well, you will need to do that separately using the mv command or a file manager with administrator access.
What happens to your files and programs after you change your username
Your files stay exactly where they are. Windows and Mac both keep your Documents, Downloads, Desktop, and other folders intact. Programs you have installed continue to work without any changes. Your password does not change — you still sign in with the same password you used before.
On Windows, your old username folder may still exist in C:\Users after the change, but Windows treats it as a hidden system folder and you will not see it in normal browsing. You can safely leave it there or delete it manually if you want to free up disk space, but it is not necessary.
On Mac, your home directory path changes from /Users/oldusername to /Users/newusername, but all your files move with it automatically. Some applications that store preferences tied to your old username may need to be restarted, but this is rare and usually fixes itself.
Changing a username when you are not the account owner
If you are an administrator on the computer but you want to change someone else's username, you can do that on Windows and Mac, but the process is slightly different. On Windows, go to Settings > Accounts > Other users, select the account you want to change, and click "Rename account". On Mac, unlock the Users & Groups panel with your administrator password, select the other person's account, right-click it, and choose "Advanced Options".
On Linux, you can change another user's username with sudo usermod -l newusername oldusername, but you will need administrator (sudo) access. The user whose account you are changing does not need to be signed in, but they will need to sign out and back in the next time they use the computer to see the change.
What to do if something goes wrong
If you change your username and then cannot sign in, the most common cause is a typo in the new username. Try signing in again, making sure you type the new username exactly as you entered it — usernames are case-sensitive on Mac and Linux but not on Windows.
If you are locked out completely, Windows and Mac both have recovery options. On Windows, use another administrator account to sign in, then go back to Settings > Accounts and try the rename process again. If you do not have another account, you can use a password reset disk if you created one before the problem happened. On Mac, restart the computer and hold Command + S to enter Single-User Mode, then use the command line to change the username back or reset your password.
If you changed your username on Linux and now cannot sign in, restart the computer and enter recovery mode or single-user mode (the exact steps depend on your distribution). Once you have a command prompt, you can use usermod again to change the username back or reset your password.
Frequently Asked Questions
Will changing my username affect my email or online accounts?
No. Your computer username is separate from your email address, social media accounts, and any online services you use. Changing it on your computer does not change anything about your online accounts or how you sign into websites.
Can I change my username without signing out?
On Windows, you can change your username while you are signed in and stay signed in — the change takes effect when ready. On Mac and Linux, you should sign out and back in after changing your username to make sure everything updates properly, though you can usually change it while signed in.
What if I want to change my password instead of my username?
That is a separate process. On Windows, go to Settings > Accounts > Sign-in options and click "Password" to change it. On Mac, go to System Settings > General > Users & Groups, unlock the panel, right-click your account, and select "Change Password". On Linux, open a terminal and type passwd to change your password.
Can I use spaces or special characters in my new username?
On Windows, you can use spaces and most special characters in your display name, but your actual username (the one that appears in file paths) cannot contain spaces or most special characters. On Mac and Linux, usernames should not contain spaces or special characters — stick to letters, numbers, hyphens, and underscores to avoid problems with programs and the command line.
If I change my username, do I need to reinstall my programs?
No. Programs stay installed and continue to work after you change your username. Some programs may need to be restarted, and a few older programs might have trouble finding your files if they stored your old username in their settings, but reinstalling is not necessary.