The safest way to change your admin username
The most find method is to create a new admin account with the username you want, then delete the old one. WordPress does not let you rename an existing account directly — you have to build a replacement and phase out the original. This takes about five minutes and prevents the common mistake of leaving a default "admin" account active on your site.
You will need to be logged in as an administrator to do this. If you have lost access to your admin account, you will need to reset your password through the WordPress login screen or contact your hosting provider to regain entry.
Key Takeaways
- WordPress does not have a rename function; you must create a new admin account and delete the old one to change your admin username.
- The safest approach is to create the new account first, log in as that account, then delete the original account from the Users menu.
- Any posts or pages authored by the old account can be reassigned to the new account before deletion, so you do not lose content attribution.
- If you use a plugin like Wordfence or iThemes Security, disable two-factor authentication temporarily during the switch to avoid being locked out.
Step-by-step: creating a new admin account
Log in to your WordPress dashboard with your current admin credentials. In the left sidebar, click Users, then click the Add New button at the top of the page.
Fill in the form with your new username in the Username field. This is the name you will use to log in going forward. Type a strong password in the Password field — WordPress will generate one for you if you click the password generator button. Set the Role dropdown to Administrator. Leave Send this user an email about their account unchecked unless you are setting up an account for someone else. Click Create User.
WordPress will confirm the new account was created. Do not log out yet — stay logged in as your current admin account for the next step.
Reassigning content before you delete the old account
Before you delete your original admin account, you should reassign any posts, pages, or custom content authored under that account to your new admin account. If you delete an account without doing this, WordPress will either delete the content or leave it orphaned, depending on your site settings.
Go to Users in the sidebar and find your original admin account in the list. Click on the username to open that user's profile. Scroll down and look for a section labeled Delete User or Remove User. Before you click delete, WordPress will ask what to do with content authored by that user. Select Attribute all content to: and choose your new admin username from the dropdown. This reassigns all posts and pages to the new account. Then click Confirm Deletion.
Logging in with your new username
After you delete the old account, log out of WordPress by clicking your profile icon in the top right and selecting Log Out. Go to your WordPress login page (usually yoursite.com/wp-login.php) and enter your new username and password.
If you are locked out or the login does not work, clear your browser cache and cookies, then try again. If you still cannot log in, contact your hosting provider — they can reset your WordPress database or restore access through their control panel.
What to do if you use security plugins
If you have installed a security plugin like Wordfence, iThemes Security, or Sucuri, these plugins may block login attempts from unfamiliar locations or flag the new account as suspicious. Before you make the username change, log in to your security plugin's settings and temporarily disable two-factor authentication or IP whitelisting.
After you have successfully logged in with your new username and deleted the old account, re-enable those security features. This prevents you from being locked out during the transition. If you do get locked out, most security plugins have a lockout recovery option in their settings, or you can contact your hosting provider to disable the plugin temporarily.
Why changing your admin username matters
The default WordPress admin username is "admin," and attackers know this. They use automated tools to try logging in with "admin" as the username and common passwords. By changing your admin username to something unique and keeping your password strong, you remove half of the information an attacker needs to break in.
This is not a substitute for other security practices — you still need a strong password, regular backups, and kept-up-to-date WordPress and plugin versions. But it is one of the easiest steps you can take to reduce your site's exposure to brute-force attacks.
Frequently Asked Questions
Can I rename my username instead of creating a new account?
No. WordPress does not have a built-in rename function for usernames. You must create a new account with the username you want, then delete the old one. This is by design — WordPress treats the username as a permanent identifier tied to posts and comments.
What happens to my posts if I delete my old admin account?
Before you delete the account, WordPress asks you to reassign all content to another user. Select your new admin account from the dropdown, and all posts, pages, and comments will be transferred. If you delete without reassigning, the content may be deleted or left without an author, depending on your site settings.
Will changing my admin username affect my site's performance?
No. Changing your username is a user account change only — it does not affect your site's speed, functionality, or any published content. Your site will work exactly as it did before.
What if I get locked out after creating the new account?
Clear your browser cache and cookies, then try logging in again. If that does not work, contact your hosting provider — they can access your WordPress database directly or reset your password through their control panel. Most hosting providers can restore access within a few minutes.
Do I need to tell my site visitors about the username change?
No. Your admin username is not visible to visitors — it only appears in the WordPress dashboard and in the login URL. Changing it has no effect on how your site appears to the public.