Few SEO questions survive as stubbornly as this one: should the words in your page's URL match what people search for? It sounds like it should matter a lot: the URL is part of a result people read before they decide to click, so it is natural to assume that packing the right keywords into the slug buys ranking power.
This guide gives the honest answer, and then shows how to build a good slug with the free SEO Slug Generator on Ovatly. The short version: keywords in a slug are a minor ranking signal at most, and treating them as a ranking lever leads to the one slug mistake that genuinely hurts: rewriting the URLs of pages that already work.
Contents
- Quick answer
- What a slug is, and where keywords sit in it
- The ranking question, answered honestly
- Where a descriptive slug actually earns its keep
- How to build a slug with keywords, step by step
- Worked example: a headline becomes a slug
- Limitations
- Common mistakes
- FAQs
- Conclusion
Quick answer
Keywords in a URL slug are a minor ranking signal at most. A descriptive slug will not rescue a weak page, and a plain slug will not hold back a strong one. Its real value is for humans: people share and click URLs they can read and trust, and a slug that names the topic earns that trust in search results, chat messages and social posts. Use the SEO Slug Generator to turn your page title into a clean, lowercased, hyphenated slug, keep the words that carry the topic and the search intent, and never change the slug of a live page just to add keywords, because changing a slug breaks the URL.
What a slug is, and where keywords sit in it
The slug is the last part of a URL, the part that usually names the page: in example.com/brew-best-coffee, the slug is brew-best-coffee. It is normally derived from the page's title or headline, cleaned up so it is safe to put in an address: lowercased, with words separated by hyphens, accented letters transliterated and punctuation removed.
That cleaning is the whole job of a slug generator. What it cannot do is decide which words deserve to be there. That decision is yours, and it is where the keyword question actually lives: not whether the URL contains words, but which words you keep when you shorten a headline down to a handful of terms.
The ranking question, answered honestly
The direct answer is the one the tool itself gives: a descriptive slug is a minor signal at most. Search engines rank pages overwhelmingly on the page itself, its content, its usefulness and the links and context around it. The words in the URL sit at the small end of that scale.
Two practical conclusions follow. First, there is no ranking promise to buy here, in either direction. A keyword-rich slug does not guarantee anything, and a short, plain slug is not a ranking defect that needs fixing. Second, the minor size of the signal changes the cost calculation for existing pages. Changing the slug of a page that already exists breaks its URL: every link, bookmark and shared copy of the old address points at a page that no longer answers there. You can repair that with a redirect from the old address, set up before the change, but spending a URL move on a minor-at-most signal is a poor trade. Keywords belong in the slugs of new pages, written well once, at creation.
Where a descriptive slug actually earns its keep
If the ranking effect is minor, why bother writing slugs carefully at all? Because URLs are read by people far more often than they are weighed by algorithms.
A readable slug works in the search result itself, where the displayed URL confirms the page is about what the searcher typed. It works when a link is pasted into a chat or a social post without a preview card, where the bare address is all anyone sees. And it works in an email or in your own records, where brew-best-coffee explains itself and post?id=4821 explains nothing.
That is the honest case for keywords in slugs: the words a searcher would use are usually also the clearest words for a human reader.
How to build a slug with keywords, step by step
- Open the SEO Slug Generator and type the page title or headline. Start from the real title, because the slug should describe the same page the title describes.
- Choose a hyphen or underscore separator. Choose the hyphen: Google has long recommended hyphens as word separators in URLs, while underscores are treated as joining characters in some systems, which can merge your words back together.
- Optionally remove stop words or set a maximum length. Use these only when the slug is genuinely too long. Words like "how" and "why" often carry the search intent of the page, so deleting them by default can strip out the most meaningful part.
- Copy the slug into your CMS or route definition, and check it once as a reader: could someone guess what this page is about from the slug alone?
Worked example: a headline becomes a slug
Take the headline "10 Tips for Café-Quality Espresso at Home!". The generator produces 10-tips-for-cafe-quality-espresso-at-home: the é becomes e, the exclamation mark disappears, and the hyphen inside "Café-Quality" becomes a word separator. The slug keeps the descriptive words a searcher or a reader cares about (tips, café-quality espresso, at home) without any special effort, because the headline already carried them.
The stop-word option shows the judgement call. With stop-word removal on, "How to Brew the Best Coffee" becomes brew-best-coffee: shorter, and worth it for a very long headline. But "how to" told the reader this is an instructional page, so on a normal-length title, keeping those words is usually the better slug.
Limitations
A slug generator cleans text; it does not judge it. It cannot tell you whether your title targets the right topic, whether the page behind the slug deserves to rank, or whether a keyword belongs in the slug at all. It transliterates accented Latin letters and a small table of special letters, and it removes characters from scripts such as Arabic, Chinese or Cyrillic rather than transliterating them, so a title in one of those scripts needs your own attention before it becomes a slug.
The tool also cannot protect an existing page. It produces the new slug; the redirect from the old address, and the decision about whether the change is worth making at all, stay with you.
Common mistakes
- Rewriting live slugs to chase keywords. The signal is minor at most and the URL break is real. If a change is truly needed, set up a redirect from the old address first.
- Keyword stuffing the slug. Repeating the same term or cramming in variants makes the URL unreadable, which destroys the one benefit a descriptive slug reliably provides.
- Removing stop words automatically. Shortening is optional for a reason: "how" and "why" often carry the search intent, and a shorter slug that says less is not a better slug.
- Choosing underscores. Underscores can be treated as joining characters, merging words you meant to keep separate. Hyphens are the separator search engines recommend.
- Assuming shorter is always better. A slug should still tell a reader what the page is about. Cut filler, not meaning.
FAQs
Do keywords in a slug help rankings? A descriptive slug is a minor signal at most. Its real value is for humans: people share and click URLs they can read and trust.
Should I rewrite the slugs of pages I have already published to add keywords? Not for the keywords alone. Changing the slug of a page that already exists breaks its URL, so you would need a redirect from the old address, and the ranking effect you are chasing is minor at most. Put the effort into new pages instead.
Hyphens or underscores in URLs? Google has long recommended hyphens as word separators in URLs. Underscores are treated as joining characters in some systems, which can merge words.
Should I remove stop words from my slugs? It shortens the slug, but words like "how" and "why" often carry the search intent of the page. Remove stop words only when the slug is genuinely too long.
Is a longer slug with more keywords better than a short one? No. Shorter is not automatically better either: a slug should still tell a reader what the page is about. Aim for a slug a person can read once and understand, not for a fixed word count.
Conclusion
Slugs still matter, just not for the reason they are usually sold. Keywords in a URL are a minor ranking signal at most, so they are never worth breaking a working address for. What a good slug reliably does is describe the page to every human who sees the link, in results, in shares and in your own records. Write it once, at page creation, with the SEO Slug Generator: start from the title, separate words with hyphens, keep the words that carry the topic and the intent, and let readability make the decisions. For the wider set of on-page checks that sit around a new URL, see the other guides in SEO Tools.
Related guide: How to Handle Special Characters and Spaces in Slugs.