SEO Slug Best Practices.
A complete guide to creating clean, search-friendly URL slugs — plus a free downloadable PDF cheat sheet to keep by your desk.
Download the cheat sheet
4-page PDF — print it, pin it, share it with your team.
What is a URL slug?
A slug is the human-readable part of a URL that identifies a specific page. In wordinstant.com/word-counter, the slug is word-counter. It sits between the domain and any query string, and it’s usually the first thing both humans and search engines read to decide what a page is about.
Slugs matter for three reasons at once. They’re a ranking signal — Google reads the words in the slug as a hint about page content. They’re a usability signal — a readable URL tells a visitor what they’re clicking before they click. And they’re a trust signal — a clean slug looks like a real page; a string of random characters looks like a tracking link.
Get the slug right once and you rarely need to touch it again. Get it wrong and you pay for it for years, because changing a live slug breaks every inbound link unless you set up a redirect.
The 10 golden rules.
- Use lowercase only — Search engines treat
/About-Usand/about-usas different URLs. Lowercase avoids duplicate content. - Use hyphens, not underscores — Google treats hyphens as word separators.
seo-slug-guide= three words;seo_slug_guide= one word. - Keep it short (3–5 words) — Shorter slugs are easier to read, share, and remember.
- Remove stop words — Drop “the”, “a”, “an”, “of”, “and”, “to”, “for”.
guide-to-the-best-seo-practices→seo-best-practices. - Include the target keyword — Put your primary keyword in the slug.
word-counter-tool, notour-amazing-text-utility. - No special characters — Only
a–z,0–9, and-. Remove accents, ampersands, question marks. - No trailing slashes or extensions — Use
/about, not/about/or/about.html. - No consecutive hyphens —
my--sluglooks broken. Collapse to a single hyphen. - Make it evergreen — Avoid dates or version numbers.
seo-slug-guideages better thanseo-slug-guide-2026. - Never change a live slug without a redirect — Changing an indexed slug without a 301 redirect destroys link equity.
Do vs don't.
- seo-slug-guide
- word-counter
- case-converter-tool
- blog-post-length
- remove-extra-spaces
- SEO_Slug_Guide
- the-best-word-counter-tool-online-free
- page?id=42&ref=home
- blog-post-length-2026-updated
- remove--extra--spaces.html
Before & after.
| Page title | Slug | Rule applied |
|---|---|---|
| How to Count Words in Any Document (Fast!) | count-words-document | Remove stops, parens, punctuation |
| Title Case vs. Sentence Case: When to Use Each | title-case-vs-sentence-case | Keep meaningful structure words |
| The Ultimate Guide to Lorem Ipsum Alternatives | lorem-ipsum-alternatives | Remove “the”, “ultimate”, “guide to” |
| 10 Best Free Online Text Tools for Writers | free-text-tools-writers | Remove number, “best”, “online”, “for” |
| What Is a URL Slug? (And Why It Matters) | what-is-url-slug | Remove parens and trailing clause |
| Our New Feature: Bulk Case Conversion! | bulk-case-conversion | Remove “our new feature”, punctuation |
The slug formula.
- Start with the page title or target keyword.
- Lowercase everything.
- Remove stop words.
- Remove special characters (punctuation, accents, symbols).
- Replace spaces with hyphens.
- Collapse consecutive hyphens into one.
- Trim leading and trailing hyphens.
- Review: 3–5 words? Contains keyword? Human-readable out loud?
Common mistakes.
- Keyword stuffing. Cramming
seo-slug-seo-guide-seo-url-seointo a slug looks like spam to Google and worse to humans. One primary keyword is enough. - Auto-generated CMS slugs. WordPress, Ghost, and Shopify will happily turn “How to Count Words—10 Tricks!” into
how-to-count-words-10-tricks. Review the auto-slug before publishing; don’t let the CMS ship a bad URL on your behalf. - Using IDs or hashes. URLs like
/p/42891or/post/abc123carry no SEO value. Database IDs belong in the database, not the URL. - Changing slugs without redirects. Switching
/old-slugto/new-slugwithout a 301 redirect kills every backlink pointing at the old URL. If you rename, always redirect. - Inconsistent transliteration.
cafébecomescafein most toolchains butcaf%C3%A9in others. Pick one transliteration rule site-wide socafé-menunever ships twice with two different encodings.
Take it with you
Download the PDF cheat sheet — 4 pages, printable, shareable.
Generate slugs automatically
Paste any title into the Slug Generator and get a clean, SEO-ready slug instantly.
Frequently asked.
The seven questions we hear most about slugs.
What is a URL slug?
A URL slug is the part of a web address that comes after the domain name and identifies a specific page. For example, in wordinstant.com/slug-generator, the slug is "slug-generator". Good slugs are short, descriptive, lowercase, and use hyphens to separate words.
Why do URL slugs matter for SEO?
Search engines use slugs to understand what a page is about. A slug like "seo-slug-best-practices" tells Google the page is about SEO slug best practices. Clean slugs also improve click-through rates in search results because users can see the topic directly in the URL.
Should I use hyphens or underscores in slugs?
Always use hyphens. Google treats hyphens as word separators, so 'seo-slug-guide' is read as three separate words. Underscores are treated as joiners, meaning 'seo_slug_guide' would be interpreted as a single token. This has been confirmed by Google's Matt Cutts and remains the standard.
How long should a URL slug be?
Aim for 3 to 5 words. Shorter slugs are easier to read, share, and remember. Google displays roughly 60 characters in search result URLs before truncating, so keeping slugs concise ensures the full path is visible.
Should I remove stop words from slugs?
Yes, in most cases. Words like "the", "a", "an", "of", "to", "for", and "and" add length without adding SEO value. However, keep stop words if removing them changes the meaning — for example, keep "the" in "the-who-band-history" to distinguish from "who-band-history".
Can I change a URL slug after publishing?
You can, but you must set up a 301 redirect from the old URL to the new one. Without a redirect, the old URL returns a 404 error, and you lose all the link equity (backlinks, ranking power) that the original URL had accumulated. Only change slugs when absolutely necessary.
How do I generate SEO-friendly slugs automatically?
Use WordInstant's free Slug Generator tool. Paste any title or phrase, and it instantly produces a clean, lowercase, hyphenated slug with stop words removed. No sign-up required — it runs entirely in your browser at wordinstant.com/slug-generator.