What is a URL slug?
A slug is the readable last part of a URL that identifies a page, such as slug-generator in toolavix.com/slug-generator. Good slugs are short, lowercase, use hyphens between words and contain no accents or special characters. This slug generator converts titles to slugs instantly: it removes diacritics, replaces symbols, drops optional stop words, limits the length and handles one title per line. It runs in your browser.
How to create a URL slug from a title
- 1
Type or paste a title. For several slugs, put one title on each line.
- 2
Choose the separator: hyphen, underscore or dot.
- 3
Optionally set a maximum length and remove common stop words such as “the” and “of”.
- 4
Copy the slugs or download them as a text file.
Key features
Accents and symbols removed
Characters such as é, ñ, ß and ø become plain ASCII letters, and & or @ become words, so slugs are safe in any URL.
Bulk mode
Paste a list of titles and get one slug per line, ideal for content migrations and spreadsheets.
Length and stop words
Cut slugs at a maximum length without breaking words, and drop filler words to keep URLs short.
Keep your language
Turn off transliteration to keep letters from non-Latin scripts such as Cyrillic, Greek, Chinese or Arabic in the slug.
Frequently asked questions
What is the best slug format for SEO?
Use lowercase words separated by hyphens, keep it short and descriptive, and include the main keyword. Google treats hyphens as word separators but not underscores.
Should slugs contain stop words?
Short stop words like “the”, “and” and “of” can usually be dropped to shorten a URL without losing meaning. Keep them when removing them would change the meaning.
How long should a URL slug be?
Aim for 3 to 5 words or under about 60 characters. Longer slugs work but are harder to read and share.
How are accented characters handled?
With transliteration on, accented letters are converted to their base letters, so “Crème brûlée” becomes “creme-brulee”. Special letters such as ß become ss.
Should I change a slug after publishing?
Avoid it. If you must, add a 301 redirect from the old URL to the new one so links and search rankings are preserved.