Website & SEO Guides

How to Write SEO-Friendly URL Slugs: 8 Simple Rules

ShareXFacebookLinkedIn
A short path of glowing tiles joined by dashes in front of a long tangled string of dim tiles

An SEO-friendly URL slug is short, descriptive, lowercase, and separated by hyphens, for example how-to-write-meta-descriptions. It tells people and search engines what the page is about, and it should never change once the page is live. The rules below take about a minute to apply, and they save you from broken links later.

Keep one thing in perspective: slugs are a small signal. Google’s own guidance favors readable URLs, but its staff have described keywords in URLs as an extremely small ranking factor once a page has real content. Treat a good slug as clean housekeeping, not as an SEO trick. If you are new to the term, start with what a URL slug is.

Last checked in November 2026. Search engine guidance can change, so the rules here focus on practices that have stayed stable.

Rule 1: Describe the Page in Plain Words

Use readable words that match what the page covers. Google recommends simple, descriptive words in URLs instead of long ID numbers or codes.

AvoidPrefer
/post?id=4821/how-to-resize-images-for-instagram
/page-2-final/qr-code-size-guide

Rule 2: Use Lowercase Letters

URL paths are case sensitive, so /Meta-Tags and /meta-tags are different addresses. Mixed case invites duplicate pages and broken links. Use lowercase everywhere.

Rule 3: Separate Words with Hyphens

Use hyphens (-) between words, not underscores (_) or spaces. Google recommends hyphens because they make it easier for people and search engines to pick out the individual words. Write url-slug-rules, not url_slug_rules.

Rule 4: Keep It Short

Google does not set an exact limit, but short slugs are easier to read, remember, and share. Aim for roughly three to six words that capture the topic. Long slugs that repeat the entire title look cluttered, and they are cut off in many places where links are displayed.

Rule 5: Drop Filler Words, but Keep It Readable

Words such as “a,” “the,” “of,” and “and” can often go. Remove them only when the slug still reads naturally. how-to-write-meta-descriptions is clear. write-meta-descriptions is also clear and shorter. Do not cut so far that the meaning disappears.

Rule 6: Avoid Dates and Numbers That Go Stale

A year in the slug makes content look outdated the moment you refresh it, and you cannot change the slug without breaking the URL. Keep the date in the title or the body, where you can update it freely. Evergreen slugs such as social-media-character-limits stay accurate for as long as the page exists.

Rule 7: Skip Special Characters and Accents

Stick to letters, numbers, and hyphens. Characters outside plain ASCII have to be percent-encoded in links, which produces long strings of symbols such as %C3%A9 when shared. If your language uses accents, many sites simply use unaccented equivalents in the slug.

Rule 8: Set It Once and Do Not Change It

This is the most important rule. Changing a published slug changes the page’s URL. Every existing link, bookmark, and search result then points to an address that no longer works, unless you add a 301 redirect from the old URL to the new one. Even with a redirect, a change adds risk and effort. Pick the slug carefully before you publish.

Before and After: Examples

TitleSlug WordPress might generateBetter slug
How to Write Effective Meta Descriptions (With Examples)how-to-write-effective-meta-descriptions-with-exampleshow-to-write-effective-meta-descriptions
Open Graph Image Size: Best Dimensions for Every Platformopen-graph-image-size-best-dimensions-for-every-platformopen-graph-image-size
What Is an Open Graph Image? (OG Image Explained)what-is-an-open-graph-image-og-image-explainedwhat-is-an-open-graph-image

In each case the better slug keeps the main topic and drops the extra detail from the title.

Should You Put Keywords or Categories in the Slug?

Include your main keyword if it fits naturally, because it describes the page. Do not stuff extra keywords into the slug. As for categories, putting them in the URL means the address changes if you ever move the page to a different category. Many sites avoid that by keeping the slug about the page itself.

How to Create a Clean Slug Fast

  1. Take your page title.
  2. Remove the extra words and details that are not essential.
  3. Lowercase everything and join the words with hyphens.
  4. Read it aloud. If it sounds like a clear label for the page, you are done.

To skip the manual steps, paste your title into the Slug Generator and copy the result into your editor. Slugs are one part of on-page SEO, along with effective meta descriptions, a clear title, and a good share image.

Common Mistakes

  • Keeping the automatic slug. WordPress copies the whole title by default, so edit it.
  • Keyword stuffing. Repeating terms in the slug makes it look spammy and gains nothing.
  • Including the year. It dates the page and cannot be updated.
  • Changing the slug after publishing. Without a redirect, you lose links and traffic.
  • Using different slug styles across the site. Be consistent so your URLs look uniform.

Conclusion

A good slug is short, descriptive, lowercase, and hyphenated, with no stale dates and no special characters. Write it before you publish and leave it alone afterward. It will not make a weak page rank, but it keeps your URLs clean, readable, and stable.

Frequently Asked Questions (FAQ)

What is the best length for a URL slug?

There is no official limit. A practical target is about three to six words that describe the page, kept as short as clarity allows.

Do URL slugs affect SEO?

Slightly. Readable slugs help people and search engines understand a page, but Google has described keywords in URLs as a very small signal compared with the page content.

Should I use hyphens or underscores in a URL slug?

Hyphens. Google recommends them for separating words in URLs, and they are the common standard across the web.

Should I remove stop words from a slug?

You can remove filler words such as “a” and “the” when the slug still reads clearly. Keep them if removing them makes the slug confusing.

Can I change a URL slug after publishing?

You can, but it changes the page’s URL and breaks existing links unless you add a 301 redirect. It is best to get the slug right before publishing.

Scroll to Top