If you have ever wondered what is a URL slug, compare these two addresses for the same article:
example.com/index.php?id=4827&cat=12example.com/blog/how-to-compress-a-pdf
The second tells you exactly what the page is about before you click. That descriptive final part is the slug. This guide explains why it matters and how to write a good one. Here is a practical guide for bloggers, shop owners and developers.
The definition
A slug is the part of a URL that identifies a specific page in human-readable words. In https://example.com/blog/what-is-a-sitemap, the slug is what-is-a-sitemap. WordPress calls the full address a permalink, and lets you edit the slug for every post and page.
Why good slugs matter
- Readability: people are more likely to click a link they understand, especially when it is shared in WhatsApp or email.
- SEO: a relevant word or two in the URL is a small but useful signal, and Google sometimes shows the URL path in results.
- Trust: clean, readable URLs look professional; long strings of numbers and symbols look spammy.
- Memorability: short slugs are easier to type and remember.
Rules for SEO-friendly URLs
- Use lower case. Some servers treat /Blog and /blog as different pages.
- Separate words with hyphens. Google recommends hyphens rather than underscores or spaces.
- Keep it short and descriptive – usually three to six words.
- Include the main keyword naturally.
- Remove special characters such as ?, &, %, # and accented letters.
- Drop filler words where the meaning stays clear ("the", "and", "of").
- Avoid dates and numbers that will age, such as /best-phones-2024, unless the content truly is time-specific.
Examples
-
Title: "10 Easy Ways to Make Your Website Load Faster in 2026" Poor slug:
/10-easy-ways-to-make-your-website-load-faster-in-2026Better slug:/make-website-load-faster -
Title: "Café Menu Prices & Opening Hours" Poor slug:
/caf%C3%A9-menu-prices-&-opening-hoursBetter slug:/cafe-menu-prices
Changing slugs on existing pages
Be careful. If a page already has traffic or links, changing its slug creates a new URL. Always add a 301 redirect from the old address to the new one – see what is a 301 redirect – and update internal links and your sitemap.
Generate clean slugs instantly
The free Slug Generator turns any title into a clean slug: lower case, hyphens, accents converted and special characters removed. It is handy for blog posts, product pages and developers creating URLs in code.
While you are polishing the page:
- Set a strong title and description with the Meta Tag Generator
- Choose the preferred URL version with the Canonical URL Generator – read what is a canonical URL
- Fix capitalisation in headings with the Case Converter
Frequently asked questions
Should the slug match the title exactly? No. It should reflect the topic and keyword, but it can be shorter than the title.
Do slugs need to include the category? Not necessarily. Shorter URLs without deep folders are easier to manage and share.
Are uppercase letters bad? They are not penalised, but lower case avoids duplicate-URL problems and looks cleaner.
Can slugs use other languages? Yes, but non-Latin characters are encoded in links and can look messy when shared. Many sites use transliterated Latin letters.
Summary
So, what is a URL slug? The readable part of an address that identifies a page. Keep it lower case, hyphenated, short and descriptive with your main keyword, and redirect old slugs when you change them. Create clean slugs in one click with the free Slug Generator.