Dashes, Underscores, URLs, SEO and Humans

If you browse around the web some looking for search engine optimization (SEO) tips and techniques you are bound to run into the a dash is better than an underscore in a URL “rule”. This has always bugged me since underscores give better visual separation of the words, which I tend to equate to easier reading for us humans.

Way back in 2005, Matt Cutts from Google explained that Google treats dashes and underscores differently, and why. That is great and all, but 2005 is three years ago — an age in web time.

In August 2007, pretty much every big search engine confirmed that they treat dashes and underscores the same. Well, everyone except Google, which hinted that they were on their way. I was unable to find any updates on the subject since then.

Now, we’ve been running underscores in our URLs since sometime in mid 2005 and we’ve always had decent results with our pages being indexed appropriately. To clarify this issue a little, I thought I would do some experimentation.

Taking my Firefox HTML Validator on Ubuntu Gutsy post from our blog as a test page, I fed the terms html, validator and gutsy into each of the following search engines:

All of the search engines that highlight terms in URLs (all but AOL and AltaVista) seems to have no problem grabbing the words in the URL. Notice how my post is listed above a page that uses dashes instead of underscores. I guess it is possible the search engines don’t care about word separators when highlighting keywords, but it seems that dashes and underscores are functionally equivalent when matching pages.

So, should you go through and revamp all of your URLs from dashes to underscores? Probably not, but it’s worth thinking about when starting a new site. Spending time polishing the little aspects of your site can make the difference between a good and a great site.

Dashes vs. Underscores

I find that the underscore gives better visual separation since it lives beneath the baseline whereas dashes seem to make the words run together. Another interesting point it that a dash has a grammatical meaning, whereas an underscore is an invention stemming from underlining with typewriters.
dashes-underscores-urls-seo-and-humans
dashes_underscores_urls_seo_and_humans

Do you prefer dashes or underscores, and why?

If you enjoyed this post, you might want to check out one of my semi-related posts, HTML Title Tags Done Right.

Comments

Wednesday, Mar 19, 2008 / 1:46pm Dave Tufts said…

I think underscores are easier to read in URLs. Underscores seem to separate words more.

If I'm looked in to Google, the iMarc result (with underscores) comes up below an Ubuntu page (with dashes): packages.ubuntu.com/gutsy/web/wdg-html-validator

But if I log out, it flips the results. iMarc #1, Ubuntu #2.

Friday, Mar 21, 2008 / 1:18pm Peter said…

I prefer dashes. Reading a URL with underscores causes my eyes to scan up and down as I'm scanning across the text. A URL with dashes allows me to scan straight across. Not a crazy amount of up and down, just enough for me to notice and for it to be annoying. Maybe this just means I'm inhuman. :-)

Friday, Apr 18, 2008 / 4:48pm Angelo said…

Dashes.

Ask a relative to type a dash. Then ask them to type an underscore. Usability +1

Perhaps the real questions is, should slugs be in URLs at all?

An interesting read: http://www.useit.com/alertbox/981129.html

That's from '98. Good ideas never go out of style.

Comments have been turned off on this blog.
Read something more recent.

Statements and opinions expressed in this blog and any comments made are the private opinions of the respective poster, and, as such, iMarc LLC is neither responsible nor liable for such content.

Meet The Author

Will Bond

Senior Tech Architect

Search

Recent Blog Posts

Recent Comments

We heart Visitors

  • iMarc
  • 14 Inn Street
  • Newburyport, MA 01950
  • Phone: (978) 462-8848
  • Fax: (978) 462-8807
  • Directions

Contact Us

Whether you have a huge project specification or just want to talk about updating your site, we’re here to help. Fill out the form, and we’ll get right back to you.

Contact Us
  • All Fields Required

Close