What changing your computer name does

Your computer's name is the identifier that appears when you connect to a network, share files with other devices, or look at your device list. Changing it does not affect your files, passwords, or how the computer runs — it only changes what other people see when they look for your device on a network. You might change it to something more descriptive (like "kitchen-laptop" instead of "DESKTOP-A7K2M9"), to match a naming scheme in your home or office, or simply because you want a different name.

The process takes about five minutes and requires administrator access to your account. You will need to restart your computer after making the change for the new name to take effect everywhere.

Key Takeaways

  • Your computer's name is visible to other devices on your network but does not affect files, passwords, or performance.
  • On Windows 11, go to Settings > System > About, click "Rename this PC", type the new name, and restart.
  • On Windows 10, the same path works, but some older versions require going through System Properties instead.
  • On Mac, go to System Settings > General > About, click "Edit" next to the computer name field, type the new name, and click "Rename".
  • Computer names can be 1 to 63 characters and should use only letters, numbers, and hyphens — avoid spaces and special characters.

Changing your computer name on Windows 11

Open the Settings app by pressing the Windows key and typing "Settings", then press Enter. Once Settings opens, click "System" in the left sidebar, then scroll down and click "About".

On the About page, look for the line that says "Device name" near the top. Click the button labeled "Rename this PC" directly below it. A text box will appear with your current computer name highlighted. Delete the old name and type the new one — you can use letters, numbers, and hyphens, but avoid spaces and special characters. Click "Next" when you are done.

Windows will ask you to restart your computer to apply the change. Click "Restart now" to restart immediately, or "Restart later" if you want to finish other work first. The new name will appear after the restart.

Changing your computer name on Windows 10

The process is nearly identical to Windows 11. Open Settings, click "System" in the left sidebar, then click "About". Look for "Device name" and click "Rename this PC". Type your new name and click "Next", then choose to restart now or later.

If you are using an older version of Windows 10 and do not see the "Rename this PC" button, use the alternative method: right-click the Start button, select "System", then click "Rename this PC" on the right side of the window. The steps after that are the same.

Changing your computer name on Mac

Click the Apple menu in the top-left corner and select "System Settings" (or "System Preferences" on older versions). In the sidebar, click "General", then click the "About" tab at the top of the window.

Look for the line labeled "Computer Name" near the top of the About window. Click the "Edit" button next to it. A text box will appear with your current name. Delete it and type the new name, then click "Rename". The change takes effect immediately — you do not need to restart.

Naming rules and what to avoid

Computer names can be between 1 and 63 characters long. Use only letters (A–Z, a–z), numbers (0–9), and hyphens (-). Do not use spaces, periods, underscores, or special characters like @, #, or $. Windows will reject names that contain these characters and ask you to try again.

Avoid names that are only numbers, as some network devices have trouble with them. A name like "192-168-1-1" can cause confusion with IP addresses. Names like "kitchen-laptop" or "office-printer-1" are clear and work reliably across networks.

When the change does not take effect

If you renamed your computer but other devices still show the old name, the most common cause is that you have not restarted yet. Windows requires a restart; Mac does not, but some network services on Mac may need a few minutes to update. If you restarted and the old name still appears on other devices, those devices may be caching the old name — restart them as well.

If you are connected to a workplace domain (common in offices), you may not have permission to change the computer name yourself. Contact your IT department or network administrator — they can change it for you or grant you permission to do so.

Why you might not see the change right away on your network

After you restart your computer, the new name should appear immediately on your device. However, other computers and devices on your network may take a few minutes to see the change, because they cache the old name in their local network memory. If a phone or printer still shows the old name after 10 minutes, restart that device as well.

If you are trying to access your computer by name from another device (for example, typing the computer name into a file browser), and it is not working, make sure both devices are on the same network and that you are using the exact name you set — names are case-sensitive in some contexts.

Frequently Asked Questions

Will changing my computer name affect my files or passwords?

No. Your files, user account, passwords, and all installed programs remain exactly the same. Only the name that appears on your network changes. You will still log in with the same username and password.

Can I use spaces or special characters in the computer name?

No. Windows and Mac both reject spaces and special characters. Use only letters, numbers, and hyphens. If you try to use a space or special character, the system will show an error and ask you to choose a different name.

Do I have to restart my computer for the change to take effect?

Yes on Windows — the system will prompt you to restart and the change will not be complete until you do. On Mac, the change takes effect immediately without a restart, though network services may take a few minutes to update.

What if I change my computer name and then cannot connect to my network?

This is rare, but if it happens, restart your computer and your router. If you are on a workplace network, contact your IT department — they may need to update network records with the new name. If you are on a home network, restarting usually solves the problem.

Can I change my computer name back to what it was before?

Yes, anytime. Follow the same steps you used to change it the first time, and type the old name (or any new name you prefer). There is no limit to how many times you can change it.