Text Tools

What Is a URL Slug – and How to Write SEO-Friendly URLs

The slug is the readable end of a web address. A clean one helps people trust and remember your link, and helps search engines understand the page.

In this article
  1. What a slug is
  2. Rules for good slugs
  3. Examples
  4. How to generate slugs
  5. Should I change an existing slug?
  6. Slugs for categories and products
  7. Slugs in non-English languages
  8. Slugs are one small part of SEO

What a slug is

In example.com/blog/how-to-bake-bread, the slug is how-to-bake-bread. It identifies one page within your site. WordPress, Shopify and most website builders create a slug automatically from the title, but the automatic version is often too long or full of filler words.

Slug GeneratorTurn blog titles and product names into clean URL slugs. Removes accents and symbols, optional stop-word removal and max length. Bulk friendly.
Open the free tool

Rules for good slugs

  • Use lowercase letters, numbers and hyphens only.
  • Use hyphens, not underscores. Google’s own URL guidance recommends hyphens to separate words; underscores can make words run together.
  • Keep it short and descriptive – 3 to 6 words is usually enough.
  • Include the main topic words people would search for.
  • Leave out dates unless the page is truly about a date; “best-phones” stays useful longer than “best-phones-2026”.
  • Avoid accents and symbols. “Crème brûlée” becomes creme-brulee.

Examples

TitlePoor slugGood slug
10 Easy Ways to Save Money on Groceries in 2026!10-easy-ways-to-save-money-on-groceries-in-2026save-money-on-groceries
What Is a VAT Invoice & How Do I Make One?what-is-a-vat-invoice-how-do-i-make-onevat-invoice
Café Menu – Winter Specialscaf%C3%A9-menucafe-winter-menu

How to generate slugs

  1. Paste a title (or many, one per line) into the Slug Generator.
  2. Choose whether to remove stop words like “the”, “a” and “of”.
  3. Set a maximum length – the tool trims at word boundaries so words are not cut in half.
  4. Copy the slug into your CMS.

Symbols are handled sensibly: “&” becomes “and”, “%” becomes “percent”, and accents are removed.

Should I change an existing slug?

Changing the slug of a published page breaks every link to it – from other sites, social posts and bookmarks – unless you add a redirect. Only change slugs when there is a clear benefit, and always set up a 301 redirect from the old address. On WordPress many SEO plugins do this automatically; on Apache servers, the .htaccess Redirect Generator writes the rules for you.

Slugs for categories and products

Online shops benefit from consistent patterns: /category/product-name, with the product name kept short and free of sizes or colours that change. For variants, use one page with options rather than a new slug for each colour. Category slugs should be plural nouns people search for, such as mens-shoes or school-bags, not internal codes.

Slugs in non-English languages

Search engines handle URLs in any language, but non-Latin characters are converted to long percent codes when copied, such as %D8%A7. For sharing, a short transliterated or English slug is usually tidier, even if the page itself is in Urdu or Arabic.

Slugs are one small part of SEO

A good slug helps, but titles, content and links matter far more. Pair your slug with a strong title and description using the Meta Tag Generator, and check the full address with the URL Parser if it contains tracking parameters.

Slug GeneratorTurn blog titles and product names into clean URL slugs. Removes accents and symbols, optional stop-word removal and max length. Bulk friendly.
Open the free tool
Keep reading

Related articles

All articles
Text

Title Case, Sentence Case, camelCase and More – When to Use Each

Capital letters change how professional text looks, and in code they can break things. Here is a practical guide to every common case style.

3 min read
Dev

URL Encoding Explained – Why Spaces Become %20

Paste a link with spaces, “&” or Urdu text and it can break. URL encoding fixes this by turning special characters into safe % codes.

3 min read
Web

The Meta Tags That Still Matter for SEO – and the Ones That Don’t

Old SEO advice lists dozens of meta tags. Only a handful affect how your pages appear in search today. Here is what to set, and what to skip.

3 min read