SEO · URL Optimization
URL slug generator.
Turn titles and phrases into clean, lowercase, hyphenated URL slugs. Optional stop-word stripping and length capping for tighter SEO.
Input
Generated slug
Enter a title and press Generate.
What makes a good URL slug?
- Lowercase only.
- Hyphens (not underscores) between words.
- 3-5 words, including your primary keyword.
- No special characters, accents, or stop words.
- Stable: changing slugs later breaks links unless you redirect.
What a slug is and why it matters
MDN defines a slug as the unique identifying part of a web address, typically at the end of the URL. In https://example.com/blog/trail-shoe-guide/ the slug is trail-shoe-guide. People read it in the address bar, in shared links and in search results, and Google's URL structure guidance asks for readable words rather than long ID numbers where possible. A slug is not a ranking switch; its job is to describe the page plainly, stay stable, and avoid creating duplicate addresses for the same content.
Exactly what this generator does
The steps are the same every time, in this order:
- Lowercase the text if "Force lowercase" is ticked.
- Normalize accented letters to their base letters, so
cafébecomescafeandcrème brûléebecomescreme brulee. - Delete every character that is not a letter, digit, space or hyphen. That includes apostrophes, ampersands, underscores, slashes and punctuation, so
Don'tbecomesdontandsnake_casebecomessnakecase. - Turn runs of spaces into single hyphens and split into words.
- If "Remove common stop words" is ticked, drop the stop words of three letters or fewer from its list: a, an, and, are, as, at, be, by, for, has, he, in, is, it, its, of, on, the, to, was. Four-letter entries on the list (from, that, will, with) are kept by this version.
- If "Limit word count" is ticked, keep only the first N words that remain.
Letters outside the basic Latin alphabet that do not decompose into a base letter, such as Chinese characters, Arabic script or the German sharp s, are removed. If your titles are in such a language, a transliterated slug is still possible but you need to write it by hand, or keep native characters and percent-encode them, which is what Google's documentation recommends for non-ASCII characters in links.
Worked examples
| Title | Slug |
|---|---|
| The 10 Best Trail Shoes for Wide Feet (2026 Guide) | 10-best-trail-shoes-wide-feet-2026-guide |
| Crème Brûlée: Recipe & Tips | creme-brulee-recipe-tips |
| Don't Panic: What's Next? | dont-panic-whats-next |
With "Limit word count" ticked and the default of 5 words, the first title shortens to 10-best-trail-shoes-wide. Notice what that cap does: it keeps the first five words after stop words are removed, so the year and the word "guide" drop off. A length limit is a blunt tool, so read the result and re-order your wording if the cut removes the keyword you wanted.
Best-practice rules, and where they come from
- Use hyphens, not underscores. Google's URL structure documentation recommends separating words with hyphens instead of underscores.
- Keep everything lowercase. Google's documentation states that URL handling is case sensitive and gives the example that /APPLE and /apple are treated as distinct URLs. Mixed case therefore invites accidental duplicates, which is why "Force lowercase" is on by default.
- Use readable words. Google asks for descriptive words in place of long ID numbers where possible.
- Avoid unnecessary parameters. Google advises trimming parameters that do not change the content.
- Length. Google's documentation sets no word or character cap for slugs. The "three to five words" advice you will see elsewhere is a widely repeated rule of thumb, not a Google requirement, so choose the shortest slug that still says what the page is.
- Stop words. Removing little words like "the" and "of" makes slugs shorter; it is a style choice, not a requirement. Keep them when removing one changes the meaning, as in a title that depends on "not" or "to".
Common mistakes
- Changing a live slug without a redirect. The old address stops working, and every link and bookmark to it breaks. If you must change a slug, redirect the old URL to the new one permanently.
- Putting the date or a version in the slug for evergreen content, which forces a change every year.
- Stuffing keywords. A slug like
best-cheap-trail-shoes-buy-trail-shoes-onlinereads as spam to people and adds nothing thattrail-shoesdoes not. - Duplicate slugs. Two pages that generate the same slug collide in most CMS systems. Add a distinguishing word rather than a number if you can.
- Trusting an automatic slug blindly. Always read it once before publishing.
Who this is for and what it does not cover
Use it when you are naming a page, a blog post, a category or a campaign value and want consistent, lowercase, hyphenated text. It does not check whether the slug is already taken on your site, create redirects, translate text, or follow any particular CMS's own slug rules; some systems apply extra normalization of their own. For the page title that goes with the slug, use the Title Tag Checker, and for making consistent campaign values see the UTM Link Builder.
Frequently asked questions
What is a URL slug?
A slug is the unique, human-readable part of a web address that identifies a page, usually the last segment. In example.com/blog/trail-shoe-guide/ it is trail-shoe-guide. This generator builds one from a title by lowercasing, removing accents and punctuation, and joining words with hyphens.
How long should a URL slug be?
Google's documentation does not set a length limit. The common advice of three to five words is a rule of thumb for keeping addresses readable, so aim for the shortest slug that still describes the page. The Limit word count option keeps only the first N words that remain after stop words are removed.
Should I use hyphens or underscores in a slug?
Hyphens. Google's URL structure guidance recommends hyphens to separate words instead of underscores. This tool removes underscores entirely, so snake_case turns into snakecase, and joins every other word break with a hyphen.
Does the slug need to be lowercase?
It is strongly advisable. Google's documentation says URL handling is case sensitive and treats /APPLE and /apple as distinct URLs, so mixed case can create duplicate addresses. The Force lowercase option is on by default for that reason.
Which stop words does it remove?
When the option is on it removes a, an, and, are, as, at, be, by, for, has, he, in, is, it, its, of, on, the, to and was. Four-letter entries on the internal list (from, that, will, with) are kept by this version, so check the result if you expected them to go.
What happens to accented or non-English characters?
Accented Latin letters are reduced to their base letters, so cafe replaces the accented spelling. Characters that have no base-letter form, such as Chinese or Arabic script, are dropped entirely, so write a transliterated slug by hand for those titles.
Can I change a slug after the page is published?
You can, but treat it as a move: the old URL must permanently redirect to the new one or links and bookmarks will break. For new content it is better to settle the slug before publishing.
Sources
- Google Search Central: URL structure best practicesHyphens over underscores, readable words, case sensitivity (/APPLE vs /apple), trimming parameters, percent-encoding non-ASCII characters. Retrieved 2026-10.
- MDN: Slug (glossary)Definition of a slug as the unique identifying part of a web address. Retrieved 2026-10.
Each source was opened and checked against the statements above in October 2026. Standards and vendor documentation change; follow the links for the current text.