Slug Generator
Turn a headline into a tidy URL slug, with accents fixed, filler words optional and a length cap if you need one.
How to turn a title into a URL slug
A slug is the readable part of a web address that identifies one page. In example.com/blog/how-to-bake-sourdough, the slug is how-to-bake-sourdough. It is made from the title by lowercasing the words, removing punctuation and joining what is left with hyphens. WordPress, Shopify and most other platforms will generate one automatically, but the result is often too long, full of filler words or wrong for titles in other languages. This tool gives you a clean version you can paste in and edit.
For example, the title “10 Quick & Easy Dinner Ideas (for Busy Weeknights!)” becomes 10-quick-easy-dinner-ideas-for-busy-weeknights. With Remove common words switched on, it becomes the tighter 10-quick-easy-dinner-ideas-busy-weeknights.
From headline to slug
- Enter a title. Several titles, one per line, give you several slugs at once, which suits a content calendar.
- Choose a separator. A hyphen is the standard for URLs. An underscore suits file names and code, and None joins the words together.
- Set the options: keep lowercase on, switch on Remove common words to shorten long titles, and set a maximum length if your CMS or style guide has one.
- Copy the slug into the permalink or URL field of your CMS, or use it as a file name.
What makes a good SEO-friendly URL slug
- Short and descriptive. Three to six words is a good range. Readers should be able to guess the content from the URL.
- Lowercase only. Some servers treat
/Aboutand/aboutas different pages, which can cause duplicate content and broken links. - Hyphens, not underscores. Search engines read a hyphen as a space between words. An underscore can be treated as part of a word, so
seo_tipsmay not match a search for “seo tips”. - Include your main keyword once, near the start if it feels natural. Do not stuff several variations in.
- No dates unless they matter. A year in the slug makes the page look old, and changing it later means a redirect.
- Do not change it after publishing unless you set up a 301 redirect from the old address, otherwise you lose links and traffic.
Accents, symbols and special characters
Characters outside plain A–Z are the main reason slugs turn into a mess. Browsers encode them as percent sequences, so “café” can end up as caf%C3%A9 in a shared link. The generator avoids that by converting accented letters to their plain versions: é becomes e, ü becomes u, ñ becomes n and ß becomes ss. Ampersands, quotation marks, brackets, question marks and emoji are removed, and repeated hyphens are collapsed into one.
Letters outside the plain English alphabet that have no simple equivalent would normally disappear entirely. Tick Keep non-Latin letters to retain them. Browsers show such slugs correctly, though the link is encoded when copied, so test the link before you rely on it. For most English sites, the safest choice is to leave that option off.
Shorten long slugs with common-word removal and a length limit
Long URLs get cut off in search results and are awkward to share. A few options help. Remove numbers drops every digit, which is handy for titles like “10 Best Tools” or “Top 5 Tips” when the number would date the URL or does not belong in it. Remove common words deletes small filler words such as “a”, “the”, “of”, “and” and “for”, which rarely add meaning to a URL. Max length trims the slug to a number of characters, and cuts at a whole word where possible so you never end up with half a word at the end.
| Title | Default slug | With common words removed |
|---|---|---|
| The Best Way to Learn a New Language | the-best-way-to-learn-a-new-language | best-way-learn-new-language |
| What Is the Difference Between SEO and SEM? | what-is-the-difference-between-seo-and-sem | what-difference-between-seo-sem |
Read the shortened slug before you use it. Removing a word like “not” or “how” can change the meaning, so the tool only removes small neutral words, but a quick check is always sensible.
Slugs for file names, image names and code
The same rules help outside URLs. Image file names such as red-running-shoes.jpg are friendlier to search engines and easier to manage than IMG_4021.jpg. Choose underscores if your project or language follows that convention, such as Python file names, or choose None when you need a compact identifier. Putting one title per line lets you create a batch of slugs for a whole content calendar in one go.
Slug and permalink questions
What is a URL slug?
A slug is the part of a web address that names a specific page, usually derived from its title. In example.com/best-pasta-recipes the slug is best-pasta-recipes.
How long should a URL slug be?
Aim for three to six words and under about 60 characters. Shorter slugs are easier to read and share and are less likely to be cut off in results.
Should I use hyphens or underscores in URLs?
Use hyphens. Search engines treat them as word separators, while underscores can join words together in the index.
Should I remove stop words like “the” and “and” from slugs?
It usually makes the slug shorter and cleaner. Keep them if removing them makes the slug confusing.
Does changing a slug after publishing hurt SEO?
It can, because the old address stops working and existing links break. If you must change it, set up a 301 redirect from the old URL to the new one.
Can I keep letters that are not in the English alphabet?
Yes. Tick Keep non-Latin letters to keep them. Otherwise only plain Latin letters and numbers are kept.
Useful alongside slugs
Capitalisation matters before you slugify, so tidy a title with the case converter first. To check a title tag for length, use the character counter. If you have an old set of slugs to rewrite, find and replace can change a separator across a whole list.