Should I use underscores or hyphens in URLs?

On February 26, 2009, Google software engineer Matt Cutts collected questions on Google Moderator and answered many of them on video. tripstar from Ontario, Canada asked: Underscores vs hyphens in URLS, does it make a difference? my-page vs. my_page?

Hi Matt. More and more websites started using comma (,) as a separator in title tag (less pipes or dashes). Is comma really a separator OR if it’s better for the visitors it’s better for SEO ? Thanks ! Adrian, Europe Have a question? Ask it in our Webmaster Help Forum: www.google.com 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: twitter.com More videos: www.youtube.com Webmaster Central Blog: googlewebmastercentral.blogspot.com Webmaster Central: www.google.com

Wait! Here's A HOT OFFER...


Rake In Big Bucks Without Traffic Generation - Click Here!

24 Responses to “Should I use underscores or hyphens in URLs?”

  1. shagster1970 says:

    @AngelsRamin Dont worry mate – I run more successful websites that rank than I care to count. (More than 500.) I was merely saying that you dont need to be that worried about the minute detail to have a successful income producing website.

  2. AngelsRamin says:

    @shagster1970 u r wrong!..update ur self about SEO!

  3. earthday47 says:

    The most compelling reason to not have underscores as separators is to search for programming functions. Like mysql_real_escape_string(). And does any one else copy error messages and paste them verbatim into Google?

    Let’s just use % to separate stuff.

  4. TarheelJ says:

    I cannot register a domain with underscore in the URL at godaddy or register.com, so is that something they recently changed? Because of that, I’ll use hyphens.

  5. shagster1970 says:

    Wow – if your worried about hyphens or underscores your business/website is in trouble.!

  6. superdan0468 says:

    I love how Matt moves his hands when he talks. “underscores”, “links”, “url”, etc all have the same hand gesture.

    It’s also funny that he has to hide a lot of things. It seems that he has a lot to hide and be careful of saying out loud when he makes these videos, as opposed to his blog where he just writes what he needs to.

    Thanks for the info on dashes. My clients will be happy with all the information I’m learning from your videos.

  7. JapaneseChirashi says:

    yeah, i’ve been using a mix,but defiantly the underscore should be a separator, it goes back to the days of writing code, programmers have always used underscores, my programming teacher nearly shot me for using a dash!

  8. shakaama says:

    I find it much easier to see Underscore, than a dash. And more importantly, I use that as a convention throughout my website, so noone ever gets confused as to what the url is. So they can predict what a url is, or even if they forget, they know it’s going to be underscore and not dash.

    Dash just looks juvenile to me.

  9. Gazinbali says:

    ok. My comment as a NON seo Guru.. i just went to register a site.. the name . lets say.. mynewdog dotcom
    when i enter the full text.. the site is taken, when i enter my-new-dog dotcom
    that name is available.. when I enter my_new_dogdotcom.. it resolves the same as the plain text and the domain is taken.. I dont know how this fits into the seo

  10. Flyborg says:

    Is this still true? I use underscores because it’s easier to read, and it’s closer to spaces. Hyphens look strange to me. A lot of other people use underscores as well, so I’m confused as to why Google wouldn’t “count” them as seperators.

  11. IcyCombina720 says:

    Very useful info. I’ve been using hyphens on my site. It’s ranking great, but not just cuz of that :P

  12. gooadam says:

    I find this odd to state hyphens as a preferred separator. Google had no problems with underscores at the outset, but hyphens were originally used predominantly by “spammy” bot-created sites. Just for logic sake, wouldn’t you put more weight on the underscore knowing this info, if it were up to you?

  13. brodseba says:

    I know a lots of site use underscore in their URL. It make sense to me than Google treat underscore has a separator. Please, pretty please.

  14. Mik5469 says:

    what the fuck are underscores? please hit me up give examples!!

  15. larssonk22 says:

    I don’t think Google needs to worry about their own sites since they own the search engine. + I’m unsure how much of the internal link structure has changed after the Google buy out.

  16. somfplease says:

    underscores make things easier to read in a url especially if posted as a link.

    mouseover “QuickList” or “Account” at the top on this page (if logged in). Doesn’t google own youtube?

  17. dushyant78 says:

    I totally agree. Sometimes its a technical challenge, depending on what platform your site is coded in. When you have a large number of high ranking pages, that all follow different URL patterns but use underscores instead of hyphens, there should be no reason to change your site to use hyphens. I have personally seen cases where doing permanent redirects as a method of passing rankings along from an old page to new page are highly ineffective with regards to preserving SERP rankings.

  18. ontheflipside200 says:

    Thanks for the clarification.

  19. GoogleWebmasterHelp says:

    @ontheflipside200: Matt clarified what he said at WordCamp on his blog on August 10, 2007. Try searching for [Whitehat SEO tips for bloggers] and that should bring it up.

    - Wysz, Google Webmaster Central

  20. ontheflipside200 says:

    There was an article on cnet on Matt Cutts from google at WordCamp 2007′ proclaiming that google was using underscores as separators.
    just google cnet underscore word separators.

    Why the preference for dashes when it seems there is no difference?

  21. bigal21110 says:

    omg the background!!!! Btw I think Google should start pushing for phrases in title tags not words. That way we won’t need a separator.

  22. 2buildbacklinks says:

    I hate those pipes, whenever you see one you know the webmaster is optimizing for the search engines and I’m sure Google has caught on to this too.

  23. mhixson1 says:

    @ShawnKHall He’s just saying Google won’t treat it as a separator, not that it’s inherently bad. If I had to guess why, I’d say the reason is regular expression engines lump in underscores with letters and digits, and that Google makes use of regex engines in its search. A “w” in a regular expression, the “word character”, matches letters, digits, and underscores, and I assume this makes it harder (computationally) to treat underscores as a separator. Again, this is just a guess. :)

  24. LordManley says:

    Dear Matt,

    I appreciate that it is unusual to describe oneself as originating from a continent, rather than a specific country but, given that you describe yourself as American, is it not rather a case of the pot calling the kettle black to rib the poor fellow?

    Yours Sincerely,

    Manley

    P.S. I never kissed the editor of the radio times.

Leave a Reply

CommentLuv badge


Powered by Yahoo! Answers