Slug Generator
Turn any title into a clean URL slug.
Runs in your browser — your text never leaves your device.
Save this tool
Keep Slug Generator handy
Use your browser's Share menu, then “Add to Home Screen”.
About this tool
A slug is the readable part of a URL that identifies a page, and getting it right matters for both people and search engines. A good slug is lowercase, uses hyphens rather than spaces or underscores, contains no punctuation that needs escaping, and stays short enough to read at a glance. The awkward part is anything outside plain ASCII. Ordinary accented letters such as é and ñ can be reduced to their base letter, but several letters do not decompose at all, and naive tools simply delete them: a Danish title containing ø or æ silently loses characters and produces a slug that no longer makes sense. This generator uses an explicit expansion table so ø becomes oe, æ becomes ae, å becomes aa and ß becomes ss, following the convention those languages actually use in URLs. You can turn that off if you prefer the nearest single letter instead. Ampersands become the word and rather than vanishing, and an optional length limit trims at a word boundary so you never end up with a slug cut off mid-word.
How to use it
- Type or paste your title
- Choose your separator and options
- Copy the slug straight into your CMS or URL
Frequently asked questions
Why does ø become oe rather than o?
Because that is the convention in Danish, Norwegian and German URLs, where ø and ö are conventionally written oe when reduced to ASCII. Many slug tools simply delete these letters, which quietly mangles the title. If you prefer the nearest single letter, turn off diacritic expansion.
Should I use hyphens or underscores?
Hyphens. Search engines treat a hyphen as a word separator but historically treated an underscore as a word joiner, so my_great_post can be read as a single token. Underscores are offered here for filenames and database identifiers, not for public URLs.
How long should a slug be?
Long enough to be meaningful and short enough to read, which usually means three to six words. There is no ranking penalty for length itself, but very long slugs get truncated in search results and are awkward to share.
What happens to numbers and ampersands?
Numbers are kept, since they are perfectly valid and often meaningful. Ampersands are converted to the word and, because deleting them would join two words together and encoding them makes the URL harder to read.
Does the length limit cut words in half?
No. When a limit is set, the slug is trimmed back to the last complete word rather than being cut mid-word, so the result always stays readable.