Open Users > Profile in WordPress, and you’ll see your username greyed out with a note: “Usernames cannot be changed.” That’s by design. WordPress uses the username (user_login) as a login identifier and doesn’t offer an edit box for it.
You can still change it. Below are four methods to change WordPress username, from the easiest (no code) to the fastest (one command). Pick the one that matches your comfort level.
Short Answer: WordPress does not let you edit a username from your profile. The safest fix is to create a new admin user with the username you want, log in as that user, and delete the old account while assigning its posts to the new one. If you are comfortable with tools, a username plugin, phpMyAdmin or one WP-CLI command does it in place.
First: Do you need to change the username at all?
If you only want a different name to appear on your posts, you don’t need to touch the username.
Go to Users > Profile, fill in Nickname, and choose it under Display name publicly as. Done.
Change the actual username when:
- It’s
admin, your domain name, or something easy to guess - It contains a typo or an old brand name
- It’s shown in your author URL (
/author/username/) and you don’t like that
Before you start
- Back up your site (database at minimum). My backup plugins guide lists easy options.
- Know your current password and email.
- If you use a security plugin with login limits, make sure you won’t lock yourself out.
4 Ways to Change WordPress Username

Method 1: Create a new admin and delete the old one (no plugins, no code)
This is the safest built-in method.
- Go to Users > Add New User.
- Enter the new username and a different email address from the old account (WordPress needs unique emails). You can swap emails afterwards.
- Set the role to Administrator and save.
- Log out, then log in with the new account.
- Go to Users, hover over the old account and click Delete.
- When asked what to do with the content, choose Attribute all content to your new account. This step matters: choose the wrong option, and you’ll delete every post that user wrote.
- Update the new account’s email to your main address if you want.
Pros
- No plugins
- No database access
Cons
- A new user ID
- Any plugin settings tied to the old user ID may need redoing
Method 2: Use a plugin
Plugins like Easy Username Updater or Username Changer add an edit option to the Users screen. Install one, change the username, then remove the plugin.
- Install and activate the plugin.
- Go to Users and use the plugin’s update/change link for the user.
- Enter the new username and save.
- Log in again with the new username.
- Deactivate and delete the plugin.
Pros
- Keeps the same user ID
- So all content and settings stay attached
Cons
- Check that the plugin is recently updated before you install it
Method 3: Edit the database with phpMyAdmin
Good if you’re locked out or prefer to work directly.
- Open phpMyAdmin from your hosting panel.
- Select your WordPress database.
- Open the
wp_userstable (your prefix may differ, likewpxy_users). - Click Edit on your user row.
- Change the value in
user_loginto the new username. - Optionally change
user_nicename, which controls the author URL slug (lowercase, hyphens). - Click Go to save, then log in with the new username.
Don’t touch user_pass unless you know what you’re doing; it’s a hash.
Method 4: WP-CLI (fastest for developers)
WP-CLI’s wp user update command doesn’t change user_login, because WordPress core blocks that field from normal updates. Run a direct database query instead:
wp db query "UPDATE wp_users SET user_login = 'newname' WHERE ID = 1;"
Replace wp_users with your table name, newname with the new username, and 1 with the user ID (find it with wp user list). Optionally update the author slug:
wp db query "UPDATE wp_users SET user_nicename = 'newname' WHERE ID = 1;"
Important note: Whatever method you use, log in with the new username in a private window before you close your current session. If something went wrong, the old session is your way back in.
After changing your username
- Log out and back in with the new username.
- Update saved passwords in your browser or password manager.
- Check your author archive URL. If
user_nicenamechanged, old/author/oldname/links will 404. Add a 301 redirect with Rank Math, Yoast Premium or the Redirection plugin. - Reconnect any app passwords or integrations tied to the old login (mobile app, Zapier, publishing tools).
- Turn on two-factor authentication while you’re thinking about security. My WordPress security plugins guide covers options.
Hide Your Username from the Public
Even with a strong username, WordPress can expose it through author archives and the REST API (/wp-json/wp/v2/users).
Most security plugins can block user enumeration. Also set a display name that’s different from the login name, so your byline doesn’t reveal it.
FAQs related to How to Change WordPress Username
Why does WordPress say usernames cannot be changed?
Because the username is a permanent login identifier in core. You need one of the methods above to change it.
Will changing my username delete my posts?
Not with methods 2, 3 or 4. With method 1, posts are safe only if you attribute them to the new account when deleting the old one.
Can I change the username on WordPress.com?
WordPress.com has its own account settings and allows a username change from your account page, with some limits. This guide is for self-hosted WordPress.org sites.
Is using “admin” as a username dangerous?
It makes brute-force attacks easier because attackers only need to guess the password. Change it and enable login protection.
For more routine security habits, add a quarterly user audit to your WordPress maintenance checklist.
Conclusion
For most people, method 1 is the one to use: new admin, reassign content, delete the old account. It needs no plugin and no database access, and nothing can go wrong that a backup cannot fix.
Use phpMyAdmin or WP-CLI only if you already know your way around them.
Whichever route you take, set a display name that differs from the login name and block user enumeration with a security plugin such as Kadence Security. A username nobody can see is worth more than a clever one.