Website & SEO Guides

What Is a URL Slug? Definition, Examples, and Rules

ShareXFacebookLinkedIn
Glowing browser address bar made of abstract segments with the final segment highlighted in teal

A URL slug is the readable part of a web address that identifies one specific page. It is the text at the end of the URL, after the domain name and any folders. In https://ngepush.com/guides/what-is-a-url-slug/, the slug is what-is-a-url-slug.

Slugs are small, but they show up in the address bar, in search results, and in every link you share. This guide explains what a slug is, how it differs from a permalink or a full URL, what a good one looks like, and what to do before you publish.

What Is a URL Slug?

A slug is the final, page-specific segment of a URL path. It usually describes the page in a few words, written in lowercase with hyphens between them. WordPress, Shopify, and most other content management systems create one automatically from your page title, and let you edit it.

Take this address apart:

PartExampleWhat it is
Protocolhttps://How the browser connects
Domainngepush.comThe website
Folder (optional)/guides/A section of the site
Slugwhat-is-a-url-slugThe specific page

The homepage has no slug, because it sits at the root of the domain.

These three terms are often mixed up:

  • URL is the full web address, from https:// to the end.
  • Slug is only the last segment that identifies the page.
  • Permalink is the full, permanent URL of a page or post. The term is common in WordPress, where the slug is the editable part of the permalink.

If the permalink is https://ngepush.com/guides/what-is-a-url-slug/, the slug is what-is-a-url-slug.

Good and Bad Slug Examples

Page titleWeak slugBetter slug
How to Write Meta Descriptionsp=4821how-to-write-meta-descriptions
Word Count vs. Character CountWord_Count_vs_Character_Countword-count-vs-character-count
10 Best Tips for Writing Better Headlines10-best-tips-for-writing-better-headlines-for-your-blog-postsbetter-headlines

The weak versions are hard to read, hard to remember, or needlessly long. The better ones tell a person what the page is about before they click.

Why URL Slugs Matter

Readability. People see slugs in the address bar and in links shared by email or chat. A clear one builds trust, and a string of numbers or symbols does not.

Search engines. Google recommends using readable words in URLs rather than long ID numbers, and hyphens rather than underscores to separate words. Google’s URL structure guidance also notes that URL paths are case sensitive, so /Apple and /apple are treated as different addresses.

A small ranking signal, at most. In an October 2026 Google Search Central video, Gary Illyes described keywords in URLs as an extremely small signal that stops mattering once a page has real content, as summarized by PPC Land. A good slug helps people and keeps your site tidy, but it will not rescue weak content.

The Basic Rules for Writing a Slug

  • Describe the page in a few clear words.
  • Use lowercase letters, numbers, and hyphens.
  • Separate words with hyphens, not underscores or spaces.
  • Keep it short.
  • Avoid special characters and accented letters where you can.

For the full checklist, see how to write SEO-friendly URL slugs.

Where to Set the Slug in WordPress

In the WordPress editor, the slug lives in the URL or permalink field in the post or page settings. WordPress fills it in from your title, so a long title produces a long slug. Edit it before you publish, because the field is easiest to get right the first time.

Can You Change a Slug After Publishing?

Technically yes, but changing a published slug changes the page’s URL. Every old link, bookmark, and search result then points to an address that no longer exists unless you set up a 301 redirect from the old URL to the new one. That is why the safest approach is to choose a good slug before publishing and leave it alone afterward.

How to Create a Slug Quickly

You can write a slug by hand: take the title, shorten it to the key words, lowercase everything, and join the words with hyphens. Or paste your title into the Slug Generator, which turns any title into a clean slug you can copy straight into your editor.

Common Slug Mistakes

  • Leaving the automatic slug as is. Long titles create long, clumsy slugs.
  • Using underscores or spaces. Hyphens are the standard word separator.
  • Mixing upper and lower case. Since paths are case sensitive, stick to lowercase.
  • Including dates that go stale. A year in the slug makes content look outdated when you refresh it.
  • Changing slugs after publishing without redirects. This breaks links and loses traffic.

Conclusion

A URL slug is the short, readable name of a page at the end of its address. Keep it descriptive, lowercase, and hyphenated, set it before you publish, and leave it unchanged afterward.

Frequently Asked Questions (FAQ)

What is a URL slug in simple terms?

It is the last part of a web address that names a specific page, such as what-is-a-url-slug in ngepush.com/guides/what-is-a-url-slug/.

What is the difference between a slug and a permalink?

The permalink is the full, permanent URL of a page. The slug is the editable final segment of that permalink.

Does the URL slug affect SEO?

Only 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 a slug include the date or category?

Usually not. Dates make content look old, and categories in the URL change the address if you ever move the page.

Can I use capital letters in a slug?

You can, but you should not. URL paths are case sensitive, so mixed case can create duplicate or broken addresses. Use lowercase.

Scroll to Top