The slug is the one part of a page that strangers see out of context: pasted into a chat, printed in search results, read aloud, or scanned in a browser tab. A CMS will happily auto-generate something long, capitalised and full of punctuation. A good slug is the opposite: lowercase, hyphenated, and short enough to take in at a glance while still saying what the page is.
This guide covers the practices that matter, length, keywords and readability, and how to produce a clean slug with the free SEO Slug Generator on Ovatly. It is also honest about the limits: no slug, however well made, carries a page on its own.
Contents
- Quick answer
- What a slug is, and what the generator does to a title
- Length: short, but still descriptive
- Keywords: a minor signal, a major readability factor
- Separators and characters
- How to create a slug, step by step
- Worked example: from headline to slug
- Limitations and honest notes
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
A good slug is lowercase, uses hyphens between words, drops punctuation, and keeps the words that tell a reader what the page covers. Trim it only when it is genuinely too long, and remember that words like "how" and "why" often carry the page's intent, so removing every stop word can make a slug shorter and worse at the same time. Paste your title into the SEO Slug Generator, choose the hyphen separator, apply the stop-word and length options only if the result needs them, and copy the slug into your CMS before you publish. If the page already exists and ranks or is linked, do not change its slug without a redirect from the old address.
What a slug is, and what the generator does to a title
The slug is the final, readable part of a URL: in a path like /blog/slug-best-practices, the slug is "slug-best-practices". It is usually derived from the page title, then cleaned up. The generator performs that cleanup mechanically: it lowercases the title, hyphenates it, transliterates accented letters, and removes punctuation.
Transliteration deserves a precise description. Accented Latin letters are converted to their plain equivalents, and a small table of special letters is handled too: ß 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 produces an empty or fragmentary slug and needs one written by hand.
Length: short, but still descriptive
There is no magic character count for a slug, and chasing one misses the point. The working rule from experience with URLs is twofold. Long slugs get truncated when displayed, are awkward to paste and retype, and often repeat the title word for word when a few of those words would do. But shorter is not automatically better: a slug should still tell a reader what the page is about. A slug trimmed down to one or two generic words saves a few characters and costs the reader the entire description.
In practice, keep the words that carry the topic and drop the ones that do not. If the full title converts to a slug that reads clearly, length is fine. If it rambles, use the generator's options deliberately: it can remove stop words, and it can enforce a maximum length. Treat both as trimming tools for genuinely long titles, not as defaults to apply to everything.
Keywords: a minor signal, a major readability factor
It is worth stating plainly what a keyword in a slug does and does not do. A descriptive slug is a minor ranking signal at most. Nobody should rewrite working URLs across a site in the hope that slug keywords will move rankings; they will not, and the broken links would do real harm in the attempt.
The real value of a descriptive slug is for humans. People share and click URLs they can read and trust. A slug that names the topic tells a reader in a chat message or a results page what they are about to open, and it still makes sense when it is copied without the page title around it. So include the words that describe the page because readers benefit, and let any small search benefit be a side effect rather than the goal.
Separators and characters
Use hyphens as the word separator. Google has long recommended hyphens in URLs. Underscores are treated as joining characters in some systems, which can merge words: a slug written with underscores can be read as one long word instead of a phrase. The generator offers both separators, but hyphen is the right default for anything public.
Everything else follows from readability. Lowercase throughout, because mixed-case URLs are easy to mistype and some servers treat case as significant. No punctuation: the generator strips it, including marks inside words, so a hyphenated compound in the title becomes separate words in the slug. No spaces or encoded characters either.
How to create a slug, step by step
- Open the SEO Slug Generator and type the page title or headline.
- Choose a hyphen as the separator.
- Optionally remove stop words, or set a maximum length, if the converted slug is genuinely too long. Read the result before accepting either option: check that the intent words survived.
- Copy the slug into your CMS or route definition, then publish. For a new page, that is the whole job.
Worked example: from headline to slug
Take the title "10 Tips for Café-Quality Espresso at Home!". The generator returns "10-tips-for-cafe-quality-espresso-at-home". Three things happened: the é became e, the exclamation mark disappeared, and the hyphen inside "Café-Quality" became a word separator, so the compound reads as two words, "cafe quality".
Stop-word removal shows the trade-off clearly. With it switched on, "How to Brew the Best Coffee" becomes "brew-best-coffee": shorter, certainly, but the word "how" carried the page's intent, a reader scanning the slug can no longer tell it is an instruction rather than a product or a review. For a short title like that one, the untrimmed slug is the better slug. Reserve removal for titles whose full conversion is unwieldy.
Limitations and honest notes
The generator converts text; it does not judge it. It cannot know which words carry your page's intent, whether a shorter slug has become meaningless, or whether the page already exists under a different URL. Those calls stay with you.
The biggest limitation is about existing pages. Changing the slug of a page that already exists breaks its URL: every link, bookmark and index entry pointing at the old address misses. If a live slug truly must change, set up a redirect from the old address before you change it, and treat the change as a small migration, not a tidy-up. For new pages none of this applies, which is exactly why getting the slug right at creation time is worth the minute it takes.
Common mistakes
- Rewriting slugs on live pages for keywords. The signal is minor at most; the broken URLs are a real and immediate cost.
- Removing every stop word by default. Words like "how" and "why" often carry the search intent of the page.
- Using underscores or mixed case. Underscores can merge words in some systems, and case invites typos.
- Trimming to the shortest possible slug. A slug that no longer describes the page has traded its main job for a few characters.
- Pasting a title in a non-Latin script and accepting the result. Those scripts are removed rather than transliterated, so write that slug by hand.
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.
Can I change the slug of a page that already exists? Changing a slug breaks the page's URL, so only do it with a redirect from the old address set up first. For a brand new page, set the slug once and leave it alone.
What happens to titles in other scripts or with accents? Accented Latin letters are transliterated (ß becomes ss, æ becomes ae, ø becomes o). Scripts such as Arabic, Chinese or Cyrillic are removed rather than transliterated, so titles in those scripts need a slug written by hand.
Conclusion
Slug craft is a small discipline with a clear order of priorities: readable for humans first, stable once published, and descriptive enough that the URL alone explains the page. Build each new slug with the SEO Slug Generator, trim only when length genuinely hurts, and leave live slugs alone unless a redirect is ready. The companion guide, How to Check Hreflang Return Tags and Missing Pairs, covers the other half of URL hygiene for multilingual sites, and the full set of metadata and URL guides lives in the SEO Tools collection.
References
- Google Search Central, on URL structure best practices: https://developers.google.com/search/docs/crawling-indexing/url-structure