How to Create an SEO-Friendly URL Slug: Rules, Examples and Mistakes
Updated November 5, 2026 · 8 min read
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
| Bad | Good | Why |
|---|---|---|
/p?id=4812 | /sourdough-bread-recipe | Describes the content |
/How_To_Bake_Sourdough_Bread_At_Home_In_2026!! | /how-to-bake-sourdough-bread | Lowercase, hyphens, no symbols or dates |
/the-ultimate-guide-to-the-best-ways-to-make-bread | /bread-making-guide | Short, no filler |
/café-crème-brûlée | /cafe-creme-brulee | Accents converted to plain letters |
9 rules for SEO-friendly slugs
- Describe the page using the words people would search for.
- Use lowercase only. Some servers treat
/Pageand/pageas different URLs. - Separate words with hyphens, not underscores or spaces.
- Keep it short: usually 3 to 6 meaningful words.
- Drop filler words (the, a, and, of, to) when the meaning stays clear.
- No special characters: letters, digits and hyphens only. Convert accents
(
étoe) and remove punctuation. - Avoid dates and numbers that will age, such as
-2026ortop-7, unless they're part of the topic. You'll update the article; you won't want to change the URL. - 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.
- Don't stuff keywords.
/bread-recipe-best-bread-recipe-easy-breadlooks spammy and helps nobody.
From title to slug: examples
| Title | Slug |
|---|---|
| How to Take a Screenshot on Windows 11 and 10 | how-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 Recipe | creme-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
- Pick the new slug.
- Add a 301 (permanent) redirect from the old URL to the new one, so visitors and search engines are sent to the right place.
- Update internal links, menus and your sitemap to the new URL.
- 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.
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
URL Slug Generator: Free Tool to Create Perfect Slugs in Seconds
How a free URL slug generator creates clean, consistent, SEO-friendly slugs in seconds, plus the slug best practices worth following.
Read More →Bulk URL Slug Generator: Process Multiple Titles at Once
Turn a whole list of titles into clean, consistent, SEO-friendly slugs at once, then copy them or download a CSV.
Read More →URL Encoding Explained: How to Encode and Decode URLs (With Examples)
What URL (percent) encoding is, which characters need it, encoding a value vs a full URL, a table of common codes, JavaScript and PHP examples, and how to fix double-encoding.
Read More →