function slugify(input) {
return input
.normalize('NFKD')
.replace(/[\u0300-\u036f]/g, '')
.toLowerCase()
.replace(/[^a-z0-9]+/g, '-')
.replace(/^-+|-+$/g, '')
.replace(/-{2,}/g, '-');
}
slugify('Café Crème — URL Slugs');
// cafe-creme-url-slugs
SEO Slug Generator for Clean, Rankable URLs
Turn a title or target query into a readable permalink, then check length, separator health and the complete URL before you publish.
https://example.com/your-slug-here
ToolGuest URL Slug Generator is a free, zero-ad, 100% client-side SEO and developer tool that converts page titles and strings into clean, hyphenated URL slugs. It strips accents and stop words, previews the full URL and runs in under 50ms offline with zero server uploads.
Copy the same slug rules into JavaScript or Python
Use the browser when you need one slug; use these snippets when the conversion belongs in a build script, a CMS hook or an API. Both follow the same order: normalise accents, lowercase, replace non-alphanumerics, filter stop words and trim at a word boundary.
import re
import unicodedata
def slugify(value: str) -> str:
value = unicodedata.normalize('NFKD', value)
value = value.encode('ascii', 'ignore').decode('ascii')
value = re.sub(r'[^a-zA-Z0-9]+', '-', value).strip('-').lower()
return re.sub(r'-{2,}', '-', value)
print(slugify('Café Crème — URL Slugs'))
# cafe-creme-url-slugs
Built like a product, not a form
Every control you need to produce production-ready permalinks.
Multi-separator engine
Hyphens, underscores, slashes, dots or any custom delimiter.
Accent & script normalizer
é→e, ñ→n, ü→u. Cyrillic and Greek transliterated automatically.
SEO stop-word filter
Strip a, an, the, and, or — shorter, punchier URLs.
Live SERP preview
See exactly how your slug renders in Google results.
Bulk + CSV import
Paste a hundred headlines or drop a file — convert all in one shot.
Copy, export, history
Copy the slug or URL, export .txt / .csv, keep a private history.
What is an SEO slug generator?
SEO Slug Generator is a free ToolGuest tool that turns a page title into a keyword-led, hyphenated URL. It removes filler words, checks slug length and separator health, previews the complete URL and runs entirely in the browser with zero ads, zero uploads and no signup.
An SEO slug generator is not a keyword-stuffing machine. It is a decision aid: it shows the shortest readable version of a page's topic, then checks whether that version fits a search result, a mobile screen and a CMS permalink field without becoming cryptic.
The useful work happens before publication. Once a URL is indexed and shared, changing it means redirects, updated links and a waiting period. This page helps you choose a slug that can survive a title rewrite, a content refresh and a change of year.
SEO slug decisions: weak vs. recommended
The right slug depends on search intent. A comparison page, a local service page and a tutorial should not share the same naming formula.
| Page intent | Weak slug | Recommended SEO slug | Why |
|---|---|---|---|
| Informational: React performance | best-react-tips-2026-updated | react-performance-guide | Drops the count, year and editorial suffix; reads as an evergreen guide |
| Commercial: wireless headphones | buy-our-amazing-headphones-now | wireless-headphones | Matches the product query without sales language or filler |
| Local: plumber in Leeds | plumber-in-leeds-uk-24-7 | plumber-leeds | Short, location-led and stable if opening hours change |
| Definition: URL slug | what-is-a-url-slug-and-why-it-matters | url-slug-guide | Leads with the entity and removes the question wrapper |
How to choose the keyword for an SEO slug
Start with the query the page is trying to answer, not with the headline the copywriter chose. If the title is “The Ultimate Guide to Faster React Apps in 2026”, the search intent is probably react performance. The slug should say that in the fewest words that remain specific.
Put the primary phrase near the front. A slug such as react-performance-guide is easier to scan than guide-to-improving-react-application-performance. Avoid repeating the same word in different forms, and do not include the brand name unless the page is about the brand.
URL length, readability and click-through
A URL is visible in search results, chat previews, analytics dashboards and link reports. Long slugs wrap or truncate, which makes the result look noisy before a reader has processed the title. Aim for three to five words and roughly 60 characters, including the hyphens.
Readability is not decoration. A URL that can be spoken aloud and retyped from memory is more likely to be shared directly. That is why the health badge flags symbol-heavy slugs and repeated separators, not just raw length.
SEO slugs for ecommerce, local and programmatic pages
Ecommerce teams should keep the product phrase and remove campaign language. wireless-headphones survives a sale, a price change and a new season; black-friday-wireless-headphones-deal expires. Local pages should put the service and place together, then stop: emergency-plumber-leeds is stronger than a sentence about 24-hour availability.
Programmatic pages need a template that produces distinct, truthful slugs for every row. Generate a sample from the real dataset, inspect the longest and shortest outputs, and check that no two rows collapse to the same slug. A duplicate slug is a routing bug before it is an SEO problem.
When to change a slug (and how to redirect it)
Change an existing slug only when it is misleading, broken or blocks a clear query. A small keyword gain rarely justifies the loss of existing links and the risk of a redirect chain. If you do change it, serve a permanent 301 from the old URL, update internal links, resubmit the sitemap and monitor the old path for at least a quarter.
Keep one canonical version. Do not publish both the old and new slug with the same content, and do not rely on a client-side redirect for a permanent move. Search engines and AI crawlers need a server response they can trust.
SEO Slug Generator questions, answered
What is an SEO slug generator?
An SEO slug generator turns a page title or target query into a readable URL fragment. It removes filler, folds accents and keeps the slug short enough to display in search results. The goal is not keyword stuffing; it is a clear address that matches search intent and stays stable after publication.
Do keywords in a URL slug improve rankings?
Keywords in a URL are a minor ranking signal, not a primary one. Their larger effect is on click-through and comprehension: a descriptive slug tells a searcher what the page covers before they click. Write for the reader first, keep the primary phrase early and avoid repeating it unnaturally.
How many words should an SEO slug have?
Aim for three to five meaningful words and keep the total near 60 characters. That range fits mobile search results, reads naturally when spoken and leaves room for a domain and base path. Longer slugs are not automatically penalised, but they are harder to scan and share.
Should I change an old URL slug to improve SEO?
Change it only when the current slug is misleading, broken or blocks a clear query. A slug change requires a permanent 301 redirect, updated internal links, a refreshed sitemap and patience while search engines reprocess the URL. Small keyword gains rarely justify the risk of losing existing links.
Can I preview the full URL before publishing?
Yes. Enter your domain and optional base path, and the live preview shows the complete address with the generated slug attached. A health badge checks length, separator consistency and symbol problems, so you can fix the URL before it reaches a CMS, sitemap or social post.
All URL Slug & SEO Formatting Tools
Start with the full generator or jump straight to the job you need. Every page uses the same private, client-side engine and keeps all controls active.
Build the slug before the CMS does
Paste the page title, compare the recommended words and copy the full URL with your blog path already attached.
Open the slug generator