Slug Generator
Turn any title into a clean, lowercase, hyphenated URL slug — accents stripped, updated as you type.
31 characters
A URL slug is the human-readable part of a web address that names one page. This generator turns a title into a slug by lowercasing it, stripping accents, and swapping every space or symbol for a hyphen. So “My First Post!” becomes my-first-post — short, clean, and safe to put in a link.
Why slugs matter
The slug is the last, readable segment of a URL — the my-first-post in example.com/blog/my-first-post. A good slug tells both people and search engines what the page is about before they even open it, so descriptive keyword-rich slugs help SEO and click-through. The convention is lowercase ASCII letters and digits with hyphens between words: it stays readable, avoids case-sensitivity bugs on some servers, and needs no percent-encoding.
What the generator does
It normalizes accented letters to their plain ASCII form (so é becomes e), lowercases the text, replaces every run of spaces or punctuation with a single separator, then trims any separator left at the start or end. You can switch the separator to an underscore, keep the original case, or cap the length — the tool trims to the last whole word so a slug never ends mid-word.
Before and after
How common titles are transformed into slugs with the default settings.
| Original title | Slug |
|---|---|
| My First Post! | my-first-post |
| Café del Mar | cafe-del-mar |
| 10 Tips for Better Sleep | 10-tips-for-better-sleep |
| Hello, World | hello-world |
| C++ vs. C#: A Guide | c-vs-c-a-guide |
| naïve Bayes & you | naive-bayes-you |
Things to watch for
Slugs should be unique on your site — two pages with the same slug will clash, so add a distinguishing word rather than a number where you can. Keep them reasonably short; long slugs get truncated in search results and are awkward to share. Once a page is published and linked, avoid changing its slug, because the old URL breaks unless you set up a redirect. Non-Latin scripts collapse to nothing here, so for those you may prefer transliteration before slugifying.