How to Create an SEO-Friendly URL Slug: Rules, Examples and Mistakes

How to Create an SEO-Friendly URL Slug: Rules, Examples and Mistakes

The slug is the part of a web address that describes the page: example.com/blog/how-to-bake-sourdough-bread. It's small, but it shows up in search results, in shared links and in browser tabs. A clean slug helps people (and search engines) understand a page before they open it. Here's how to write good ones.

Good vs bad slugs

BadGoodWhy
/p?id=4812/sourdough-bread-recipeDescribes the content
/How_To_Bake_Sourdough_Bread_At_Home_In_2026!!/how-to-bake-sourdough-breadLowercase, hyphens, no symbols or dates
/the-ultimate-guide-to-the-best-ways-to-make-bread/bread-making-guideShort, no filler
/café-crème-brûlée/cafe-creme-bruleeAccents converted to plain letters

9 rules for SEO-friendly slugs

  1. Describe the page using the words people would search for.
  2. Use lowercase only. Some servers treat /Page and /page as different URLs.
  3. Separate words with hyphens, not underscores or spaces.
  4. Keep it short: usually 3 to 6 meaningful words.
  5. Drop filler words (the, a, and, of, to) when the meaning stays clear.
  6. No special characters: letters, digits and hyphens only. Convert accents (é to e) and remove punctuation.
  7. Avoid dates and numbers that will age, such as -2026 or top-7, unless they're part of the topic. You'll update the article; you won't want to change the URL.
  8. One page, one topic, one slug. Don't create several pages with nearly identical slugs for the same topic; they compete with each other in search.
  9. Don't stuff keywords. /bread-recipe-best-bread-recipe-easy-bread looks spammy and helps nobody.

From title to slug: examples

TitleSlug
How to Take a Screenshot on Windows 11 and 10how-to-take-a-screenshot-on-windows
10 Best Free Project Management Tools for Small Teams (2026)free-project-management-tools-small-teams
Crème Brûlée: A Beginner's Recipecreme-brulee-recipe
Q&A: What Is URL Encoding?what-is-url-encoding

Slugs and SEO: what actually matters

A slug is a small ranking signal compared with your content, but it matters in other ways: it's visible in search results, it makes shared links readable, and it tells people what to expect before they click. A clear slug also makes your site easier to organise. Most of all, don't change slugs casually. Stable URLs keep the links and history pages have built up.

Changing a slug safely

  1. Pick the new slug.
  2. Add a 301 (permanent) redirect from the old URL to the new one, so visitors and search engines are sent to the right place.
  3. Update internal links, menus and your sitemap to the new URL.
  4. Check the old URL in a browser to confirm it redirects.

Merging two thin pages on the same topic into one stronger page works the same way: keep the better URL and 301-redirect the other to it.

Generate slugs automatically

The free URL slug generator applies these rules for you: it lowercases text, converts accents, replaces spaces and symbols with hyphens, can remove stop words, and lets you set a maximum length. Have a whole list of titles? Its bulk mode converts many at once and exports a CSV (bulk slug guide). More background in URL slug generator: create perfect slugs.

Paste a title and get a lowercase, hyphenated, accent-free slug, with optional stop-word removal and a length limit.

Generate a clean slug

Frequently asked questions

What is a URL slug?

The readable part at the end of a URL that identifies a page, such as how-to-bake-bread in example.com/blog/how-to-bake-bread.

Should I use hyphens or underscores in slugs?

Hyphens. Search engines treat hyphens as word separators, and hyphens are the common convention for URLs.

How long should a slug be?

Short enough to read at a glance, usually 3 to 6 meaningful words. Remove filler words that add nothing.

Should I remove stop words like "the" and "and"?

Usually yes, when the slug still reads naturally without them. Keep a word if removing it changes the meaning.

Can I change a slug after publishing?

Yes, but set up a 301 redirect from the old URL to the new one and update your internal links. Otherwise visitors and search engines hit a dead page.

Related articles

← All guides