What is URL slug?
A URL slug is the human-readable part of a URL that identifies a specific page — the last segment of example.com/blog/my-first-post. Good slugs are short, lowercase, hyphenated, and free of special characters that might break URL parsing or hurt SEO.
When to use URL slug
- Blog post URLs — converting "10 Best Tips for Writing!" to
10-best-tips-for-writing. - Product page URLs — converting product names to clean URLs.
- Documentation paths.
- SEO-friendly identifiers for any user-facing URL.
- Social-share URLs.
How URL slug conversion works
- The input is lowercased.
- Diacritics and accents are stripped using Unicode NFD normalization (café → cafe).
- All non-alphanumeric characters are replaced with hyphens.
- Consecutive hyphens are collapsed into a single hyphen.
- Leading and trailing hyphens are removed.
Worked examples
| Input | URL slug |
|---|---|
10 Best Tips for Writing! |
10-best-tips-for-writing |
Café résumé naïve |
cafe-resume-naive |
How to: A Beginner's Guide |
how-to-a-beginner-s-guide |
Hello, World! |
hello-world |
Related case formats
kebab-case
→ Convert text to kebab-case
lowercase→ Convert text to lowercase
path/case→ Convert text to path/case
Need more conversion options?
Open the full converter →