How to use the Slug Generator
- 1 Enter the title or text you want to use in a URL.
- 2 Choose hyphens or underscores and whether to use lowercase.
- 3 Copy the generated slug into your CMS or code.
What is a URL slug?
A slug is the human-readable part of a URL that identifies a page, such as best-hiking-boots in example.com/blog/best-hiking-boots. Good slugs are short, descriptive and contain only lowercase letters, digits and hyphens.
Why slugs matter for SEO
Search engines show the URL in search results, and a clear slug tells both users and crawlers what a page is about before they click. Google recommends simple, descriptive URLs and suggests hyphens rather than underscores to separate words, because hyphens are treated as word separators.
How this generator cleans your text
- Accented letters are converted to their base letter: Café Münster →
cafe-munster. - Special letters are transliterated: ß →
ss, æ →ae, ø →o, & →and. - Everything that is not a letter or digit becomes a separator, and repeated separators are collapsed.
- Leading and trailing separators are removed.
Tips for great slugs
- Keep them short: three to five meaningful words is usually enough.
- Leave out filler words such as a, the or and when they add nothing.
- Avoid dates and numbers that will go out of date, like 2019 in an evergreen article.
- Never change the slug of a published page without setting up a 301 redirect.
Frequently asked questions
Should I use hyphens or underscores in URLs?
Use hyphens. Search engines treat hyphens as spaces between words, while underscores can join words together. Hyphens are also easier to read.
What happens to non-Latin characters such as Greek or Cyrillic?
Letters that cannot be reduced to plain ASCII are removed. For non-Latin languages, consider writing the slug manually in transliterated form.
Should slugs be lowercase?
Yes. Some servers treat URLs as case-sensitive, so mixing cases can create duplicate pages or broken links. Lowercase slugs avoid that.
Last updated: