Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Change your WordPress Username

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Change your WordPress Username

Have you ever tried to change your WordPress username just to find out that it cannot be changed? If you are, well then this article is for you. In this article, we will show you three different methods to change your WordPress username.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

Method 1: Create a New User and Delete The Old One

The easiest way to change your WordPress username is by creating a new user with your desired username and with the administrator user role. You will need to use a different email address than the one used by the old account.

Now you need to logout and then login with the new user account you just created. Go to the Users section and click on the Delete link under your old username

Deleting a user in WordPress

While deleting your old user, WordPress will ask what you want to do with their content. Make sure that you click on ‘Attribute all content to:’ option and then select the new user you just created. Click on the ‘Confirm Deletion’ button to delete the old user account.

Attribute all content to new user

That’s all you have successfully changed your WordPress username. If you want you can change the email address of the new user to use the old email address associated with the old username.

Method 2: Change Username by Using a Plugin

Another simple way to change your WordPress username is by using a plugin. If you are one of those users who don’t want to install a plugin for every little thing, then let us assure you that you can safely delete the plugin once you have changed your WordPress username.

First thing you need to do is install and activate the Username Changer plugin. Upon activation, simply go to Users » Username Changer page.

Changing a username in WordPress with Username Changer plugin

Select the username you want to change, and then enter the new username. Click on the save changes button and you are done.

Method 3: Change Your WordPress Username Using phpMyAdmin

This method is a little bit complicated as it requires making direct changes to your WordPress database. We usually don’t recommend users to make direct changes to their WordPress database. However, in some cases you may not have any other option. Like for example, if you have forgotten your WordPress username and email address, then you will not be able to access the admin dashboard to change username.

Using this method, you can find your username and you will also be able to change it.

First thing you need to do is login to your cPanel. Scroll down to the databases section and click on phpMyAdmin.

phpMyAdmin from cPanel

Next you need to select the database that your blog is hosted in.

phpMyAdmin Select Database

You will see your WordPress database tables. By default, WordPress database tables use wp_ as prefix before each table’s name. It is possible that you may have been using some other prefix.

Click on the table wp_users on the left hand side. Then click edit on the username that you want to edit.

Edit username from phpMyAdmin

Change the user_login value to whatever you want. For example you can replace ‘admin’ to ‘bob’

Change user_login value

Hit the Go button and you are done.

That’s all, we hope this article helped you learn how to change your WordPress username. You may also want to check out our guide on what to do when you are locked out of WordPress admin area.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Danstan says:


  2. Vijay says:

    Thank you so much for this article. I took the phpMyAdmin route and it worked… But, before it started working it did this weird thing where if I entered the url of the user’s profile it took me to the home page.

    But then in the end it worked. Probably because I saved the profile from wp-admin after having changed the user_login and the user_nicename values from phpMyAdmin?

  3. Daniel Taylor says:

    That’s for the great advice. The plugin was the most easiest way.

  4. madivad says:

    Too many places to reply so I’ll create a new comment.

    I’m one of those people that don’t like to just add another plugin (even if I can remove it afterwards) and so even after reading about the create new user/delete user/migrate posts method, I liked the phpmyadmin method.

    But it does cripple multisite installs and you really should update the main post about that.

    For anyone who does do it the database way, you have to go into your sitemeta table and update the superadmin user with the new username and character count in the S:flag.

    Otherwise, the create/delete/migrate method might actually be a better option :)

    • Cassy says:

      Here is the way I did it – very quick and easy, took me less than 5 minutes to do:
      1. Go to users
      2. Click on the user name you want to change
      3. Above the “Update Profile” button, there will be text that reads “Were you looking for your API Key and other Personal Settings”. The ‘API Key and other Personal Settings’ text will be highlighted (as it is a link).
      4. Click on this highlighted text.
      5. Scrolls down the page to the heading “Account Details”
      6. Just under “Account Details” will be ‘User Name’
      7. You will see next to your user name there will be the word ‘Change’ in brackets, also in highlighted text (indicating it is a link).
      8. Click on this text to change your user name.
      9. Don’t forget to save
      10. You can change all other linked settings from here, such as BLOG NAME, PRIMARY BLOG, etc,

  5. Traci says:


    Thanks for the article! Out of curiosity, would a change of my WP login username prompt a DISCONNECT to jetpack stats and tools?

    I’m asking b/c today, I changed it (due to tireless notifications of site lockout attempts from….who knows?), and now my jetpack stats are all screwy and no longer recognizes my website. I’m getting this error message:

    unknown_token: It looks like your Jetpack connection is broken. Try disconnecting from then reconnecting.

    But no further instructions on what to do. Love to know your thoughts.

    Thanks! LOVE your all of your content!

  6. Chris says:

    A word to the wise, from someone who wasn’t. Using that plugin can be fatal to a multisite setup. Multisite does not allow the user name of the superadmin to be changed. And there is no warning about this on the plugin site. But because the plugin just twiddles with the name fields of the database it gaily ignores this. So if you use it, be prepared to lose all access to the network. This might not happen if the name you change it to happens to have the same number of characters as the name you are changing from. I am not about to prove this point though, once bitten and all that. The remedy is then only direct editing of the database to restore precisely, and I do mean precisely including cap and lower case usage, what was there before.

    • Miha says:


      i successfully changed username on the multisite installation.

      I have changed username directly in sql database.

      First of all backup your db.

      You have to change username in tables:
      _users in fields: user_login and user_nicename
      _usermetadata field nickname and
      _sitemeta field site_admins

      in the field site_admins be careful to change the name admin and number of letters before admin in variable s:5
      admin username has 5 letters, change it to number of letter in your new name

      Delete cookies in browser, login again to your WP admin and you have network access with your new username

  7. Frank says:

    Does it make sense to change the user ID as well?

  8. Bob The Builder says:

    Here is something odd that I’ve noticed today.

    I did not like it that my (admin) username was visible in the author URL. So I decided to create a new user with author role and since I’ve made this new user the author URLs are the same as the screennames.

    So now I can use my admin account again since the screenname is visible in the URLs and not my actual username.

    Any explanation for this?

    • WPBeginner Support says:

      WordPress uses the username in the Author URLs. If the admin user still has posts then their author URL will still appear on those posts. You can assign those posts to new author account you created and set a redirect for the admin url.

  9. Paul Okeke says:

    Everything about is awesome. This article and all I have come across from the same source worked for me. Just want to say a big thanks to editorial saff. Cheers!

  10. Adriana says:

    Would the process “Create a New User and Delete The Old One” work properly from network admin area on a multisite installation?

  11. Muhammad says:

    It worked! Many thanks!

  12. MattFromGA says:

    This change may or may not be a big problem for a given wordpress site based on the plugins and theme it is using. What if there is a plugin that uses an external system that associates data with username? The simple change outlined here would fail to update that username in the external system and the association between the user and that external data would be broken with this change. What about forum posts in bbpress where a user mentions another user by username?

    I guess a basic wordpress blog install wouldn’t have too many problems with this, but beyond that you better have awareness of the other plugins and theme dependencies on username. If none, this simple change could be fine.

    • Rose says:

      Yes And we’ve seen this week where this all can lead to. Patching up plugins, fixing holes, hoping the theme has no holes, then after seeing the notorious scammers all have the name, changing username etc. But luckily we can change the name. There’s no other option when all is leaked out. Yes security. Having a good security plugin. Securi I found too difficult to understand. Anyway, there are certainly more problems to fix soon.. boy oh boy.

  13. Braham Dutt Sharma says:

    Hi, I want change my existing blog authority in another login id example: i make 5 blog with my own id and now i want change 1 blog login and password with another email is , can this possible , if possible please help.

  14. Tyler says:

    There is nowhere else it needs to change. Everything is attributed to the ID of the user, not the username. It’s just a text field like email, first_name etc.

    • MattFromGA says:

      So you have a certainty that ever plugin and theme written for wordpress follows that guidance? What about plugins that share username with external systems which make data associates with that?

  15. Morphine Child says:

    Wow, did phpmyadmin solution… literally 3 seconds of work…

    Big thank you!

  16. adeem jan says:

    Yet another informative tutorial from you

    Let me tell you honestly, I am totally the non-techie so I had NO idea about how to change the admin username till some time back – nor do I visit the C-Panel – I fear those places…lol…

    My friend takes care of the tech aspects, though I’ve learnt it all now and thanks to you all of you tech bloggers sharing your posts here, I keep learning each day!

    Yes, for security reasons, you need to change the usernames, more so with the number of cases of hackers all over the web. Better to be safe than sorry later.

    Thanks for sharing.…. keep up the good work…

  17. Jatin Chhabra says:

    Well the 1st ine didn’t work but the 2nd one did…

  18. Aaron Dear says:

    Stijn’s way is my favorite way. Haha

  19. Nasir Uddin says:

    Thanks. I knew it before. Another process is given by Stijn Vogels. I do that sometimes. But phpmyadmin process is much easier if you have cpanel details.

  20. Mihaela says:

    Worked for me. Thank you.

  21. vaibhav singh says:


    Thanks for taking time to write this. I was thinking it is impossible to change….Thanks a lot

  22. hoa sen vang says:

    That’s good idea, thanks i think found the right way to change user name any more, which make me crazy time.

  23. getnet asfaw says:

    how can i change user name from the hosted website if i can’t access the database of all the users?

  24. Milan says:

    why not choose desired name that appear for that username

    • Vince Comfort says:

      You make work easier for hackers. Because when hackers want to access your site, they start with the desired, sitename and initials.

  25. Jitendra Vaswani says:

    Thnxxx for this amazing article. I was eager to change my username. finally i got solution.

  26. Kamal G says:

    Very Very Useful Thanks a lot for sharing,it saved lot of time…

  27. Dave OSullivan says:

    Thanks, worked a treat. Instead of ‘Usernames cannot be changed’ why doesn’t it say ‘Usernames can only be changed in your hosting cPanel’ Thanks fir the tutorial

  28. Michael Bryant says:

    Awesome tutorial, thanks for the info. Worked just like the steps you outlined. Thanks.

  29. John G. says:

    That really helped out, thanks for posting it. Really was one, two, and done.

  30. Richard says:

    I have installed probably three wp site recently and my email address is being put in as user id. When I try to change by creating a new admin and delete the old, the system will not complete the action. So now I have two admins in each install.

  31. Phillip Taare says:

    thanks very cool, I used better Wp security plugin but I did like your article. Cheers

  32. William Patton says:

    wow… how many people don’t update their username on creation? lol

    And changing the record in the database without following the chain of records that the original input created is just… wrong. I wouldn’t be giving anyone this advice without a disclaimer. At least it says the easiest way (it should be the recommended way) is to create a new user and attribute all posts to it then make sure that the old user ID isn’t being called from anywhere, if it is update it.

    • Tyler says:

      What is this “chain of records” you speak about? Every post is attributed to the ID of the user, so changing the username is perfectly safe. It’s nothing more than a field like email, first_name, etc. If you don’t know anything about how WordPress or databases work, it’s probably best not to give advice on it.

  33. Justin says:

    This was extremely helpful. Thanks for making things easy.

  34. Jim White says:

    Worked for me. Thank you.

  35. Chris says:

    Worked for me thanks!

  36. Adnan Gujjar says:

    thanks for this nice trick, i have changed my username :)

  37. Lilou says:

    I’m French and not English very well. But I wanted to thank you for your help, because I was looking how to change the ID of my WordPress site.

    Thank you again.
    I put your site in my favorites.

    See you soon.

  38. Naveen says:

    thanks a lot
    it worked well for me….

  39. wisekal says:

     @Stijn Vogels Changing the username in this manner can also cause other problems. As you mentioned, a person can create a new account, give it admin rights and proceed by deleting the old admin. However, there are in many instances where the admin ID was used for something. When you create a new admin, you create a new ID. By updating the username via “phpMyAdmin” you’re avoiding that being changed.
    @kovshenin  This is 100% correct and goes with what I said above. In my opinion the best approach is that which was recommended above in this article. It keeps a lot of the crucial information you may require rather than loosing it when creating a new admin user.
    Additionally to all this, you can also download a plugin or two by Website Defender, one being “WP Security Scan” and the other “WP Secure”. These plugins allow for you to seamlessly update your database username and prefix used by your installation without any access required to the databases. Two plugins I strongly recommend for various reasons.
    – Bryce Wisekal

    • kovshenin says:

       @wisekal  Hi Bryce! Sorry but you’re wrong, messing with the wp_users table directly is in fact insecure, because of the various actions and filters run during functions like wp_insert_user and wp_update_user including cache revalidation, data sanitization and much more. When updating your table directly you’re short-circuiting all those actions and filters, so plugins, themes and core that rely on them will simply fail. An example of such a plugin is any persistent object caching plugin that uses wp_cache_get.

  40. kovshenin says:

    Stijn’s right, it’s easier and requires no messy phpMyAdmin routines, to just create a new user and then attribute all posts. However, it’s worth noting that usernames are used in the permalink structure for author archives, like your archives are now on /author/wpbeginner/ and if you changed your username, all those previous links will turn into 404 errors.
    ~ Konstantin

    • Stijn Vogels says:

       @kovshenin Methinks an archive for /author/kovshenin/ would be more relevant than /author/admin/ which will probably generate a million results… According to Google, about 17,3 million. No argument that your procedure is the most valid, but it should be done from the beginning.

      • kovshenin says:

         @Stijn Vogels I’m not saying it’s good or bad, wrong or right, worth the trouble or not. I’m just saying what will happen to your previous author archives, so nobody is surprised :)

    • Editorial Staff says:

      Not sure if I understand you correctly Konstantin.. But in my experience, the old URLs stay the same. For example if the URL is /author/wpbeginner/ << it will continue to work. For example if I changed the username to newname… the url /author/newname/ won’t work. But that has no impact on anything. As a matter of fact some may even say that this is good for security because now the hackers don’t know your username.

      • GWW says:

        I believe the URLs use the user_nicename field. By default, this is set to the user_login field after being passed through `sanitize_title` (which replaces accented characters, removes HTML and PHP tags). If you update user_login without changing user_nicename, URLs remain unaffected. If you update both fields, URLs will change; any URL using the old nice name will result in a 404.

        • whereskarlo says:

          This. What about if you only change the nicename but leave the username intact? I’d rather keep my username and make the urls prettier.

  41. Stijn Vogels says:

    Even easier:
    1. Create a new admin profile for yourself, with the name you want.
    2. Delete you old admin profile and transfer all posts to the new account.
    3. Done.

  42. Will says:

    This is so cool! Thanks a lot :) Was wondering how to do this.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.