Slug Generator
Turn any title into a clean, SEO-friendly URL slug.
Was this tool helpful?
Thanks for the feedback!
The Slug Generator turns a page title into the lowercase, hyphen-separated text used at the end of a web address, so 10 Best Places to Visit in India (2025 Edition)! becomes 10-best-places-to-visit-in-india-2025-edition. Paste one title per line to convert a whole list of blog posts, products or categories at once.
The steps applied to every line
- Everything is lowercased.
- Accented letters are reduced to their base letter:
Crème Brûléebecomescreme bruleeandÉcolebecomesecole. - Any character that is not a to z, 0 to 9, a space or a hyphen is deleted. That removes punctuation, symbols, emoji and underscores.
- Runs of spaces and hyphens become a single hyphen, and hyphens at the start or end are trimmed, so
--Hello---World--becomeshello-world.
Each input line produces one slug on the matching output line, which makes the tool handy for bulk imports into WordPress, Shopify or a spreadsheet of redirects.
Examples, including the tricky ones
| Title | Slug |
|---|---|
| How to Apply for a PAN Card Online (Step-by-Step Guide) | how-to-apply-for-a-pan-card-online-step-by-step-guide |
| What's New in PHP 8.3? | whats-new-in-php-83 |
| Top 10 Places @ ₹5,000/Night | top-10-places-5000night |
| my_file name.txt | myfile-nametxt |
Watch the last three rows. Deleted characters are not replaced by hyphens, so the version number loses its dot ("83"), the slash glues "5000night" together and the underscore joins "myfile". If two words are separated only by a symbol, put a space there before converting. Letters that do not break down into a plain letter plus an accent, such as ß, æ and ø, are removed entirely.
Titles in Hindi and other scripts
Only a to z and digits survive, so a title written in Devanagari, Tamil or any other non-Latin script produces an empty line. Search engines do accept web addresses in other scripts (browsers percent-encode them behind the scenes), but this tool cannot create them. Either transliterate the title yourself, for example dilli-mein-ghumne-ki-jagah, or type the slug by hand in your CMS.
Writing slugs that work well
- Hyphens, not underscores: Google's URL guidelines recommend hyphens to separate words, which is exactly what this tool outputs.
- Shorten after generating: the tool keeps every word, including "a", "for" and "the". The PAN example above reads fine as
apply-pan-card-online, which is shorter to share and easier to remember. - Think twice about years: a slug containing "2025" looks dated next year, and changing it later means setting up a redirect.
- Never change a live slug silently: if a published page's address changes, add a 301 redirect from the old address so links and search rankings are not lost.
- Keep it unique: two posts with the same title need different slugs; WordPress, for example, adds "-2" automatically, which is worth replacing with a meaningful word.
If you are building a full web address that includes query parameters or spaces, the URL encoder handles the escaping, and the canonical URL generator creates the link tag for the final page.