How to Change Your WordPress Admin Username (2026) — Stop Giving Hackers Half Your Login

How to change WordPress admin username — stop hackers knowing half your login

Wordfence blocked 18.2 billion brute-force attacks in a single quarter of 2026 — and on most of those attempts, the first username the bot typed was “admin.” If that is still your WordPress admin username, attackers do not need to guess who you are. They only need your password.

Learning how to change WordPress admin username details is not a cosmetic fix. A login has two secrets — a username and a password — and “admin” hands over one of them for free. Imagine launching your blog, accepting “admin” during setup, and months later finding thousands of failed logins aimed at that one account: change the name and every automated guess becomes useless. The fix takes about five minutes, and this guide covers all four ways to do it, ranked from safest to most technical.

Why WordPress Locks Your Username

Open Users → Profile and you will see the problem: the username field is grayed out, with the note “Usernames cannot be changed.” This is not a bug. WordPress locks the field because the username is stored as user_login in the wp_users database table — the database key for your account. Posts, comments, author archives, and login sessions all tie back to it, so free editing could orphan content or break plugins.

That lock is why so many sites still run on “admin” years after launch. The default was offered during setup, nobody changed it, and the profile screen offers no way out. Meanwhile, brute-force bots just try the most common usernames first, and “admin” has topped that list for over a decade — a honeypot study (jalu.ch, 2013–2015) logging 163,204 login attempts found “admin” in 91,226 of them, tried by 95% of the attacking IPs.

Key takeaway: your username is half your login. A strong password matters, but a secret username doubles the work an attacker must do. Renaming “admin” is one step in a bigger hardening routine — our full guide on how to secure a WordPress site without a plugin covers the rest.

Before You Start: 3 Quick Prep Steps

  1. Back up your site — files plus database, through your host or a backup plugin. Methods 3 and 4 edit the database directly, and there is no undo button there.
  2. Pick your new username first — something unique, not your name, domain, or display name. Good examples: riverstone-editor, marcus-writes-26. Avoid admin, administrator, root, test, and user.
  3. Stay logged in on a second tab — keep your current admin session open while you work, so you always have a live session to fix things from.

How to Change WordPress Admin Username: 4 Methods Compared

Method Difficulty Risk Best For
1. New admin, delete the old one Beginner Very low Everyone — recommended
2. Easy Username Updater plugin Beginner Low One-click rename
3. phpMyAdmin database edit Advanced Medium Database-comfortable owners
4. WP-CLI command line Advanced Medium Developers and server admins

Method 1 wins for 9 out of 10 people. It uses only built-in WordPress features and cannot lock you out if you follow the steps.

Method 1: Create a New Admin and Delete the Old One (Recommended)

This is how to change WordPress admin username details without a plugin and without touching the database. Create a new administrator account, then delete the old “admin” account and hand all its content to the new one.

  1. Go to Users → Add New. Enter your new username and an email address. Important: WordPress will not let two users share one email, so use a different address for now — you can switch it back once the old account is gone.
  2. Set a strong password (use the built-in generator), set the Role to Administrator, and click Add New User.
  3. Log out, then log back in with the new username and password. Confirm you can see the full dashboard — this proves the new account works before you touch the old one.
  4. Still logged in as the new admin, go to Users → All Users, hover over the old “admin” user, and click Delete.
  5. WordPress asks what to do with that user’s content. This is the critical step: select “Attribute all content to” and choose your new admin account. Every post, page, comment, and media file moves to the new account.
  6. Click Confirm Deletion, then update the new account’s email to your main address in Users → Profile.

If you choose “Delete all content” instead, every post the old admin wrote is gone forever. That single dropdown is the difference between a clean rename and a disaster.

Method 2: Rename WordPress Admin User With the Easy Username Updater Plugin

If you would rather rename the account in place, the free Easy Username Updater plugin does exactly that. Rated 4.2 out of 5 on WordPress.org and updated in April 2026, it lets an administrator change any username — and the display name along with it.

  1. Go to Plugins → Add New, search for “Easy Username Updater,” install, and activate it.
  2. Go to Users → Username Updater, find the “admin” account, type the new username, and save.
  3. Log out and log back in with the new username. Your password does not change.

Two caveats: the plugin is not built for multisite, so skip it on a network install. And some users report that while the login name changes, the author archive URL may still show the old name — see the author URL section below.

Method 3: Change WordPress Username in phpMyAdmin

This method edits the user_login field directly in your database. It is fast and works on any host, but a typo in the wrong row can break your login — so back up first.

  1. In your hosting control panel, open phpMyAdmin and select your WordPress database.
  2. Open the wp_users table. (Your prefix may differ from wp_ — check wp-config.php if unsure.)
  3. Click Edit on the “admin” row. Change user_login to your new username — and change user_nicename to match, since that field controls your /author/ URL and leaving it as “admin” leaks the old name publicly.
  4. Click Go to save, then log back in with the new username. Your password stays the same.

Warning: touch nothing else in that row. The user_pass field holds a hashed password — editing it by hand will lock you out.

Method 4: Change WordPress Admin Username With WP-CLI

If you manage your site over SSH, WP-CLI is the fastest route — with one trap that catches even experienced developers. The obvious command does not work. Running wp user update 1 --user_login=newname prints the warning “User logins can’t be changed” and skips the field, because wp_update_user() deliberately refuses user_login changes. The official WP-CLI wp user update reference confirms it only handles fields like display name, email, and password.

Use the database-query route instead:

wp user list --fields=ID,user_login,user_nicename
wp db query "UPDATE $(wp db prefix)users SET user_login = 'newname', user_nicename = 'newname' WHERE ID = 1;"

The $(wp db prefix) trick fills in your real table prefix automatically, so the command works even if yours is not wp_. Or run Method 1 from the terminal: wp user create newname you@example.com --role=administrator, then wp user delete 1 --reassign=2 to move the old admin’s content to the new user.

The Step Everyone Forgets: Fix Your Author URL (user_nicename)

Here is the nuance most rival guides miss. WordPress stores three different names for every user: user_login (what you type at the login screen), user_nicename (the slug in your author archive URL, like yoursite.com/author/admin/), and display_name (the byline shown on your posts).

Change user_login but leave user_nicename as “admin,” and your old username is still published on every author page. Methods 1 and 2 handle this inconsistently, so after any rename, check the URL directly: visit yoursite.com/author/newname/. If it 404s while /author/admin/ still loads, update the nicename with wp user update 1 --user_nicename=newname, or edit the same row in phpMyAdmin. A rename that leaves /author/admin/ live is only half a rename.

Username vs. Display Name — Don’t Confuse Them

Your username is your login credential — locked, secret, and what this guide changes. Your display name is the public byline on your posts, changeable any time in Users → Profile under “Display name publicly as.” If all you want is for posts to say “Sarah Mitchell” instead of “admin,” change the display name and stop there. But a pretty byline does nothing for security: bots attack the username, not the byline, so the login name still needs to change.

Locked Out? How to Recover After a Rename

  • You deleted the wrong admin: restore your pre-change backup, or create a fresh administrator via WP-CLI (wp user create rescue you@example.com --role=administrator) and reassign the content.
  • You forgot the new name: check user_login in the wp_users table in phpMyAdmin, or run wp user list over SSH.
  • You can log in but see no admin menus: you likely deleted the admin account while logged in as a lower role. Log in with the new admin account, or restore the backup.
  • Nothing works: your host’s support team can reset an admin account from their side. This is why the backup matters — with it, any mistake is a ten-minute restore, not a rebuild.

Pair the rename with the rest of your hardening: move your login page and add a second factor. Our guides on changing the WordPress login URL and adding two-factor authentication to WordPress stack with this change, and together with brute-force protection they turn a soft target into a hard one. Prefer an expert? See our WordPress services or get in touch.

Frequently Asked Questions

Can I change my WordPress admin username?

Yes. WordPress does not let you edit it from the profile screen, but four methods work: create a new admin and delete the old one (recommended), use the Easy Username Updater plugin, edit user_login in phpMyAdmin, or run a WP-CLI database query. None requires reinstalling WordPress.

Why can’t I change my username in WordPress?

WordPress locks the username field because the username (user_login) is the database key for your account. Posts, comments, author archives, and login sessions all reference it, so free editing could orphan content or break plugins. The methods in this guide change the same field safely, with safeguards like content reassignment built in.

What happens if I delete the admin user?

WordPress asks whether to delete all their content or attribute it to another user. Choose “Attribute all content to” and pick your new admin account, and every post, page, and comment moves over untouched. Choose “Delete all content” and those posts are permanently deleted. Always back up before deleting any user.

Is “admin” a bad username?

Yes — it is the single most-guessed username in brute-force attacks, because it was WordPress’s default for years and attackers know it. Using “admin” hands attackers half your login credentials before they start guessing your password. Any unique username that is not guessable from your site is a major improvement.

Will changing my username break my site?

Not if you use Method 1 or Method 2. Creating a new admin and reassigning content, or using a rename plugin, keeps every post, setting, and plugin intact. The only risk comes from direct database edits (phpMyAdmin or WP-CLI) done without a backup. Back up first, change user_nicename along with user_login so your author URL updates too, and log back in with the new name to confirm everything works.

The Bottom Line

“Admin” is not a username — it is a welcome mat. Now that you know how to change WordPress admin username details, the fix takes five minutes: create a new administrator, attribute all content to it, delete the old account, and check that your author URL changed too. Do it today — and the next billion brute-force attempts will bounce off a username that no longer exists.

Leave a Comment