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 Switch from Blogger to WordPress without Losing Google Rankings

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Switch from Blogger to WordPress without Losing Google Rankings

Blogger is an awesome free tool to quickly start blogging. However, many Blogger users eventually realize that if they want full control of their blog, then they would be better off with their own self hosted blog (what’s the difference between self-hosted vs blogs). In this step by step tutorial, we will help you switch from Blogger to WordPress without losing Google rankings.

Safely moving a Blogger blog to WordPress

Step 0. Before You Start

To get started with WordPress, the first thing you would need is a good WordPress hosting company and your own domain name. We highly recommend Bluehost because they will give you a free domain and 50% off their hosting plan (special for WPBeginner users). Bluehost is also an officially recommended hosting provider of WordPress.

If you want a Bluehost alternative, then take a look at Siteground who also offer the same special offer to WPBeginner users.

Once you have signed up for WordPress hosting and set up your domain name, the next step is to install WordPress on your hosting account. We have a step by step tutorial on how to install WordPress. Once you have installed WordPress, it is time to move your content from Blogger to WordPress.

Step 1. Export Your Blogger Blog

First thing you need to do is export your blogger blog’s content. Simply log into your blogger dashboard and go to Settings » Other page. Under the blog tools, click on the Export Blog link.

Export Blogger blog

This will bring up a popup where you need to click on the Download Blog button.

Download your Blogger blog's export file

Your Blogger blog’s content will be downloaded to your computer in an XML file.

Once the download is complete, it is time to import it into your WordPress site.

Step 2. Import Blogger to WordPress

To start importing your Blogger site into WordPress, you need to go to your WordPress admin and visit Tools » Import. On the Import page, click on Blogger.

Blogger importer under WordPress import tools

This will bring up a popup asking you to install the Blogger to WordPress importer. You need to click on the Insall button.

WordPress will now download and install the Blogger Importer plugin for you. Once it is finished installing, you would need to click on the Activate Plugin and Run Importer link to continue.

Activate and run blogger importer

On the Import Blogger screen, WordPress will ask you to upload the XML file. This is the file that you downloaded in Step 1.

Simply click on the choose file button and upload the XML file you downloaded earlier. Next, click on the Upload file and import button to continue.

Upload Blogger export file to WordPress

Now if you didn’t select one of our recommended hosts or your site is really large, you may get an error that your file size is too large. In this case, you would need to increase your maximum file upload limit. If your file is small, then you won’t see any errors.

WordPress will now import your blogger posts one by one. When it is finished, you will be asked to assign an author to the imported posts. You can assign your blogger posts to an existing author (you) or create a new author account.

Congratulations! you have successfully imported your Blogger content into WordPress. However, you still need to make sure that you don’t loose any search rankings and that visitors from your old blog easily land to the same content on your new WordPress website.

Step 3. Setting up Permalinks

Permalinks is the term used for URL structure of individual pages. WordPress comes with a feature that allows you to set up SEO friendly URL structure. However, since you are importing content from Blogger, you would want your URL structure to be as close to your Blogger URL structure as possible.

To set permalinks, you need to go to Settings » Permalinks screen and choose Month and Name as your permalink structure.

Choosing a permalink structure for your WordPress site

Step 4. Setting up Redirection

The most important step in moving any website is to set up proper redirection so that users are redirected to your new website.

The important part of redirection is that you want users to land on exactly the same page on the new site which they were trying to access on the old site. Secondly, this also notifies search engines that your old site is moved to a new location.

To successfully move from Blogger to WordPress, you need to set up redirection on two levels.

First, you will redirect Blogger visitors to your new WordPress blog. Second, once users reach your WordPress site, you will redirect them to the exact post they were trying to read.

Let’s first set up redirection on the blogger blog. You need to log on to your Blogger account and go to your Blog’s settings and click on Template.

Blogger Template

On the template page, you need to scroll down to the bottom of the page and click on Revert to Classic Template link.

Revert to classic template for your Blogger blog

After switching to classic template, you will see ‘Edit Template HTML’ textarea. You need to replace everything in this text area with the following code. Make sure that you replace with your own domain name.



   <link rel="canonical" href="" />

    <link rel="canonical" href="<$BlogItemPermalinkURL$>" />

   <h1><a href=""><$BlogTitle$></a></h1>
    <h1><a href="<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a></h1>

Save your template, and you have successfully implemented redirection on your Blogger blog.

However, you still need to setup redirection on your WordPress site so that users are redirected to the proper posts.

You need to copy and paste the following code in your WordPress theme’s functions.php file or in a site-specific plugin.

If this is your first time adding code to your WordPress site, then you may want to check our beginner’s guide to pasting snippets from the web into WordPress.

function blogger_query_vars_filter( $vars ) {
  $vars[] = "blogger";
  return $vars;
add_filter('query_vars', 'blogger_query_vars_filter');
function blogger_template_redirect() {
  global $wp_query;
  $blogger = $wp_query->query_vars['blogger'];
  if ( isset ( $blogger ) ) {
    wp_redirect( get_wordpress_url ( $blogger ) , 301 );
add_action( 'template_redirect', 'blogger_template_redirect' );
function get_wordpress_url($blogger) {
  if ( preg_match('@^(?:https?://)?([^/]+)(.*)@i', $blogger, $url_parts) ) {
    $query = new WP_Query ( 
      array ( "meta_key" => "blogger_permalink", "meta_value" => $url_parts[2] ) );
    if ($query->have_posts()) { 
      $url = get_permalink(); 
  return $url ? $url : home_url();

The code above creates a blogger to WordPress 301 redirect which is what you need to ensure best SEO.

Once you have pasted this code, that’s all you need to do for setting up redirection.

Now anyone visiting a post on your old Blogger blog will be redirected to the same post on your new WordPress site.

Step 5. Redirect Feeds

Your RSS subscribers on the old Blogger site will not be able to notice the switch. That’s why you will need to redirect your Blogger feed to your new WordPress site’s feed.

You can do this by logging in to your Blogger account and then visit Settings » Other page under your blog dashboard.

Under the Site Feed section, click on Add link next to Post Feed Redirect URL. Here you can enter your new WordPress site’s feed address.

Usually it is (don’t forget to replace your-awesome-site with your own domain name).

Redirect blogger feed readers to your WordPress feed

Step 5. Import Images From Blogger to WordPress Media Library

When you are transferring blogger to WordPress, the WordPress importer will download images from your blogger posts into the WordPress media library. However, it can fail to download some images. This doesn’t happen often, but it can happen.

But there’s nothing to worry about because you can find and import these images into WordPress. Follow the instructions in our how to import external images in WordPress tutorial.

This will import all images from your blogger into your WordPress Media Library. Once the images are in your WordPress media library, you can easily create image galleries and more.

We hope this tutorial helped you switch from Blogger to WordPress without losing Google rankings. We would like to welcome you to the WordPress community. To get started with WordPress, please take a look at our beginner’s guide section and our WordPress beginner videos.

If you have a friend still using Blogger, then you can show them our comparison on WordPress vs Blogger and convince them to switch over.

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

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. Karan says:

    Hey! Amazing blogpost! Very helpful..I have exported my blog to wordpress..However, the permalink structure was of no use, as the blogspot blog used ‘dot html’ at the end of every slug..Hence, the old indexed links from google, take the visitor to a ‘Page Not Found’ message on my new wordpress blog..I followed all the instructions correctly..any help?

    • WPBeginner Support says:

      These instructions would work, the code we shared above can detect your blogger post and the WordPress code can match it to the same post in WordPress. The blogspot’s .html URLs are not an issue, and neither is country specific blogspot URLs.

  2. Mario says:

    Thank you so much! It worked!

  3. Budak kampung says:


    Is blog transfer do able without cost? Thinking to do it with Bluehost but they charge USD99 for the process.

  4. Jude says:

    I tried it for it didn’t work.

    • WPBeginner Support says:

      Can you please provide more details? It seems you have infiniteWP installed on that domain.

  5. Connor Rae says:

    Wow, this is really helpful! I have been thinking about making the switch from blogger to WordPress for a while, but never thought it would be this straightforward. My blogger dashboard just picked up a habit that makes the page freeze, then give me a popup telling me to kill the page. Because of this, I can still make posts, but when I log in, I only get 2 clicks before the page dies, so editing previous posts is no longer possible. This has been going on for weeks, and bloggers support team had couldn’t explain what is going on, so I’m moving on to WordPress. Has anyone else had this problem with blogger where the page is slower than normal, then freezes and dies after 2 clicks/about 30 seconds, whichever happens first? If it’s a bug I can fix, or something I can wait out for an update to fix, I wouldn’t mind trying to just fix the blog that I have.

  6. RAJENDER says:

    All my doubts about wp to blogger migration is cleared in a very good manner by reading this article. Thanks a lot # wpbeginners Team

  7. Ana says:

    Hi, thanks for this tutorial. I have a doubt, I have a Blogger blog and want to move to WP, but not to a blog but to a website with a blog, so my posts permalinks would be, due to the “blog” slug it can’t be the same as the Blogger link, what can I do?

  8. EIMIE says:

    I try switch my blog to new wordpress but not redirect.. how it?

  9. fabian says:

    What about moving from joomla to wp ?

  10. Mary Grace says:

    Will it be okay if I just delete my Old blogspot blog after exporting since it’s just 1 month old? What I want to export is only my 40 articles.

    • WPBeginner Support says:

      It your blogspot blog was indexed by search engines then it is recommended that you use redirection. This helps search engines understand that your site has moved.

  11. Connor Rickett says:

    This is wonderful! I had no idea this was actually possible, let alone relatively straightforward.

  12. Derdus says:

    Hey thanks for the blog. I followed all the steps. However, all redirects goes to home of the new blog and not the correct post. What did I do wrong?

  13. Srinivas says:

    Hi , Thanks for indepth tutorial …
    For some blogger posts , i have used custom permalinks ,will that give error when i migrate from blogger to wordpress ?

  14. emeka obi says:

    Under the Page Attributes section i didnt see template or WPBeginner Blogger when creating new page that was after i have uploaded the text files to my wp theme using filezilla can some tell me where to find it?

  15. Rickard says:

    Great guide for directing traffic from blogger to new site. The redirect works perfectly!

    BUT… This does not return a 301 redirect status code!!

    Tried several tools including:

    It returns status code 200.

    So… “without Losing Google Rankings”? – are you sure about that??

  16. Dale Reardon says:

    I have read some warnings on other sites that Google has stopped interacting with the WP importer and you can’t currently import your Blogger blogs.

    Is this true do you know? I see this article hasn’t been updated since last year hence why asking.


    • Angie says:

      I ran into this issue, but instead used a plug in called Blogger Importer Extended and it worked even better with more features.

  17. Shashwat Tiwari says:

    “You’re being redirected to this article because the application you’re using uses OAuth 1.0, and we only support the newer OAuth 2.0 at this time.” says google OAuth page which means blogger importer is not working anymore.

  18. Nevine says:

    Will this affect your adsense a/c and information in it?

    • Susan Smith says:

      My AdSense increased significantly after migrating to self hosted WordPress. I also set it to redirect all of the international domains from blogger as well.

  19. Nenad says:

    I have custom domain on blogger… do I have to rename and buy new domain and after that migrate whole blog or stay at same domain? There are about 7.000 posts published at blogger blog.

  20. Karen says:


    So I followed these instructions EXACTLY and everything is redirecting beautifully.

    EXCEPT that ALL of the links to my blog from Twitter, Facebook, Bloglovin, etc, ALL redirect to the same post from last September. I can’t figure out what the heck is going on, which makes it really hard to fix it. Any suggestions???

  21. huislaw says:

    Thanks for the tutorial.
    My pages are redirected correctly.
    But when I try to use the function “Change of Address” in Google Webmaster Tools, it says:

    “We couldn’t find any 301-redirect directives for your site. For more details check the Fetch as Google tool.”

    Is there a way to make the Change of Address in Webmaster Tools?
    Or is it important to inform Google about the change of address?


  22. Chris says:

    I’m unable to import from blogger to WP. I didn’t give me a message; it didn’t do anything after I selected the IMPORT button. The posts don’t appear in the WP site. Help!

    • Nathan Nelson says:

      I had the same problem, this morning. Try using the plugin “Blogger Importer Extended”. That worked for me. :)

  23. amy says:

    hi, has anyone figured out the permalink situation? My transfer is not working and I think it may have something to do with that… my theme uses a custom permalink.

  24. Katie says:

    I’ve completed the instructions above and everything seemed to be right. But, when clicking on an old link on say twitter the link redirects and I get this error “Parse error: syntax error, unexpected T_NS_SEPARATOR in /home/sangla1/ on line 15”

    Not sure how to fix this. Any help would be great!

    • Karen says:

      Did you ever find a solution for this? I’m having a similar problem, except that instead of getting an error, my links redirect to an old post.

    • Arun says:


      I was getting an error code similar to what you’ve posted and after umpteen trial and error, I found, it was caused by the wpb-blogger.php code. I copied it off the webpage and those line numbers in the code were intact.

      When I copied the code by clicking on “View Source” on the top right corner of the code snippet, It started working.

  25. Keshav Saini says:


    I am using custom permalinks structure /%post_id%/%postname% in my wordpress blog so can’t use the permalink structure as specified in the post above. Doing the redirect causes 403 error for my blog. Do I have to change anything in the code to make it work with my current permalink structure?

  26. Xander Lim says:

    This is what I need! It seems that blogspot has already given me full knowledge about blogging, now this will be the time to migrate it on wordpress platform. Thanks a lot for this guide, this is very helpful for me.

  27. Peter Bates says:

    Where is the Post Feed Redirect url located on a hosted site? I see no feed subdirectory in my site.

  28. Raya Ezelle says:

    Yay! Thanks so much. All the old URL’s redirect perfectly :)

  29. cesar says:

    Hi. doesn’t wordpress has a size limit for importing blogger’s xml file?

  30. Jason says:

    I just wanted to thank you for this guide, it has been a great help when working with a client. Even though I had major problems with the Blogger Importer -plugin, rest of the process went smoothly when following this guide. Thanks again.

  31. natachy says:

    i have completed redirecting my blogger to wordpress but the problem is redirecting my wordpress site so users are redirected to proper posts. I’m using a mac, i saved the code into a textile (without making any changes). when I try to upload it into theme directory, it keeps unpacking (not installing). please help

  32. gaurav dutt says:

    I had a blogspot blog and a wordpress Veg Momos and the situation is that i don’t want to import my whole blog to the wordpress, but only few posts without re writing them, i would rather say i want migrate a particular category of posts. What should i do for that ?

  33. sugar says:

    I am making a migration of the BBlogger blog to an existing self hosted WordPress domain. Thus Permalinks are already set to be At Step #2 I should be adjusting my permalinks like you say, but my permalinks are already set. How do I solve this problem without killing the permalinks in the existing WordPress blog? Thanks for any help.

  34. Mike Oplinger says:

    Ok I’m on step #3 and I’m to the part where I select WPbeginner on my blogger page but I don’t have anywhere to select this, all I have is an option to select the order the page shows up in which is currently 0.

    • Shell says:

      I had the same issue. The problem was I had put my wpb-blogger.php file into the /public_html/wp-content/themes/ folder instead of in the folder of the specific theme I was currently using. Perhaps the tutorial could state this a little more clearly?

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.