Automatically Unfollow Twitter Users who don’t Follow You Back

Have you followed users on Twitter and weren’t bothered if they followed you back or not?

That is until one day you look at your stats and find you have been following lots of users for whatever reason but very few users followed you back and you realise you now have a negative follow ratio and it can take a lot of time fix by removing non followers.

RealSocialSEO Software Tip-off

Unfollow Twitter

SocialBee is one of the widely popular social media management tools. This tool is mostly used by professionals to manage their social media accounts and Twitter accounts.

Please note that Twitter does not permit any automated or bulk following or unfollowing behavior!

Do read Twitters own ‘Following rules and best practices

The following method allows you to automatically & indiscriminately unfollow twitter followers who haven’t followed you back that are either inactive, can’t be bothered following you or likely to be fake.

REMEMBER THIS METHOD IS INDISCRIMINATE and will remove all non followers, plus you could get a slap on the wrist from Twitter.

It does not cost you nor do you have to sign-up to a premium service or tool.

The instructions to open JS Console is for Google Chrome users

The method is to use a little java script & the JS Console in DevTools. Don’t worry its not too difficult.

If you are unfamiliar with JS Console see here for JS Console tutorial


*Update 06/08/2019

The new Twitter layout is affects how the code works, so this is a new code, with the scroll incorporated into it.

Follow the steps below:

  1. Open your twitter profile in your browser and go to followers:
  2. Then on your keyboard click ‘CTRL+SHIFT+J’ which open the JS Console in DevTools
  3. Paste the following code into the JS Console

Please do add a comment at the end of the page if it works or not for you


You will then need to scroll down to the very last profile in your followers list.

This can take some time but you can use the auto-scroll java script below to automatically do it for you

Auto-Scroll Code

To auto-scroll to the bottom of the page, copy & paste the code below into the JS Console and hit enter.

Wait till it reaches the bottom of the page before continuing.

setInterval(function() { window.scrollTo(0, document.body.scrollHeight); }, 2000);

Unfollow ALL Non Followers Code

Copy & paste the code below and hit enter to unfollow everyone who is not following you.

Update 20/01/2018 – This code works 

var status = $(this).find('.FollowStatus').text();
var unfollowButton = $(this).find('.user-actions-follow-button');

The code below, no longer works

$(‘.ProfileCard-content’).each(function(){var status = $(this).find(‘.FollowStatus’).text();var unfollowButton = $(this).find(‘.user-actions-follow-button’);if(status != ‘follows you’){;}});

It may seem the code is not doing anything .. but leave it run for some time and then refresh your twitter account to see the number of user you are following has decreased.

Need API or developer access to Twitter?

I believe in synergy skills for creating quicker, more efficient experiences in technology and workflows I am a Photo Restoration artist & SEO consultant specialising in small business and start-ups.

    • ahmed naem
    • January 19, 2020

    wow , thanks
    it is working 100% 🙂

  1. No work for me

  2. 100% worked

    • fia
    • August 6, 2019

    twitter won’t let change layout even if you go to directory! how do we see our followers in the old layout then? please help

    • Hi, Twitter have now disabled all current workarounds. But I justed added a new script for the new layout.

    • felix
    • September 24, 2018

    how can i following all following of an account?

  3. Thank you very much! This solution is AWESOME. I was not even aware of JS Tools in Chrome… and I’m a software dev. From now on, I’m solving all my problems in the JS Tools console! Thanks again, best post I’ve seen in a LONG time.

  4. Wow! Thanks so much for this. It’s a shame Twitter doesn’t provide a service to do this easily as it would be really useful.

    • Thanks Paul, I have a similar code for Instagram…I should have it posted in a few days

    • Mike
    • August 20, 2018

    Hello Neil, I have been using your code and it works amazingly well. Thank you. It seems I cannot access it anymore. I have liked your Facebook, but still locked. Suggestions?

    • Michael
    • July 5, 2018

    I receive a “Uncaught SyntaxError: Invalid or unexpected token” each time I have tried. Is the new code no longer working?

    • Hi Michael, still works, there might have been a little jibberish in the code due to an issue with a plugin I removed but it the code is clean now if you try copy and paste again

Comments are closed.