What makes a good slug
A good slug follows a few rules, but it follows all of them at once. It should be short: the fewer words needed to describe the page, the better it reads in a browser and in a search result. It should be descriptive: someone who sees only the URL, before opening the page, should be able to guess what they'll find. And it should include the page's target keyword, the two or three words that sum up what the page covers, without piling on synonyms or variants around it.
This page demonstrates that with its own URL structure. In Spanish: https://zds.es/que-es-url-slug. In German: https://zds.es/de/was-ist-url-slug/. In English: https://zds.es/en/what-is-url-slug/. In all three cases, the final segment is short, entirely lowercase, free of accents or special characters, and its words are separated by hyphens rather than underscores. Google treats the hyphen (-) as a word separator and reads "url" and "slug" as two distinct terms; it treats the underscore (_) as a joining character, so "url_slug" would be read as a single word, diluting the relevance of each term on its own.
The /de/ or /en/ prefix that comes before the slug in the German and English versions isn't part of the slug itself, it's the path segment marking the page's language. The slug is only the final piece, the part that changes from one article to the next within the same language.
| Bad slug | Why it fails | Good slug |
|---|---|---|
| /p?id=48291 | Describes nothing; only someone who already knows the ID knows what's behind it | /cordless-drill-review |
| /the-best-tips-and-tricks-for-choosing-the-perfect-cordless-drill-in-2026 | Describes the page, but with filler that adds nothing for someone reading the URL | /best-cordless-drill |
| /Cordless_Drill_Guide | A capital letter and an underscore: two reasons to generate unnecessary URL variants | /cordless-drill-guide |
The third case deserves its own note, because it isn't always an obvious mistake. Capital letters and underscores don't break the page, but they do create a real problem: most servers treat /Cordless-Drill-Guide and /cordless-drill-guide as two different URLs, not the same one with different formatting. Depending on how the URL was built, that can quietly produce a duplicate that neither version was meant to have.
A short, clear slug also earns its keep somewhere no analysis tool ever checks: in a search result list, the URL sits visible right under the title, and anyone skimming it decides in a split second whether the click is worth it. A slug like /cordless-drill-review reads as trustworthy because it announces exactly what's waiting on the other end. A long string of IDs or parameters, by contrast, looks like a technical roll of the dice, even when the page behind it is genuinely good.
On trimming filler words, it's worth looking at this glossary's own pattern: every English slug on this site starts with "what-is-", as in "what-is-url-slug". That isn't an exception to avoiding filler, it's a deliberate, consistent convention across the whole site, one that signals the question-and-answer format of each article right in the URL. Avoiding filler means not adding terms that add nothing to a specific URL, not breaking a pattern the site itself keeps on purpose across every article.
