Slug Generator
Example
Input:
How to Cook Rice: A Beginner's Guide!
Output:
how-to-cook-rice-a-beginners-guide
About this converter
A slug is the readable tail of a URL, and good slugs follow boring rules: lowercase, ASCII only, words separated by hyphens, no stop-word surgery you will regret, no dates that expire. This generator folds accented characters to their base letters (é → e) via Unicode normalization, drops punctuation, collapses runs of separators, and trims the ends. Hyphens are the recommended separator — Google treats them as word separators while underscores join words into one token — but the option exists for systems (some wikis, file conventions) that use underscores. Length discipline is yours: slugs under ~60 characters stay readable and shareable.
Frequently Asked Questions
Hyphens or underscores?
Hyphens for the web: search engines read them as word breaks. Underscores are read as joining the words into one.
Should I remove words like "the" and "a"?
Modern guidance says keep slugs natural; removing stop words saves little and can change meaning. Keep it short but complete.