{"id":9360,"date":"2026-12-01T00:00:40","date_gmt":"2026-11-30T18:30:40","guid":{"rendered":"https:\/\/www.adroitte.com\/blog\/?p=9360"},"modified":"2026-11-16T15:24:54","modified_gmt":"2026-11-16T09:54:54","slug":"hyphens-vs-underscores","status":"publish","type":"post","link":"https:\/\/www.adroitte.com\/blog\/seo\/hyphens-vs-underscores\/","title":{"rendered":"Hyphens or Underscores in URLs: Which Is Better for SEO?"},"content":{"rendered":"<p>Every page on your website has an address, called a URL. The last part of it, such as \/blue-dress, is what people see in the address bar and in search results. A small choice there, using a hyphen (-) or an underscore (_) between words, The hyphens vs underscores question causes a lot of arguments. Google has recently clarified its advice on this, so here is a straight answer. If you are building or fixing a site and want the basics done right, our <a href=\"https:\/\/www.adroitte.in\/web-development-services\/\" target=\"_blank\" rel=\"noopener\">web development team<\/a> can help.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Hyphens_vs_Underscores_The_Short_Answer\"><\/span>Hyphens vs Underscores: The Short Answer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Use hyphens.<\/strong> Google\u2019s <a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/url-structure\" target=\"_blank\" rel=\"noopener\">URL structure guide<\/a> says: \u201cWe recommend using hyphens (-) instead of underscores (_) to separate words in your URLs, as it helps users and search engines better identify concepts in the URL.\u201d<\/p>\n<p>That is the whole advice. The rest of this post explains why, and what to do about pages you already have.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Why_Does_Google_Prefer_Hyphens\"><\/span>Why Does Google Prefer Hyphens?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Think about how you read blue-dress and blue_dress.<\/p>\n<p>A hyphen looks like a gap between two words. An underscore looks like it glues them together.<\/p>\n<p>Google gives the same reason. Its guide says underscores are \u201ccommonly used for denoting concepts that should be kept together\u201d, for example by programming languages that name things like format_date. Hyphens \u201cclearly signal a word boundary\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9361\" src=\"https:\/\/www.adroitte.com\/blog\/wp-content\/uploads\/2026\/11\/why-google-prefer-hypen.jpg\" alt=\"\" width=\"1280\" height=\"679\" srcset=\"https:\/\/www.adroitte.com\/blog\/wp-content\/uploads\/2026\/11\/why-google-prefer-hypen.jpg 1280w, https:\/\/www.adroitte.com\/blog\/wp-content\/uploads\/2026\/11\/why-google-prefer-hypen-300x159.jpg 300w, https:\/\/www.adroitte.com\/blog\/wp-content\/uploads\/2026\/11\/why-google-prefer-hypen-1024x543.jpg 1024w, https:\/\/www.adroitte.com\/blog\/wp-content\/uploads\/2026\/11\/why-google-prefer-hypen-768x407.jpg 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Is_This_a_Ranking_Factor\"><\/span>Is This a Ranking Factor?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Be careful here. Google calls this a recommendation, and we found no line on its page saying that underscores are penalised or that hyphens push a page up the rankings.<\/p>\n<p>So do not expect a jump in traffic from swapping a character. Think of it as a tidy habit: it helps people and search engines understand what the page is about, and it costs nothing on a new page.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_About_Joining_Words_Together\"><\/span>What About Joining Words Together?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Google lists three styles side by side on its page:<\/p>\n<table>\n<thead>\n<tr>\n<td>Style<\/td>\n<td>Example<\/td>\n<td>Google\u2019s view<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Hyphens<\/td>\n<td>\/summer-clothing<\/td>\n<td>Recommended<\/td>\n<\/tr>\n<tr>\n<td>Underscores<\/td>\n<td>\/summer_clothing<\/td>\n<td>Not recommended<\/td>\n<\/tr>\n<tr>\n<td>Words joined together<\/td>\n<td>\/summerclothing<\/td>\n<td>Not recommended<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Joined words are also harder for people to read at a glance. Hyphens show exactly where each word starts and ends.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Should_You_Change_Your_Old_URLs\"><\/span>Should You Change Your Old URLs?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Not automatically. Here is how we would think about it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9362\" src=\"https:\/\/www.adroitte.com\/blog\/wp-content\/uploads\/2026\/11\/should-you-change-old-url.jpg\" alt=\"\" width=\"1280\" height=\"704\" srcset=\"https:\/\/www.adroitte.com\/blog\/wp-content\/uploads\/2026\/11\/should-you-change-old-url.jpg 1280w, https:\/\/www.adroitte.com\/blog\/wp-content\/uploads\/2026\/11\/should-you-change-old-url-300x165.jpg 300w, https:\/\/www.adroitte.com\/blog\/wp-content\/uploads\/2026\/11\/should-you-change-old-url-1024x563.jpg 1024w, https:\/\/www.adroitte.com\/blog\/wp-content\/uploads\/2026\/11\/should-you-change-old-url-768x422.jpg 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<p><em>A simple way to decide.<\/em><\/p>\n<ul>\n<li><strong>New pages:<\/strong> use hyphens from day one.<\/li>\n<li><strong>Old pages with underscores that already work and get visitors:<\/strong> think carefully before touching them. Google does not say they are broken, and every change carries some risk. This is our suggestion, not a Google rule.<\/li>\n<li><strong>If you do change an old URL:<\/strong> tell Google the page has moved. Google\u2019s <a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/301-redirects\" target=\"_blank\" rel=\"noopener\">redirect guide<\/a> says: \u201cThe 301 and 308 status codes mean that a page has permanently moved to a new location.\u201d It also recommends \u201ca permanent server-side redirect whenever possible.\u201d<\/li>\n<\/ul>\n<p>A <strong>redirect<\/strong> is like a forwarding address. Anyone who visits the old URL is sent to the new one automatically.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Four_More_URL_Habits_From_Google\"><\/span>Four More URL Habits From Google<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The same Google guide has other simple advice worth following:<\/p>\n<ol>\n<li><strong>Use real words, not codes.<\/strong> Google prefers readable words over long ID numbers. For example, a page for a black T-shirt is better as \/product\/black-t-shirt-with-a-white-collar than \/product\/3243, as Google\u2019s <a href=\"https:\/\/developers.google.com\/search\/docs\/specialty\/ecommerce\/designing-a-url-structure-for-ecommerce-sites\" target=\"_blank\" rel=\"noopener\">ecommerce URL guide<\/a> shows.<\/li>\n<li><strong>Stick to one letter case.<\/strong> Google says it treats \/APPLE and \/apple as \u201cdistinct URLs with their own content\u201d. If your server treats both the same, use only lowercase so Google sees one page.<\/li>\n<li><strong>Keep extras to a minimum.<\/strong> Extras after a question mark, such as ?sort=price, are called parameters. Google says to trim the ones that do not change the content.<\/li>\n<li><strong>Write in your audience\u2019s language.<\/strong> If your customers search in Hindi or German, words from that language can go in the URL. Google\u2019s page notes that characters outside the basic English alphabet should be \u201cpercent encoded\u201d, which your developer or website platform can handle for you.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"A_Quick_Check_You_Can_Do_Today\"><\/span>A Quick Check You Can Do Today<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You do not need a tool.<\/p>\n<ol>\n<li>Open your website and look at five important pages.<\/li>\n<li>Check the address bar. Do the words have hyphens between them?<\/li>\n<li>Look for capital letters, long number codes or many question marks.<\/li>\n<li>Note any messy ones and ask your developer whether changing them is worth it.<\/li>\n<\/ol>\n<p>If your site is large, a clear, simple address structure also makes it easier for people to find their way, which is part of <a href=\"https:\/\/www.adroitte.com\/website-design-services\/\">good website design<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Quick_Takeaways\"><\/span>Quick Takeaways<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Google recommends hyphens, not underscores, to separate words in URLs.<\/li>\n<li>It is a recommendation, and we found no line saying underscores are penalised.<\/li>\n<li>Joined-together words are not recommended either.<\/li>\n<li>Use hyphens on every new page, and weigh the risk before changing old ones.<\/li>\n<li>If you change a URL, use a permanent (301) redirect from the old one.<\/li>\n<li>Use readable words, one letter case and as few extras as possible.<\/li>\n<\/ul>\n<h3>Want Your Website\u2019s Address Structure Checked?<\/h3>\n<p>If you are not sure whether your page addresses are set up well, or you are planning a redesign and want to avoid broken links, <a href=\"https:\/\/www.adroitte.in\/contact-us\/\" target=\"_blank\" rel=\"noopener\">reach out through our contact form<\/a> and we will go through it with you. Good URLs also make your <a href=\"https:\/\/www.adroitte.in\/digital-marketing-services\/\" target=\"_blank\" rel=\"noopener\">digital marketing<\/a> easier to track.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every page on your website has an address, called a URL. The last part of it, such as \/blue-dress, is what people see in the address bar and in search results. A small choice there, using a hyphen (-) or an underscore (_) between words, The hyphens vs underscores question causes a lot of arguments&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":9363,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[675,677,676],"class_list":["post-9360","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-seo","tag-hyphens-vs-underscores","tag-seo-friendly-urls","tag-url-structure"],"_links":{"self":[{"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/posts\/9360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/comments?post=9360"}],"version-history":[{"count":3,"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/posts\/9360\/revisions"}],"predecessor-version":[{"id":9372,"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/posts\/9360\/revisions\/9372"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/media\/9363"}],"wp:attachment":[{"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/media?parent=9360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/categories?post=9360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.adroitte.com\/blog\/wp-json\/wp\/v2\/tags?post=9360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}