URL Slug Generator
Turn any text into a URL-friendly slug.
What Is a URL Slug?
A slug is the URL-friendly version of a page title. It's the part of a URL that identifies a page in an easy-to-read form. For example, in example.com/blog/my-awesome-post, the slug is "my-awesome-post".
Good slugs use only lowercase letters, numbers, and hyphens. They remove accents, special characters, and extra spaces. This improves both SEO and usability · search engines and humans can read the URL and understand the page content.
Slug Best Practices for SEO
- Keep slugs short (3-5 words is ideal)
- Include target keywords
- Use hyphens, not underscores (Google treats hyphens as word separators)
- Remove stop words (a, the, is, and, etc.) when they add no value
- Use lowercase letters only
- Avoid changing slugs after publishing (or set up redirects)
Frequently Asked Questions
Does this handle accented characters?
Yes. The generator uses Unicode normalization (NFD) to strip accent marks. For example, "cafe" stays "cafe" while "café" also becomes "cafe". This ensures clean, ASCII-only slugs.
Should I use hyphens or underscores?
Hyphens are recommended for SEO. Google's official guidance confirms that hyphens in URLs are treated as word separators, while underscores are not. So "my-post" is read as two words, but "my_post" is one.