A slug is the part of a URL that names the page, and it follows the page everywhere: into search results, shared messages, emails and printed documents. Most content management systems will invent one for you, and the result often carries capital letters, punctuation or a long string of words nobody can read at a glance. Writing the slug yourself takes under a minute, and the rules are the same whether the page is a blog post, a product or a category.
This guide works through all three page types with the free SEO Slug Generator on Ovatly, which converts a page title into a clean slug in your browser. The honest limit, up front: a descriptive slug is a minor ranking signal at most. Its real value is for humans, who share and click URLs they can read and trust.
Contents
- Quick answer
- The cleaning rules every slug follows
- Blog posts: keep the words that carry intent
- Product pages: name the product plainly
- Category pages: short, plain and stable
- How to generate a slug, step by step
- Worked example: from headline to slug
- Limitations and alternatives
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Whatever the page type, a good slug is the page title cleaned up: lowercase words separated by hyphens, with punctuation removed and accented letters transliterated. Open the SEO Slug Generator, type the title, choose the hyphen separator, and copy the result into your CMS. The page types differ only in which words you keep, as the sections below show. One rule overrides the rest: never change the slug of a page that already exists without setting up a redirect from the old address first.
The cleaning rules every slug follows
The generator applies the same cleaning to every title you give it. The result is lowercased and hyphenated, accented letters are transliterated, and punctuation is removed. You choose the separator, a hyphen or an underscore, and you can optionally remove stop words or set a maximum length before you copy the slug into your CMS or route definition.
Two of those choices deserve a decision rather than a default. Use hyphens as the separator: Google has long recommended hyphens as word separators in URLs, while underscores are treated as joining characters in some systems, which can merge words. And treat stop-word removal as a last resort for length, not a routine step, for reasons the next section explains.
Blog posts: keep the words that carry intent
A blog post answers a question or teaches a task, and its title usually says which one. Words like "how" and "why" look like filler, but they often carry the search intent of the page: a reader can tell from the slug alone whether the post explains a method or gives a reason. Strip those words out and the slug gets shorter but says less.
So for posts, start from the full cleaned title and only reach for stop-word removal when the slug is genuinely too long. The companion guide on turning a long title into a clean short slug works through that decision in detail. The test at every length is the same: the slug should still tell a reader what the page is about, because shorter is not automatically better.
Product pages: name the product plainly
A product page has a different job. Nobody searches for a product by the marketing sentence in its headline; they look for the product itself. The slug should therefore name the product plainly, in the words a buyer would type or read aloud, cleaned by the same rules.
Resist adding headline decoration to a product slug. Extra adjectives and campaign words lengthen the address without saying more about what is being sold, and they age badly when the copy changes but the URL cannot. If the title you feed the generator is the full marketing headline, trim it to the product name first, then generate, so what remains is recognisable as the product even when read aloud.
Category pages: short, plain and stable
On most sites the category slug becomes part of the address of every post or product filed under it, so a long or awkward one is repeated across the whole section. Keep category slugs short and plain: the fewest words that still name the topic clearly.
Stability matters even more here. Renaming a category slug does not change one URL; it changes the URL of every page beneath it. Choose the category slug as if it were permanent, because in practice it nearly is. The wider set of URL habits behind these three page types is collected in the SEO Tools guide archive.
How to generate a slug, step by step
- Open the SEO Slug Generator and type the page title or headline. For a product page, type the plain product name rather than the marketing headline.
- Choose a hyphen or underscore separator. Choose the hyphen unless you have a specific reason not to.
- Optionally remove stop words or set a maximum length. Use these only when the cleaned title is genuinely too long, and check afterwards that the slug still describes the page.
- Copy the slug into your CMS or route definition. If the page already exists at another address, set up a redirect from the old address before the new slug goes live.
Worked example: from headline to 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. Nothing about the topic is lost, and the address reads aloud cleanly.
The stop-word option shows its trade clearly on a second title. With stop-word removal on, "How to Brew the Best Coffee" becomes "brew-best-coffee". That is a fine slug, but notice what left: the "how to", the part telling a reader this page teaches the process. On a blog post, that intent is often worth the three extra words. On a category page named "Coffee Brewing", the cleaned slug "coffee-brewing" needs no such decision at all.
Limitations and alternatives
The generator cleans the title you give it; it does not judge whether the title was the right name for the page. Choosing the words remains your job. Transliteration covers accented Latin letters plus a small table of special letters (ß becomes ss, æ becomes ae, ø becomes o). Scripts such as Arabic, Chinese or Cyrillic are removed rather than transliterated, so a title written entirely in one of those scripts will not produce a usable slug from this tool; name such pages in Latin letters first.
The tool also cannot protect a live site from a careless rename. It produces the new slug, but the redirect from the old address is yours to set up. If your CMS generates acceptable slugs already and your titles are short, you may not need a generator at all; its value shows on long titles and accented words.
Common mistakes
- Accepting the CMS default. Auto-generated slugs keep capitals, punctuation and filler that a thirty-second cleanup would remove.
- Removing stop words by routine. Words like "how" and "why" often carry the search intent of a post. Remove them only when the slug is genuinely too long.
- Using underscores as separators. Underscores are treated as joining characters in some systems, which can merge words; hyphens are the recommended separator.
- Stuffing a product slug with headline copy. Name the product plainly; decoration dates quickly and lengthens every shared link.
- Renaming a category casually. The category slug sits inside the URL of every page under it, so a rename multiplies the redirect work across the section.
- Changing any live slug without a redirect. The old address breaks, and every existing link to the page stops working.
FAQs
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? 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.
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.
What happens if I change the slug of a page that already exists? Changing the slug breaks the page's URL. Set up a redirect from the old address before you change a live slug, or every existing link to the page stops working.
What does the generator do with accented or non-Latin text? Accented Latin letters are transliterated, and a small table of special letters is converted too (ß becomes ss, æ becomes ae, ø becomes o). Scripts such as Arabic, Chinese or Cyrillic are removed rather than transliterated.
Conclusion
One set of cleaning rules covers every page type: lowercase, hyphens, punctuation removed, accents transliterated. What changes is the editing judgement. Keep the intent words in a blog post slug, name the product plainly on a product page, and keep a category slug short and stable. The SEO Slug Generator does the cleaning in seconds; the judgement, and the redirect whenever a live address changes, stays with you.
References
- Google Search Central, on URL structure and the recommendation to use hyphens as word separators: https://developers.google.com/search/docs/crawling-indexing/url-structure