URL Slugs for SEO: Best Practices (With Examples)
A good URL slug is three to five words, all lowercase, separated by hyphens, and describes exactly what the page covers — like /url-slug-best-practices/ instead of /post?id=8817. Slugs will not carry your rankings alone, but they shape click-through rate, sharing, and how Google reads your page.
What Makes a Good URL Slug
The slug is the part of the URL after the domain that identifies one page: in https://example.com/blog/fix-slow-wordpress/, the slug is fix-slow-wordpress. Google's own documentation on URL structure says simple, readable URLs help users decide whether to click, because the slug often shows in the search result above the title.
Compare the same article written three ways:
| Slug | Words | What a searcher sees | Verdict | |---|---|---|---| | /p?id=8817 | 0 | Meaningless | Fails: no keywords, no context | | /blog/2026/11/the-ultimate-complete-guide-to-everything-you-need-to-know-about-fixing-slow-wordpress-sites-in-2026 | 20 | Truncated to "...everything-you-ne" | Fails: stuffed and bloated | | /fix-slow-wordpress/ | 3 | Clear topic at a glance | Works: short, readable, keyworded |
Two data points worth memorizing. First, Google truncates URLs in search results at roughly 60 characters of display width, so the meaningful part of a long slug gets cut off exactly where the reader looks. Second, shorter slugs rank on par or better in most correlational studies simply because they correlate with focused pages — a 3-word slug forces you to commit to one topic, while a 20-word slug usually signals a page trying to rank for everything.
The rules that follow from the table:
- Lowercase only. Some servers treat /Guide/ and /guide/ as two different pages, splitting your signals across duplicates.
- Hyphens, not underscores. Google treats a hyphen as a word separator; an underscore glues words together, so fix_slow_wordpress reads as one token.
- No dates, no stop-word padding, no filler. Dates force you into redirects every time you update the post, and words like "the", "and", "a" only lengthen the URL.
- ASCII characters. Translated slugs with accents or non-Latin scripts often get percent-encoded into strings like %E6%95%99%E7%A8%8B that nobody can read, remember, or paste cleanly into a chat.
How to Write a URL Slug, Step by Step
Step 1: Start from the target keyword. Take the primary keyword your page targets. For an article targeting "fix slow WordPress", the raw material is already there — you are shaping, not inventing.
Step 2: Cut to the essential words. Drop articles, prepositions, and adjectives that do not change the meaning. "The Ultimate Guide to Fixing a Slow WordPress Site" becomes fix-slow-wordpress. Aim for three to five words; if you cannot get under six, the page is probably covering two topics and needs splitting.
Step 3: Normalize the casing. Convert everything to lowercase and replace spaces with single hyphens — no double hyphens, no leading or trailing hyphens. A quick way to check your title converts cleanly is to run it through Utilvy's Case Converter, which turns any title into lowercase kebab-case in one click and doubles as a preview of what the slug will look like.
Step 4: Check the length. Keep the whole slug under about 60 characters so nothing is truncated in search results. If you are also optimizing the title tag, paste both into a character counter — Utilvy's Word Counter shows character counts instantly, so you can confirm the title stays near 60 characters and the slug well under it.
Step 5: Match the slug to the H1. The slug should be a compressed version of the page headline. If the slug and the H1 tell different stories, either the page has drifted from its plan or the slug is stale — fix one of them before publishing.
Step 6: Never reuse a slug. Even after you delete or rework an old page, its slug may be indexed, bookmarked, and linked from other sites. Retire slugs permanently rather than recycling them for unrelated content.
Frequently Asked Questions
Do keywords in the URL slug improve rankings?
Only marginally. Google has confirmed that keywords in URLs are a very lightweight signal — a plain URL with no keyword can outrank a keyworded one if the content is better. The real value is indirect: a readable slug raises click-through rate in search results and gets quoted correctly when people link to your page. Write slugs for humans first; the SEO benefit follows.
I already published a page with a bad slug. Should I change it?
Yes, but only with a redirect. Change the slug, then set up a 301 redirect from the old URL to the new one so visitors and search engines land in the right place. Google treats the 301 as a forwarding signal and transfers most of the old page's standing over time. Expect some ranking fluctuation for a few weeks; changing slugs on high-traffic pages is worth doing once, carefully, and then leaving alone.
Are short slugs always better?
Shorter is generally safer, but clarity beats brevity. A four-word slug that clearly states the topic beats a two-word slug that is vague. The practical ceiling is around 60 characters before truncation, and the practical floor is whatever makes the page identifiable on its own — a slug like /guide/ or /article1/ is short but tells the reader and Google nothing.
Make It Automatic
Slug writing becomes easy once it is a habit: pick the keyword, cut the filler, lowercase with hyphens, verify the length, ship. When you are preparing the next batch of posts, paste your working titles into Utilvy's free Case Converter to turn them into clean, lowercase slugs instantly, and use the Word Counter to keep titles and slugs inside the limits that search results actually display.