What Is a URL Slug and How to Write a Good One
A slug is the readable part of a URL after your domain. Short, descriptive slugs help readers and search engines understand a page at a glance.
What is the Slug Generator?
A slug is the readable tail of a URL. This generator lowercases your title, removes accents and punctuation, and joins words with hyphens.
How to use it
- Type your title.
- Click Generate slug.
- Copy the slug into your URL.
Worked example
'How to Bake Sourdough at Home' becomes 'how-to-bake-sourdough-at-home'.
How long should a slug be?
Aim for 3-6 words. Long enough to describe the page, short enough to read and share easily.
Frequently asked questions
Should slugs contain stop words?
Short slugs are usually better — dropping words like 'how to' is fine if the slug stays clear.
Can slugs contain uppercase?
They can, but lowercase is the convention and avoids duplicate-URL confusion.