Text to Slug
Type or paste any title, heading or phrase and instantly get a clean, URL-friendly slug. Choose your separator, toggle stop-word removal and copy the result with one click. Runs entirely in your browser — no data uploaded.
How to Create a Good URL Slug
A good slug is short, descriptive and contains your primary keyword. Follow these rules:
- Use only lowercase letters, numbers and hyphens.
- Replace spaces and punctuation with hyphens.
- Remove special characters like
&,@,%,#. - Avoid trailing or double hyphens.
- Keep it under 70 characters (3–5 words is ideal).
- Put the most important keyword near the start.
Slug Examples
| Original title | Good slug |
|---|---|
| How to Bake Sourdough Bread at Home | bake-sourdough-bread-home |
| 10 Best JavaScript Frameworks in 2025 | best-javascript-frameworks-2025 |
| What is REST API? A Beginner's Guide | what-is-rest-api |
| CSS Grid vs Flexbox — Which to Use? | css-grid-vs-flexbox |
Hyphens vs Underscores in URLs
Google's John Mueller has confirmed that hyphens are word separators in URLs, while underscores join words into a single token. For maximum SEO benefit, always use hyphens in your slugs. Underscores are fine for file names and programmatic IDs but not for public-facing URLs.
Frequently Asked Questions
What is a URL slug?
The slug is the human-readable part of a URL that identifies a specific page, e.g., "how-to-make-coffee" in "example.com/blog/how-to-make-coffee". Good slugs are lowercase and use hyphens.
Why use hyphens instead of underscores?
Google treats hyphens as word separators. Underscores join words into one token. Hyphens are the SEO standard for URL slugs.
Should I remove stop words from a slug?
For SEO, shorter keyword-focused slugs perform better. Remove stop words like "a", "the", "and" to keep slugs concise.
How long should a URL slug be?
Aim for 3–5 words or under 70 characters. Include your primary keyword near the beginning.