URL Slug Generator
Turn any title into a clean, SEO-friendly, human-readable URL slug. Handles accents, symbols and casing.
How to use the URL Slug Generator
- Type or paste a title, heading or phrase.
- Choose the separator (hyphen or underscore) and letter case.
- Optionally set a maximum length and strip stop-words.
- Copy the generated slug into your CMS or code.
Examples
| Input | Output | Notes |
|---|---|---|
10 Tips for Better Sleep! | 10-tips-for-better-sleep | Symbols removed, spaces to hyphens. |
Crème brûlée recipe | creme-brulee-recipe | Accents transliterated to ASCII. |
The Best Way to Learn JavaScript | best-way-learn-javascript | With stop-word removal on. |
What makes a good slug
- Short — 3–5 words is ideal
- Lowercase and hyphen-separated
- Descriptive — reflects the page topic and target keyword
- Stable — don't change it after publishing without a redirect
- ASCII-only — avoid encoded characters like %C3%A9
How slugify works
The tool lowercases the text, transliterates non-ASCII letters, replaces every run of non-alphanumeric characters with a single separator, trims separators from the ends, and optionally truncates to a maximum length on a word boundary.
Bulk mode
Paste multiple lines and each becomes its own slug — handy for migrating a list of post titles.
Frequently asked questions
What is a URL slug?
A slug is the human-readable part of a URL that identifies a page, usually derived from its title — for example "best-running-shoes" in /blog/best-running-shoes. Good slugs are short, lowercase, hyphen-separated and descriptive.
Why should slugs be lowercase?
URLs are case-sensitive on many servers, so mixed-case slugs risk duplicate-content issues and broken links. Lowercase avoids that and is the web convention.
Should I use hyphens or underscores?
Hyphens. Google treats hyphens as word separators but underscores as word joiners, so "blue-shoes" is read as two words while "blue_shoes" is read as one.
How are accented characters handled?
They are transliterated to their closest ASCII equivalent (é to e, ü to u, ß to ss), so the slug stays readable and compatible everywhere.
Should I remove stop-words from slugs?
It is optional. Removing "a", "the", "of" makes slugs shorter and keyword-focused, but keep them if it hurts readability or changes meaning.