Underscores vs. dashes in URLs



Matt Cutts explains the difference between how Google interprets underscores and dashes in a URL.

Have a question? Ask it in our Webmaster Help Forum: http://www.google.com/support/forum/p/Webmasters?hl=en

Want your question to be answered on a video like this? Follow us on Twitter and look for an announcement when we take new questions: http://twitter.com/googlewmc

More videos: http://www.youtube.com/GoogleWebmasterHelp
Webmaster Central Blog: http://googlewebmastercentral.blogspot.com/
Webmaster Central: http://www.google.com/webmasters

source

44 thoughts on “Underscores vs. dashes in URLs”

  1. Actually I am very curious, what does "underscores and dashes" mean in the YouTube video

    sometimes I get links without underscores or dashes on the videos that I uploaded … sometimes I have 1 underscore … 2 underscores, or a combination of them

  2. It's February of 2019 as I write this comment. Is this actually still true? Any updates on this? (And my two cents: this is humans bending to technology, not technology serving humans. Not good nor reasonable)

  3. When Matts says it's a word separator does he mean that the hyphens do NOT or DO string a search phrase together? I"m hoping the answer is DO. Example: Idaho-Potatoes If someone searches Idaho Potatoes will my hyphenated example be good for search ranking? Does Google rank Idaho separate and Potatoes separate as an unrelated search phrase if /Idaho-Potatoes used in the url?

  4. I'm sorry but this needs to be fixed. Example: If I have two files in Google Drive: keyword-test and keyword_test. If I search for term "keyword" then I only get the keyword-test file back. I can never find the keyword_test file. For Google, a search company, this is pretty bad.

  5. THIS ALSO EFFECTS SEARCHING IN GOOGLE APPS DRIVE! FILES WITH UNDERSCORE DOES NOT APPEAR IN THE SEARCH RESULT. Funny though they appear in Autocomplete but not later in the searchs result list. This is very disturbing and I cannot find any information that it will com a change and now we are writing 26 August 2015!

  6. Hello matt ,my site's URL was my_site_example_example/65656 ,like that and now my developer fix it and now it is site-example-example/65656 ……. so is there any problem to index by Google or any crawl problem ??

  7. thank you of the film;
    had build about 40 websites with _ underscores_ years ago because that was the standard (learned method) and found out now that – dashes – separates the words. So I went back to change the sites with – dashes – and found my self in front of a lot of work; 1000s and 1000s of pages.
    Leave it alone and spend your time on new pages and/or sites and not to risk the contamination of those sites that are already built; use dashes for your future site work.
    PS If you have html pages that are important to the site; then spend the time but beware you my lose 100s of links.
         Back up the site to a separate hard drive before you attempt to do this.

  8. Spook, Matt is trying to explain the different uses of hyphens and underscores, they both have specific uses. Use hyphen if you want to increase the number of keyword derivatives that the page can appear, and underscores to set specific keyword combinations.
    Besides that, Google doesn't want you thinking about increasing rankings, it wants you to increase the value and relevance of information on your site. 

  9. Thanks Matt! It's a very valuable piece of information for my company as I am working very hard at the moment on making our site visible to the right target audience. I do have a question though an answer to which I cannot seem to find anywhere.

    When forming URLs for pages, does it make any difference if I use/do not use prepositions and other form words? For example, what would you say looking at:
    mydomain.com/teach-your-child-to-swim-in-a-pool vs. mydomain.com/teach-child-swim-pool

  10. Thanks Matt for the valuable instruction!!! Although dashes in the URls play a crucial role in the SEO prospect, it’s not recommended for the sites already have indexed on search engine. However, use dashes instead of underscores for new sites for better ranking impact.

  11. Keep in mind that it is the search engines that should adapt to find good websites and not otherwise. Do thing right and they should find you.

    Of course in practice, we cannot wait for Google to fix their low-priority tasks and we want to take advantage of every tiny bit of SEO.

  12. Paradoxically with the historic reason, lot of developers are used to use underscore to separate keyword, so it is/was more likely that they use the same pattern to name their resource/filename.

    However, with all the SEO talk, hyphen gained the popularity contest. Without that, we would see more underscore in URLs. Only potential valid reason for hyphen would be that it is easier to type/read for non-techy (?)

  13. I was looking for the answer to which one was better UNDERSCORES vs DASHES and this video seemed to sum it up pretty quick. Matt indicates dashes are better but if you already have lots of URLS with underscores, don't bother to go back and change them. Thanks for the advice.

  14. Dashes instead of underscores is a no-brainer. The real question is, dashes, or no dashes? In other words, is redwidgets better than red-widgets?

    And does the correct answer (if there is one) depend on whether the dash or no dash term is in the domain itself, versus a folder or filename?

  15. Hi,

    What do you think about using underscores for words that come together and hyphens for separate words?

    Examples:

    buy-low_cost-flight-tickets
    all_inclusive-holidays

Leave a Comment

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

Scroll to Top