🔗 URL Slug Generator
Turn any title into a clean, SEO-friendly URL slug.
Generated Slug
Everything runs in your browser. Your content never leaves your device.
How to Use This Generator
Paste or type a page title and watch the slug build itself live. Tune the separator, stop-word removal, and length limit to match your site's URL style, then copy the result.
Enter your page title exactly as written, punctuation and all. The tool strips what does not belong in a URL.
Choose the separator. Dashes are the SEO-safe default; underscores are offered only for legacy systems that require them.
Decide on stop words. Keeping removal on drops filler words like the, to, and at for a shorter slug. Turn it off if the title needs them to make sense.
Optionally set a max length. The tool trims at a word boundary, so a 60-character limit never leaves a half word.
Copy the slug and check the full URL preview before publishing.
What Makes a Good Slug
Each step has a reason. Transliteration keeps URLs ASCII-safe so they work everywhere without percent-encoding. Lowercase avoids duplicate-content headaches from mixed-case URLs, which servers can treat as different pages. Dropping punctuation removes characters that break in emails, chats, and some servers. Stop-word removal shortens without losing meaning. Dashes keep words readable to both people and Google. The preview below the result shows the full URL so you can sanity-check the final address before it goes live.
Worked Example
Title: "The Ultimate Guide to Baking Sourdough at Home!" With default settings (dashes, stop words removed, lowercase):
Nine words became five, the slug is 36 characters, and every remaining word carries meaning. A reader can guess the page topic from the URL alone, which is exactly what a good slug does.
Slug SEO Best Practices
Put the primary keyword in the slug when it fits naturally, near the front. Never change a published slug without a 301 redirect from the old URL, or you break backlinks and lose the page's history. Keep slugs stable: avoid years, version numbers, and anything else that will date the URL unless the date is the point. Do not stuff keywords; one natural mention beats "best-sourdough-recipe-easy-sourdough-guide". Match the slug to the page's H1 loosely, not word for word, since headlines change more often than URLs should. Finally, keep the whole URL short: every extra folder level dilutes the slug's visibility in search results. Everything you type here stays in your browser.
Frequently Asked Questions
What is a URL slug?
The slug is the readable part of a URL that comes after the domain name. In https://example.com/best-sourdough-recipe, the slug is best-sourdough-recipe. It tells both visitors and search engines what the page is about before they open it.
Should I use dashes or underscores in slugs?
Dashes. Google treats dashes as word separators, so best-sourdough-recipe is read as four words, while underscores join words together: best_sourdough_recipe is read as one long token. This has been Google's documented behavior for years, and every major CMS defaults to dashes.
Should slugs include stop words?
Usually not. Words like the, and, and of add length without meaning, and removing them makes the slug shorter and easier to scan. There is no ranking penalty for keeping them, so if removing a stop word makes the slug confusing, keep it. This tool removes them by default and you can toggle it off.
How long should a URL slug be?
Short and descriptive wins: three to five meaningful words, ideally under 60 characters. Long slugs get truncated in search results and are harder to share or remember. If your title is long, keep only the words someone would type to find the page. The max-length option here trims at a word boundary so you never get a chopped word.
Do slugs affect SEO?
Slightly. A keyword in the URL is a small relevance signal, but the bigger win is click-through rate: a clean, readable slug looks trustworthy in search results and when shared. The main SEO rule for slugs is negative: do not stuff keywords, do not change published slugs without a redirect, and do not let the CMS auto-generate ugly URLs with dates and IDs.