Why You Are Here
The slug is the human-readable part of a URL that sits after the domain and folders. In example.com/blog/how-to-make-sourdough, the slug is how-to-make-sourdough.
Most content management systems generate one automatically from your title, and the automatic version is usually acceptable and occasionally terrible. Titles contain punctuation, capital letters, question marks, ampersands, quotation marks, and accented characters, and different platforms handle each of those differently. A title like How to Make Sourdough, A Beginner's Guide (2026) can produce anything from a clean slug to a string of percent-encoded characters.
The first situation is publishing new content and wanting the slug right before it goes live. Getting it right at publication is the only time it is genuinely free to change.
The second is bulk work. Migrating a site, importing a product catalogue, or generating URLs for hundreds of pages where consistency matters more than any individual slug.
The third is handling non-English titles. Accented letters, Cyrillic, Arabic, and Chinese characters all need a decision about transliteration, and the default CMS behaviour is often not what you want.
What This Tool Does
The SEO Slug Generator takes any text and converts it into a valid URL slug.
Paste a title and the tool lowercases it, replaces spaces with hyphens, strips punctuation and special characters, converts accented letters to their closest plain equivalents, and collapses any repeated separators. The result is a slug that works in every CMS and every browser.
Before You Change an Existing Slug
Changing the slug of a page that is already published changes its URL. The old URL stops working, and unless you handle it properly, three things happen at once: every backlink pointing at the old URL breaks, the page's accumulated ranking signals are lost, and anyone who bookmarked or shared the old link gets a 404.
A slug that is slightly less than perfect on a page with existing rankings and backlinks is almost always better than a perfect slug that resets the page's history.
If you do need to change it
- Set up a 301 redirect from the old URL to the new one, permanently. Not a 302, which signals a temporary move and does not pass signals the same way.
- Update internal links across your site to point directly at the new URL rather than relying on the redirect.
- Expect temporary fluctuation. Even with a correct redirect, rankings typically wobble for a few weeks while search engines process the change.
- Keep the redirect indefinitely. Removing it later re-breaks every old link.
|
Changing the slug IS worth it when |
Changing the slug is NOT worth it when |
|
The current URL is meaningless (/p=1234, /page-2-final-v3) |
The current slug is merely imperfect |
|
It contains a date that makes evergreen content look stale |
The page already ranks well |
|
It is misleading about the page content |
The only motivation is squeezing a keyword in |
|
The page has no meaningful traffic or backlinks to lose |
The page has accumulated backlinks |
Slug Formatting Rules
| Rule | Correct | Avoid |
|
Lowercase only |
spring-recipes |
Spring-Recipes |
|
Hyphens as separators |
url-slug-guide |
url_slug_guide |
|
No spaces |
how-to-bake |
how to bake |
|
No special characters |
mens-shoes |
men's-shoes |
|
Transliterate accents |
cafe-guide |
cafe-guide with accent |
|
No trailing separator |
sourdough-bread |
sourdough-bread- |
|
No repeated separators |
easy-pasta |
easy--pasta |
|
Descriptive, not generic |
sourdough-starter |
post-47 |
Why Hyphens and Not Underscores
Every guide says to use hyphens. Few explain why, and the reason is specific rather than stylistic.
seo-slug-generator -> read as: "seo" "slug" "generator" seo_slug_generator -> read as: "seosluggenerator" # The underscore version reads as a single unrecognisable # token rather than three meaningful words.
Stop Words — The Nuanced Answer
Nearly every slug tool advertises automatic stop word removal, and nearly every SEO guide recommends it. The reality is more conditional than that.
Stop words are common function words like the, a, an, and, or, but, of, to, in, for, on, is, are. Removing them shortens slugs, which is often good. But removing them blindly damages some slugs:
| Title | Stop words stripped | Better |
|
How to tie a tie |
tie-tie |
how-to-tie-a-tie |
|
The Who discography |
who-discography |
the-who-discography |
|
Best IT jobs in Dubai |
best-jobs-dubai |
best-it-jobs-dubai |
|
What is a VPN |
vpn |
what-is-a-vpn |
In the first, the slug becomes nonsense. In the second, the band's name is destroyed. In the third, IT was misidentified as the pronoun. In the fourth, the entire query intent is lost.
Length Guidance
There is no hard limit and no penalty threshold. These are practical guidelines rather than rules.
| Element | Target |
|
Slug words |
3 to 5 |
|
Slug characters |
Under 60 |
|
Full URL |
Under 100 characters where practical |
|
Folder depth |
2 to 3 levels maximum |
Shorter slugs are easier to read in search results, survive being copied into messages and documents without wrapping, and are less likely to be truncated in the URL breadcrumb Google shows above each result. Long slugs are not penalised, they are just less useful to people.
Non-English and Accented Characters
Accented Latin characters should generally be transliterated to their plain equivalents.
| Original | Transliterated |
|
cafe (with acute e) |
cafe |
|
naive (with diaeresis) |
naive |
|
Zurich (with umlaut) |
zurich |
|
Sao Paulo (with tilde) |
sao-paulo |
|
Malaga (with acute a) |
malaga |
Non-Latin scripts are a judgement call, not a flat prohibition
Modern browsers and Google both handle UTF-8 URLs correctly, and Google displays them decoded in search results. So a Cyrillic or Arabic slug is not broken, and for a purely local audience it can be more readable than a transliteration.
The problem appears when the URL is copied. Outside the browser address bar, a non-Latin URL is percent-encoded, so a clean Cyrillic slug becomes an unreadable string of percent-sign sequences when pasted into an email, a message, or a document. Anyone sharing your link sees that version rather than the clean one.
Slug Patterns by Content Type
| Content Type | Pattern | Example |
|
Blog post |
Descriptive phrase |
sourdough-starter-guide |
|
How-to article |
Keep the question format |
how-to-fix-a-leaking-tap |
|
Product page |
Brand, model, key attribute |
nike-air-max-90-white |
|
Category page |
Plain category name |
running-shoes |
|
Location page |
Service plus location |
plumber-manchester |
|
Comparison |
Item vs item |
react-vs-vue |
|
Landing page |
Offer, no dates |
free-seo-audit |
|
News article |
Topic, avoid dates |
budget-2026-announcement |
Common Mistakes to Avoid
This is the mistake most likely to cause real damage, and it is easy to make with a slug tool open. Improving the slug of a page that already ranks and has backlinks means the old URL 404s, every inbound link breaks, and the rankings the page had accumulated are lost. Always set up a permanent 301 redirect from the old URL before publishing the change, and leave that redirect in place indefinitely.
On most web servers, /My-Page and /my-page are different addresses. If both resolve, search engines can index both and treat them as duplicate content, splitting your ranking signals between two versions of the same page. Use lowercase for every slug without exception, and configure your server to redirect uppercase requests to the lowercase version.
A slug like cheap-shoes-buy-shoes-online-shoes-store-best-shoes looks like spam to people and provides no ranking benefit. URLs are a very lightweight ranking factor. The main value of a well-written slug is that someone reading it in search results understands what the page is about and is more likely to click. One clear phrase does that six repeated keywords do the opposite.
Quick Reference
| Item | Detail |
|
Casing |
Lowercase always |
|
Separator |
Hyphens, never underscores |
|
Length |
3 to 5 words, under 60 characters |
|
Accents |
Transliterate to plain letters |
|
Stop words |
Remove only if it still reads well |
|
Dates |
Not in evergreen slugs |
|
File extensions |
Omit |
|
Wording |
Descriptive, not generic |
|
Server behaviour |
URLs are case-sensitive |
|
Live pages |
Never change a slug without a 301 |
|
Folder depth |
2 or 3 levels maximum |
|
Priority |
Clarity beats keyword density |
