Skip to content
SERP TimesSERP Times

Loading languages…

Machine translation by Google Translate. It can be wrong, so the English articles are the originals. Your choice is saved in a cookie on this device.

    Type at least two letters to search news and guides.

    to open · ↑↓ to move · Esc to close

    SEOGuide

    What Is a URL Slug? Examples and SEO Best Practices

    A URL slug is the readable part of a web address that names one page, like keyword-stuffing in serptimes.com/keyword-stuffing/. Here's how to write good ones, based on Google's own URL guidelines.

    By

    Published 6 min read

    The URL Slug Generator turning three post titles into short slugs such as how-choose-dentist-austin-7-questions-ask-before-book
    On this page

    What is a URL slug? It's the part of a web address that names one specific page, usually the last part of the path. In https://serptimes.com/keyword-stuffing/, the slug is keyword-stuffing. A good slug is short, readable and lowercase, with hyphens between the words.

    A slug tells people, and search engines, what's at an address before they click. This guide shows where the slug sits in a URL, what Google's URL guidelines say, how to write one and what to do if you need to change it.

    Where the slug sits in a URL

    Here's a full URL from a made-up Shopify store that ships across the US, broken into its parts:

    https://www.examplestore.com/products/waterproof-hiking-boots?color=brown#reviews
    PartValueWhat it does
    Protocolhttps://How the browser connects
    Domainwww.examplestore.comThe website
    Path/products/waterproof-hiking-bootsWhere the page sits on the site
    FolderproductsGroups related pages
    Slugwaterproof-hiking-bootsNames this one page
    Query string?color=brownOptions or tracking, not part of the slug
    Fragment#reviewsJumps to a section of the page; not part of the slug

    A few more examples:

    SiteURLSlug
    Dentist in Austinaustinsmiles.example/services/teeth-whitening/teeth-whitening
    News siteserptimes.com/november-2026-core-update/november-2026-core-update
    Home pageexample.com/None: the home page has no slug
    • URL: the full address, from https:// to the end.
    • Slug: the part that names one page.
    • Permalink: WordPress's word for a page's permanent URL. The slug is one part of it.
    • URL handle: Shopify's word for the slug of a product, collection or page, as in /products/<handle>.

    Different platforms, same idea.

    What Google says about URLs

    Google's URL structure guidelines are short and specific:

    • Use readable words, not long ID numbers. Google's recommended example ends in /wiki/Aviation; its counterexample is a long index.php?topic=42&area=... string.
    • Use hyphens to separate words. Google recommends hyphens (-) over underscores (_), and it advises against running words together, as in greendress.
    • Use your audience's language. For US readers, that's plain American English words.
    • Remember that case matters. Google's URL handling is case sensitive, so /APPLE and /apple are different URLs. If your server treats them the same, pick one case (lowercase is the convention).
    • Don't use fragments to change content. Google generally doesn't support content that loads based on a # fragment.
    • Trim unnecessary parameters that don't change the content.

    On rankings, Google's SEO Starter Guide is blunt: the keywords in a domain name or URL path alone have hardly any effect beyond appearing in breadcrumbs. Google can show parts of the URL as a breadcrumb in search results, and it learns breadcrumbs from the words in the URL. So a slug is mainly for the person deciding whether to click, or reading a link someone shared.

    How to write a good URL slug

    Google's rules above are the foundation. These habits make slugs better in practice (they're our recommendations, not Google requirements):

    1. Describe the page in a few words. Three to five meaningful words is plenty for most pages: fix-leaky-faucet or teeth-whitening-cost.
    2. Use lowercase letters, numbers and hyphens only. No spaces, underscores, capital letters or symbols.
    3. Drop filler words when meaning survives. The, a, and and of rarely add anything. Keep a small word if removing it changes the meaning, as in to-do-list, or makes the slug awkward.
    4. Leave out dates on evergreen pages. /best-coffee-shops-austin/ can be updated every year. /best-coffee-shops-austin-2026/ needs a new URL and a redirect in 2027. Keep the year only when the page is about that year, such as a report on a specific Google update.
    5. Don't stuff keywords. /plumber-dallas-emergency-plumber-dallas-tx/ reads as spam. Our guide to keyword stuffing explains why repetition doesn't help.
    6. Make it stable. Choose the slug before publishing and keep it.
    Instead ofUse
    /p?id=4821/waterproof-hiking-boots/
    /Blog/Black_Friday_Email_Tips//blog/black-friday-email-tips/
    /the-10-best-and-most-affordable-tax-preparation-services-in-houston-texas-for-2026//tax-preparation-houston/
    /services/teethwhitening//services/teeth-whitening/

    Should you change an existing slug?

    Only for a good reason, such as a misleading slug, a typo or a URL full of IDs. Changing a slug changes the URL, so links to the old address break unless you redirect them.

    If you do change one, follow Google's guidance on moving URLs:

    1. Add a permanent server-side redirect (301 or 308) from the old URL to the new one. Google says these redirects don't cause a loss in PageRank.
    2. Keep the redirect in place for a long time, generally at least a year.
    3. Update your internal links to point straight at the new URL.
    4. Update your sitemap so it lists the new URL.

    Most platforms help. Shopify offers to create a redirect from the old handle when you edit a collection's or page's URL handle, and WordPress lets you edit a slug in the post settings sidebar (redirects need a plugin or a server rule). After the change, use our Redirect Checker to confirm the old URL returns a single 301 to the new one. Our guide to the 302 redirect explains why a temporary redirect is the wrong choice for a permanent slug change.

    How to create slugs with our URL Slug Generator

    Our URL Slug Generator turns titles into clean slugs:

    1. Type or paste a title. For several slugs at once, put one title per line (up to 200).
    2. Choose whether to Remove filler words (the, and, to…) and set a Max length (60 characters by default).
    3. Check each slug and the example URL under it, which also shows the length in characters.
    4. Copy one slug, or use Copy all for a list.

    Here's what it produced for four titles with filler words removed:

    TitleSlug
    How to Recover From a Google Core Update in 2027how-recover-google-core-update-2027
    10 Best Coffee Shops in Austin, Texas (2026 Guide)10-best-coffee-shops-austin-texas-2026-guide
    Café Menu & Prices – Summer Specialscafe-menu-prices-summer-specials
    What Is a URL Slug? A Plain-English Guidewhat-url-slug-plain-english-guide

    Two things to notice. Accents are simplified (café becomes cafe), and & is spelled out as "and" before filler words are removed. And the filter is literal: what-url-slug lost the word "is," which is why this page's slug is what-is-a-url-slug. Read every slug before you use it, and add back a word if the meaning suffers. The generator keeps how, best and numbers, since those usually carry meaning, and it never drops a year for you, as the coffee shop example shows.

    What it doesn't do: it doesn't check whether a slug is already used on your site, it can't add redirects, and it doesn't know your CMS's rules (some platforms add their own folder, such as Shopify's /products/). Letters from other scripts, such as Japanese, are kept as typed; your platform encodes them in the final URL.

    Sources

    Frequently asked questions

    Should a URL slug include the target keyword?

    Include it if it describes the page, because people read the URL. Don't count on it for rankings: Google's SEO Starter Guide says keywords in a URL path have hardly any effect beyond appearing in breadcrumbs. Never repeat a keyword in a slug.

    What is a slug in WordPress?

    It's the editable part of a post or page URL. WordPress creates it from the title, and you can change it in the post settings sidebar before you publish. It only appears in the URL when your permalink setting uses it, as the Post name setting does.

    Can two pages have the same slug?

    Not at the same address. Pages in different folders can share one, such as /blog/pricing/ and /docs/pricing/. In WordPress, if a slug is taken (even by a post in the trash), WordPress adds -2 to the new one.

    What characters can a URL slug contain?

    Lowercase letters, numbers and hyphens are the safest choice. Letters outside the basic ASCII range, such as é or Japanese characters, work too, but Google's URL guidelines say they should be percent-encoded in the actual URL. Avoid spaces, underscores and symbols such as & or ?.

    Share

    X (opens in a new tab)LinkedIn (opens in a new tab)WhatsApp (opens in a new tab)

    About the author

    Akif Qureshi

    SEO specialist and founder of SERP Times · 2+ years in SEO

    Akif Qureshi has worked in SEO for more than two years, auditing sites, planning content and tracking how Google updates change real traffic. He started SERP Times to report search changes clearly and to say exactly what site owners should do about them.

    Certifications

    • Google Analytics (Google)
    • Google Ads Search (Google)
    • HubSpot
    • Digital Vidya
    • DSIM
    • Internship Studio

    Connect with Akif on LinkedIn, Instagram and Facebook.

    More SEO guides