From headline to clean URL slug
A slug is the human-readable part of a URL that comes after your domain and folders, the piece that names the specific page. Type a headline or a phrase into this slug generator and it will slugify it into a clean slug: lowercased, spaces turned into hyphens, accents flattened, punctuation stripped, and anything that would break or clutter a URL removed. You paste a title, you copy a slug, and you drop it into your CMS.
The reason this is worth a dedicated tool rather than guessing by hand is that a slug is one of the few SEO elements that is genuinely hard to change later. Once a page is indexed, ranking, linked to from other sites, and bookmarked by readers, editing the slug means setting up a redirect and risking a temporary ranking dip. Getting the slug right the first time is cheaper than fixing it the tenth.
The conversion rules applied to your title
Several transformations happen in sequence. Everything is lowercased, because URLs are case-sensitive on most servers and a stray capital can create a duplicate-content twin of the same page. Spaces and underscores become hyphens, which Google treats as word separators while it reads underscores as joiners that glue words together. Accented and non-English characters are transliterated to their closest plain equivalents so the URL stays readable and does not turn into a wall of percent-encoded gibberish.
Punctuation, ampersands, slashes, question marks, and emoji are removed, because each of those either has a special meaning inside a URL or simply has no business in one. Multiple hyphens in a row are collapsed into one, and any leading or trailing hyphen is trimmed, so you never end up with the ragged double-dash slugs that come from sloppy find-and-replace.
Trimming a slug down to the words that matter
A good slug is short, descriptive, and built around the words people actually search for. After the tool cleans your title, your job is to shorten it. Titles are written to be catchy; slugs should be written to be specific. Drop filler words like a, the, and, of, to, and for unless removing them makes the slug confusing. The goal is the smallest set of words that still tells a human and a crawler exactly what the page is.
Aim to keep the meaningful keyword near the front. Search engines and readers both scan the start of a URL first, and a slug that opens with your core term reads as more relevant than one that buries it behind three stop words. Three to five words is a comfortable target for most pages; long slugs that run to ten or twelve words look spammy and get truncated in search results and link previews.
Dates, stuffing and underscores: slugs that age badly
The first is dates and volatile numbers baked into the slug. Putting 2026 or a price in the URL guarantees the slug looks stale the moment the year turns or the price changes, and you cannot update it without a redirect. Keep dates in the page content where you can edit them freely, not in the permanent address.
The second is keyword stuffing the slug, repeating the same term twice or three times in the hope of a ranking boost. It does the opposite: it reads as manipulative to both users and search engines. One clear occurrence of the keyword is all a slug needs. The third is using underscores instead of hyphens, a habit carried over from filenames and code; in URLs, hyphens are the word separator search engines understand.
The fourth, and the sneakiest, is letting your CMS auto-generate slugs from full titles without review. WordPress and most platforms will turn a forty-character headline into a forty-character slug, special characters and all. Running the title through a generator and trimming it gives you a deliberate slug instead of an accidental one.
Hyphens, length, and the small choices that add up
A few mechanical choices separate a slug that ages well from one that does not. Use hyphens, never underscores or spaces, because hyphens are the only word separator search engines reliably split on. Keep everything lowercase to dodge the case-sensitivity trap, where the same page is reachable at two casings and looks like duplicate content. Never use spaces, which become ugly percent-twenty escapes, and avoid special characters that have to be encoded to survive a URL.
Length is a judgment call rather than a hard rule. Shorter slugs are easier to read, type, and share, and they survive truncation in search results and link previews better. But do not amputate meaning to save a word; a slug that is clear at five words beats one that is cryptic at two. The discipline is to remove words that carry no information, the stop words and the filler, while keeping every word that helps a reader understand the page at a glance.
Numbers deserve special care. A slug that bakes in a year, a price, a quantity, or a step count locks the URL to a moment in time. The day that number changes, you are stuck choosing between a misleading URL and a redirect. Keep volatile numbers in the page body, where editing them is free, and reserve the slug for the stable description of what the page is.
Slugs, site structure, and internal linking
A slug never lives in isolation; it sits at the end of a path made of folders. A clean slug on a messy path still produces a messy URL. Think about the whole address: a logical folder structure plus a tight slug reads like a breadcrumb trail that tells a reader where they are in your site before the page even loads. That clarity also helps Google build its understanding of how your pages relate. The URL SEO Checker grades a full address, path and all.
Consistent slug conventions across a site compound over time. When every blog post, product, and category follows the same lowercase, hyphenated, keyword-first pattern, your URLs become predictable, easy to link to internally, and easy to audit at scale. Inconsistency, a mix of underscores here and capitals there, is the kind of debt that is invisible on day one and painful to untangle on day five hundred.
Why slugs matter for AI search and link sharing
AI search engines and chat assistants surface URLs as citations, and a descriptive slug is a tiny but real trust signal. A link that ends in a readable phrase tells a user, before they click, that the page is about what they asked. A link that ends in a random string of letters and numbers tells them nothing and looks like something to be wary of. Readable URLs get clicked and shared more, and that engagement feeds back into how often your page gets surfaced.
The same applies on social platforms and in messaging apps where the raw URL is often visible alongside the link preview. A clean slug is free advertising for the page; a noisy one undercuts an otherwise good headline. Because slugs are permanent, the small effort of generating a good one pays off every single time the link is shown for the life of the page.
Editing a slug after the page is already live
Once a page is published and indexed, its slug stops being a free choice and becomes a commitment. Other sites link to that exact URL, readers bookmark it, and search engines have stored it. Changing it without care breaks every one of those connections and can wipe out the ranking the page has earned. The rule is simple: do not change a live slug unless the benefit clearly outweighs the disruption, and never change one casually to tidy up wording.
When a change is genuinely warranted, a misspelled slug, a rebrand, a restructured section, do it properly. Put a permanent 301 redirect from the old URL to the new one so people and crawlers following the old link arrive in the right place and the page's authority transfers across (our redirects guide explains when to use 301 versus 308). Update your internal links to point at the new slug directly so future visits skip the redirect. Done this way, a slug change is safe; done carelessly, it is one of the easier ways to lose traffic overnight.
Changing a slug on WordPress, Shopify or your own server
The example shows a typical cleanup: a headline-length slug with a year and a number trimmed to the three words that matter, followed by the 301 redirect that keeps the old address working. Pick the form that matches where your site runs; you only need one of them.
Title: "The 10 Best Trail Running Shoes for Beginners in 2026!"
Before: /blog/the-10-best-trail-running-shoes-for-beginners-in-2026
After: /blog/trail-running-shoes-beginners
# Nginx: send the old slug to the new one permanently
location = /blog/the-10-best-trail-running-shoes-for-beginners-in-2026 {
return 301 /blog/trail-running-shoes-beginners;
}
# Apache (.htaccess)
Redirect 301 /blog/the-10-best-trail-running-shoes-for-beginners-in-2026 /blog/trail-running-shoes-beginners
# Cloudflare: Rules > Redirect Rules > Single Redirect
# When URI path equals /blog/the-10-best-trail-running-shoes-for-beginners-in-2026
# Then static redirect to /blog/trail-running-shoes-beginners, status 301WordPress
Edit the slug in the post's URL or permalink field before publishing. For a live post, WordPress remembers the old slug and usually redirects it, but that does not cover every case (pages, changed parent paths, or a changed permalink structure), so add an explicit 301 with the redirect manager in Rank Math or Yoast SEO Premium, or with the free Redirection plugin.
Shopify
Product, collection, page and blog URLs are set in the "Search engine listing" section as the URL handle. When you change the handle of a published item, keep the box ticked that creates a redirect from the old URL. Shopify adds it to the URL redirects list under Navigation, where you can also add redirects by hand. Shopify fixes the folder part (such as /products/), so only the last part of the path is yours to choose.
Nginx, Apache and Cloudflare
On a custom site, add one exact-match rule per changed slug as shown above, or use a redirect rule at the edge with Cloudflare so the request never reaches your server. For more than a handful of changes, our Redirect Rule Generator writes the rules for you, and the Redirect Chain Checker confirms each old URL lands on the new one in a single hop.
Publishing the new slug without collisions
Paste the slug into your CMS before you publish, while the page is still a draft and changing the URL costs nothing. Double-check it does not collide with an existing page; two pages fighting over a similar slug is a duplicate-content headache. If your platform appended a number to make it unique, that is a sign the slug is too generic, so make it more specific rather than accepting the numbered version.
If you are changing the slug of a page that is already live, do not just rename it. Set up a 301 redirect from the old URL to the new one so the links, bookmarks, and ranking equity pointing at the old address follow you to the new one. Then update your own internal links to point directly at the new slug, so visitors and crawlers skip the redirect hop entirely on future visits.