Inside this Article
- Make it easy to identify the content and value of your posts from the URL
- Make your URLs more attractive and easily digestible by your website visitors
- Make your URLs easy to remember and find again by website visitors
- Improve your SERP (search engine results pages) performance by helping you rank higher in results
But What’s a URL Slug in the First Place?
If you go to a website and navigate to a specific webpage or blog post, you’ll see that the URL in your browser’s URL bar will look something like this: https://www.example.com/blog/this-is-a-blog-post

- You might want to shorten or lengthen the URL when using the post title
- Some special characters (such as spaces) aren’t supported in URLs
- You want to enhance the URLs to improve SEO performance (which is what I’ll help you do in this guide)
How to Use Slugs to Optimize Your Website SEO
How Search Engines Use Slugs
The cornerstone of any SEO campaign is targeting keywords. The whole basis of search engine optimization is built on the ability of search engines to match what people search with content on the web using relevant keywords. For example, if a user searches for “Best hamburgers in New York”, a search engine like Google will scour the web for any articles or webpages that use or mention the same words and phrases. Often, search engines will also identify keywords like “hamburgers” and “New York” and pair them with related keywords for relevance, such as “food”, “diners”, etc. If you take your website SEO seriously, you are no doubt already using these keywords in your posts and webpages to generate more traffic. The crux of optimizing your slugs for SEO comes down to identifying and using these same keywords in your URLs. Search engines don’t only take into account the content of your posts or webpages; they also look at your URLs and other metadata to draw their conclusions on what webpages are the most relevant according to what a user searched. So, let’s say that you have a long title for your post which reads something like, “The Best Hamburger Joints in New York for Those Who are Hungry and on a Budget.” First, using only a date or ID for the post slug, as per the examples above, doesn’t give the search engine anything to work with. Second, using that entire title gives the search engine too much to work with that’s not relevant to what the user searched, which was only “Best hamburgers in New York.” Therefore, shortening the URL by using almost exclusively the most important keywords (“hamburger”, “new york”) will yield the best results according to a relevance score. Your resulting URL might then look something like this: www.example.com/blog/hamburger-new-yorkHow Humans Use Slugs
However, it’s not just search engines you want to impress. After all, the end-users and consumers of your content are people. If I’ve learned anything about people who surf the web (ourselves included), they want things short, simple, and crystal clear. Humans excel at consuming and interpreting natural language, allowing you to avoid excessive simplification required for search engines. While the URL mentioned is optimized for search engines, it lacks sufficient information for human comprehension. Its brevity and oversimplification can even give the impression of minimal effort and disrupt fluent reading. As humans, we are also attracted to emotive or qualitative language. That means including a word such as “best” or “fantastic” will not only fill out your slug nicely, but also attract more human visitors. With that in mind, we can improve our URL further by changing the slug to: www.example.com/blog/best-hamburgers-new-yorkOkay, So How Do I Actually Change My Slugs?
Good question! However, you may not be happy to hear that it varies from platform to platform. Almost any platform should provide a way for you to change the URLs of your posts and webpages on an individual basis. You then simply need to identify the “slug” part of the URL and then change it manually for every post or webpage. Other platforms may provide recommendations, generate slugs automatically, or allow you to install plugins to manage your SEO aspects, such as the Yoast SEO plugin for WordPress, which is one of the most popular examples. In Wix, you can change the slugs of your webpages or posts when editing your website by going to your individual webpage settings, going to the Page SEO options, and changing your webpage URL. On Squarespace, it works in a very similar fashion.
- Step #1. Identify your most important keywords for a given post or webpage
- Step #2. Arrange them in a way that makes sense and is both human- and machine-readable
- Step #3. Change the slugs in URLs for specific posts or webpages to your new URL-friendly and search-engine-optimized versions
URL Slug Best Practices
To really get the most out of your URL Slugs, it’s worth going over the best practices that generally apply no matter the circumstances or platform you’re using. Keeping these principles in mind will help you create effective slugs wherever and whenever:- Identify keywords. Identify the most important keywords in your post that will be the most relevant to visitors and search engines. (Use tools like keywordtool.io for this.)
- Keep it focused. Scrap all unnecessary words as well as any “stop” words such as “the”, “as”, “and”, “a”, etc.
- Keep it short. Keep your slugs as short as possible. It will depend on your keywords, but three or four words is the standard.
- Don’t cram in keywords. While keywords are important, don’t just squeeze them in — you don’t want your slugs to make no sense at all.