What is a URL slug?
A slug is the readable part of a URL that identifies a page, like the your-page part of example.com/your-page. Good slugs are short, descriptive and easy to type.
This generator cleans any title into a slug, strips unwanted characters, removes the words you choose and caps the length.
How to generate a slug
- Type or paste the title of your page.
- Pick the separator you prefer, usually a hyphen.
- List any words to drop, like how or to.
- Set the maximum number of words.
- Copy the finished slug into your CMS.
Slug habits that serve you well
- Keep slugs under six words when possible.
- Use hyphens between words, not underscores.
- Skip filler words that add nothing.
- Write the slug once and never change it later.
Why changing slugs is risky
Renaming a slug changes the page URL, which can break old links. If you must change one, set up a redirect from the old address first. Better to choose carefully at the start.
Frequently Asked Questions
Three to five words is a practical target. Short slugs are easier to read, type and remember.
Hyphens. Google treats hyphens as word separators, while underscores can be seen as joining words together.
Words like how, to and the carry little meaning, so removing them keeps the slug focused on the real topic.
Yes. The same rules apply to category, tag and author slugs on most platforms.
Clean slugs work best with letters, numbers and separators. Symbols and spaces cause problems in URLs and are rarely needed.
It should echo the title, not repeat it word for word. Pick the few words that capture the page topic.
No. The slug is built entirely in your browser from the text you type.
