Does Google crawl URLs with Hashtags?

Kaushal Thakkar is the Founder and MD of Infidigit. He has developed award-winning search strategies for various organizations, ranging from large enterprise and e-commerce websites to small and medium-sized businesses. Before Infidigit, he was leading digital marketing, product, and eCommerce initiatives at Myntra (a Walmart Company), Times Group, ICICI Group, Tata Group. Being an engineer and product manager in his earlier days, he loves to hack growth for websites via technical SEO strategies. He is a speaker at various forums and a Pro bono guest lecturer on Organic Search, Digital Marketing, Analytics & eCommerce. In X @
[additional_author]

Does Google crawl URLs with Hashtags?

[ez-toc]

Witness an Increase in your ROI

Unlock higher rankings, quality traffic, and amplified conversions through tailored award-winning SEO strategies.

    John Mueller answers how URLs with hashtags are treated by Google

    A Twitter user recently asked John Mueller, Google’s Search Advocate, whether Google can read URLs with # (hashtags). He provided an example of hashtags used to point to different parts of the page. 

    Here’s the question:

    “Hey @JohnMu does google sees a # in URL, which is mostly used to provide navigation for different part of page in “Table of Contents”, as a different URL & index it separately.

    For Eg:

    http://abc.com/this-blog

    http://abc.com/this-blog#heading3”

    John Mueller reaffirmed that the Googlebot will ignore everything after a # in a page URL.

    https://twitter.com/JohnMu/status/1492093599219134464?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1492093599219134464%7Ctwgr%5E%7Ctwcon%5Es1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJohnMu2Fstatus2F1492093599219134464widget%3DTweet

    Are URLs with # (hashes) bad for SEO?

    Page URLs with hashtags can be troublesome if not implemented properly. If you are using # to point to a section on the same page, this implementation is completely fine and won’t hurt your SEO.

    Google’s John Mueller answered a similar question previously:

    https://twitter.com/JohnMu/status/1052621056488431616?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1052621056488431616%7Ctwgr%5E%7Ctwcon%5Es1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJohnMu2Fstatus2F1052621056488431616widget%3DTweet

    However, if you are using dynamic URLs with # for multiple pages, then this can affect your SEO badly.

    Let’s understand this with the help of examples:

    Scenario #1:

    Let’s say you have two pages whose URLs are generated dynamically. 

    • Page 1 URL – “example.com/clothes/#tshirts” and 
    • Page 2 URL – “example.com/clothes#jeans. 

    As seen in the above tweet, John Mueller has explicitly stated that everything after # is ignored by Google. As a result, for Google, the URL of both the pages would be “example.com/clothes”. This means that Google will not consider these as two separate pages, but as a single page whose URL is “example.com/clothes”. It is not recommended to use # in such situations. 

    A better approach would be to have two clean URLs – “example.com/clothes/tshirts” and “example.com/clothes/jeans”.

    Scenario #2:

    Let’s say you have different variants/colors of the same product. 

    The product URL is “example.com/nike-shoes”. 

    Now, if your CMS is configured to use # for the different variants. The URLs of the pages will be:

    • “example.com/nike-shoes#red”, 
    • “example.com/nike-shoes#blue”, etc. 

    Again, Google will ignore everything after the hashtag. This means that for Google, the URL of all these 3 pages (“example.com/nike-shoes”, “example.com/nike-shoes#red” and “example.com/nike-shoes#blue”) is “example.com.nike-shoes.”

    This implementation will confuse the Googlebot and it may end up picking one version of the page as the main page (Google selected canonical) and rank it in Google SERP. Again, a better SEO implementation would be to use static URLs without # for different variations of the product.

    Key Takeaway

    Hash symbols in page URLs are acceptable if you are using them on the same page to point the users to different sections. However, it is not recommended to use hashtags (#) for different unique pages. You may also run into analytics and tracking issues when using hashes. You may need to configure the Google Analytics code to track fragment clicks in order for it to work correctly. To save the hassle, we would suggest using clean URLs without # for your page URLs.

    Related News articles:

    Google launches URL Inspection API

    Here’s how to handle duplicate content if you have different websites for different locations

    Can you control the image snippets shown for a Google Search Result?

    Ahrefs launches new SEO plugin for WordPress

    Google introduces a new tag to help you get your content indexed

    Can you control the image snippets shown for a Google Search Result?

    December 2021 Product Reviews Update announced by Google

    November 2021 Spam Update announced by Google

    November 2021 Broad Core Update announced by Google

    Popular Searches

    SEO Company | SEO Agency | SEO Consultants | SEO Services | Ecommerce SEO Services | SEO Audit Services | Google Penalty Recovery Services | Local SEO Services | PPC Services | App Store Optimization Services | Conversion Rate Optimization Services | Link Building Services | Content Marketing Services | Enterprise SEO Services | Amazon Advertising Agency | Professional SEO ServicesList of Search Engines  | What is SEO  |  Types of Digital Marketing  |  What is Google Tag Manager  | On-page SEO Services  |  Off Page SEO Activities List

    Leave a Comment

    Your email address will not be published. Required fields are marked *

    Think Your SEO Is On Track?

    Find Out with Infigrowth’s Free 7-day Trial.

    Secrets to be the first on search, right in your inbox.

    Subscribe to our newsletter and get carefully curated SEO news, articles, resources and inspiration on-the-go.

    [mc4wp_form id="7579"]

    Share this article

    google-on-hashtags-in-urls

    Does Google crawl URLs with Hashtags?