Change WordPress username quickly and safely with this step-by-step guide so you can update your login name without losing posts or breaking your site.
Maybe you used “admin” when you first installed WordPress, or your old username no longer matches your brand and you want something more professional.
By default, WordPress does not let you edit usernames directly in the profile screen. To change WordPress username, you need to use one of the safe methods in this tutorial instead of editing the field manually.
This guide walks you through several ways to change a username, from beginner-friendly options (creating a new admin or using a plugin) to advanced methods (phpMyAdmin or SEO and UX, and where you will see it in daily work.”>WP-CLI).
What You Need Before Changing a Username
- Administrator access to your WordPress site (or hosting control panel).
- Access to the email address used for your WordPress account (recommended).
- Login details for your hosting control panel if you plan to use phpMyAdmin.
- SSH access if you want to use WP-CLI.
- A fresh backup of your site and database before making account-level changes.
Step 1: Understand Username vs Display Name
Before you change anything, it helps to understand the difference between your username and your display name:
- Username: Used to log in to WordPress. This is what we’ll change using one of the methods below.
- Display Name: The name shown publicly on posts and author archives. You can change this any time from your profile.
How to Change Your Display Name Only
- Log in to your WordPress dashboard.
- Go to Users » Profile (or Users » All Users then click your user).
- In the Name section, fill in your First Name, Last Name, and Nickname.
- Use the Display name publicly as dropdown to choose how your name appears.
- Scroll down and click Update Profile.
This does not change how you log in, but it hides an ugly or insecure username from public view.
Step 2: Choose How You Want to Change the Username
Because WordPress doesn’t allow direct username editing in the profile screen, you must use one of these methods. The table below shows where you use each method and what it’s best for.
| Method | Where You Use It | Main Purpose |
|---|---|---|
| Change Display Name from Profile | WordPress dashboard » Users » Profile / All Users | Quickly update the public name shown on posts and archives without changing the actual login username. |
| Change Username by Creating a New Admin | WordPress dashboard » Users » Add New | Safely replace an old or insecure username (like “admin”) by creating a new admin user and reassigning content. |
| Change Username with a Plugin | WordPress dashboard » Plugins » Add New / Users » All Users | Directly rename an existing username from inside the dashboard using a helper plugin, without touching the database. |
| Change Username in Database (phpMyAdmin) | Hosting control panel » phpMyAdmin » wp_users table | Emergency method for updating the username directly in the database when you can’t access the dashboard or email. |
| Change Username with WP-CLI | SSH terminal with WP-CLI installed | Fast, scriptable username updates for developers or power users managing multiple sites or user accounts from the command line. |
Step 3: Change WordPress Username by Creating a New Admin
This is the simplest way to replace a username (for example, changing “admin” to your real name) without touching the database.
3.1 Add a New Admin User
- Log in to your WordPress dashboard.
- Go to Users » Add New.
- Enter a new Username (this will be your new login name).
- Fill in the Email, First Name, and Last Name fields.
- Set a strong Password and store it somewhere safe.
- From the Role dropdown, select Administrator.
- Click Add New User.
3.2 Log In as the New Admin and Delete the Old User
- Log out of the current account (click your name at the top right » Log Out).
- Log back in using the new username you just created.
- Go to Users » All Users.
- Hover over the old username you want to replace and click Delete.
- On the confirmation screen, choose Attribute all content to and select your new admin user.
- Click Confirm Deletion.
All posts, pages, and other content owned by the old user will now belong to the new username.
Step 4: Change WordPress Username Using a Plugin
If you prefer not to create a new account, you can use a dedicated plugin that lets you rename a username directly from the dashboard.
4.1 Install a Username Change Plugin
- Log in to your WordPress dashboard as an administrator.
- Go to Plugins » Add New Plugin.
- Search for terms like “username changer” or “change username”.
- Choose a plugin with good ratings and recent updates.
- Click Install Now, then Activate.
4.2 Rename the Username
The exact steps vary by plugin, but usually you will:
- Go to Users » All Users.
- Click Edit on the user whose username you want to change.
- Use the new Change Username field added by the plugin.
- Enter the new username and save your changes.
- Log out and log back in with the new username.
Step 5: Change Username via phpMyAdmin (Database Edit)
This method edits the username directly in the WordPress database. Only use it if you’re comfortable working in phpMyAdmin and you have a full backup.
5.1 Open phpMyAdmin and Find the Users Table
- Log in to your hosting control panel (cPanel, Plesk, or your host’s custom panel).
- Open phpMyAdmin.
- In the left sidebar, click your WordPress database name.
- Find the table ending in
_users(oftenwp_users) and click it.
5.2 Edit the Username Field
- Locate the row for the user you want to change (check the user_email column to be sure).
- Click Edit for that row.
- In the user_login field, replace the old username with your new username.
- Click Go or Save at the bottom to update the row.
Now go back to your WordPress login page and sign in with the new username and the same password.
Step 6: Change Username Using WP-CLI
If your host supports WP-CLI, you can change a username with a single command. This is ideal for developers or power users managing multiple sites.
6.1 Connect and List Users
- Connect to your server via SSH.
- Navigate to your WordPress installation directory (where
wp-config.phplives). - Run the following to list users:
wp user list
6.2 Run the Rename Command
Once you know the current username and desired new username, run:
wp user update current_username --user_login=new_username Replace current_username and new_username with your values. After this, log in to WordPress using the new username.
Step 7: Clean Up and Secure Your Account
After you change a WordPress username, it’s a great time to tighten security on that account:
- Use a strong password with a mix of letters, numbers, and symbols.
- Enable two-factor authentication (2FA) via a security or 2FA plugin.
- Review user roles under Users » All Users and remove any accounts you no longer need.
- Log out other sessions from your profile screen if available.
- Update your email address in your profile if it’s outdated.
Conclusion: You Can Safely Change Your WordPress Username
Although WordPress doesn’t let you rename usernames directly in the profile screen, you now know several reliable ways to change WordPress username without losing content:
- Create a new admin user and delete the old one, attributing content.
- Use a username-changer plugin from the dashboard.
- Edit the username directly in the database via phpMyAdmin.
- Run a quick WP-CLI command if you have SSH access.
Pick the method that matches your comfort level, keep good backups, and lock down your account afterward with a strong password and 2FA. You’ll have a safer, more professional username in just a few minutes.




