Slug Generator
Turn any title into a clean, URL-friendly slug in seconds.
Slugs use lowercase letters, numbers and hyphens only. Accents are removed, spaces become hyphens, and punctuation is dropped, so the result is safe to use in any URL.
How to Use the Slug Generator
A good slug takes seconds to make with this tool. You paste a title, the tool cleans it up, and you copy a short address that works in any link. Here is how to use it, step by step.
- Type or paste your title. Put your page title, post title or heading in the first box. You can type it by hand or paste it from a document. The tool starts working the moment you type, so there is no button to press.
- Decide about common words. The “Remove common words” box is unticked by default. Tick it if you want words like a, an, the, and, or and of taken out. Short slugs read better and are easier to share, but keep a common word if it changes the meaning.
- Choose the length limit. The “Limit slug to 60 characters” box is ticked by default. A slug under 60 characters fits in search results and looks tidy in a shared link. Untick it if you need the full title kept, but try the short version first.
- Read the preview. Under the output box you will see a full example address, such as yoursite.com/blog/10-best-dog-foods-for-puppies. Check that it reads well and that no important word was cut off by the length limit.
- Copy the slug. Click “Copy slug” and paste it into your page address, your post slug field, or anywhere else you need it. The slug is plain text, so it works in every system.
- Generate again any time. Change the title and a new slug appears at once. There is no limit on how many slugs you can make, and nothing you type is saved or sent anywhere.
That is all there is to it. The tool does the cleaning, the shortening and the checking, and you stay in control of the words.
What Is a URL Slug?
A slug is the last part of a web address, the part that names one page. In the address yoursite.com/blog/10-best-dog-foods-for-puppies, the slug is 10-best-dog-foods-for-puppies. It tells readers and search engines what the page is about before they even open it.
Slugs use only lowercase letters, numbers and hyphens. Spaces become hyphens, capital letters become lowercase, and punctuation is dropped. Accented letters are changed to their plain form, so cafe becomes cafe instead of café. This keeps the address simple, and it avoids the broken links and strange percent codes that appear when an address holds spaces or special characters.
Every page on a website has a slug, and most content systems build one from the page title on their own. The problem is that the automatic version is often too long or keeps words that add nothing. A title like “The 10 Best Dog Foods for Puppies, According to Vets” becomes the-best-10-dog-foods-for-puppies-according-to-vets, which is long and clumsy. This tool gives you a shorter, cleaner version that you choose yourself.
Why Short Slugs Work Better
Short slugs are easier to read, remember and share. A reader who sees a link in a message or on social media can tell at a glance what the page is about. A long slug full of filler words hides the point and looks messy when it wraps across two lines.
Search engines also read the slug. The words in it are one small signal about what the page covers, so the main words from your title should stay in. But a slug stuffed with every word from the title is no better than one with too few. Keep the words that carry the meaning and cut the rest. For most pages, three to six words is the sweet spot.
Short slugs are also safer when a link is copied by hand or read out loud. A slug with ten words is easy to mistype. A slug with four words is hard to get wrong. And when a link is shared in an email or a chat, a short address looks neat and trustworthy, while a very long one can look like spam.
Slug Examples
Here are five titles turned into slugs, so you can see the rules in action. Notice how each slug keeps the words that matter and drops the rest.
| Title | Slug |
|---|---|
| 10 Best Dog Foods for Puppies! | 10-best-dog-foods-for-puppies |
| Café au Lait: A Simple Guide | cafe-au-lait-a-simple-guide |
| The Best of the Best Cameras | best-best-cameras |
| How to Train a Puppy in 7 Days | how-to-train-a-puppy-in-7-days |
| What Is SEO? (2026 Update) | what-is-seo-2026-update |
The third row shows the stop word rule at work. With “Remove common words” ticked, “The Best of the Best Cameras” becomes best-best-cameras. That is short, but it reads oddly, so in that case you might keep the stop words off and use the-best-of-the-best-cameras instead. The tool gives you both choices, and you pick the one that reads best.
How to Pick Words for Your Slug
Picking the words is the hardest part of writing a slug, and it is worth doing with care. Start with your page title and cross out every word that does not help a reader understand the page. Words like a, an, the, and, or and of almost always go. Words like best, guide, how and review can stay if they describe the page, but cut them if they add nothing new.
Next, look at the words that are left and put them in the order a person would say them. The order should match how people search and how they talk. “Best dog foods for puppies” reads naturally. “Puppies foods dog best” does not, and it will confuse readers even if a search engine can still work it out.
Then check the length. Read the slug out loud. If you run out of breath, it is too long. If a word at the end gets cut off by the 60 character limit, either shorten an earlier word or drop the least important word. The last word in a slug matters, because search results sometimes cut off the end, so the key word should sit near the front, not at the very end.
Finally, compare your slug with the slugs of similar pages on your site. Two pages should never share the same slug, and similar pages should not have slugs that look almost the same. If you already have best-dog-foods, do not make best-dog-food for the next page. Give each page a slug that stands on its own, so readers and search engines can tell them apart at a glance.
Common Slug Mistakes to Avoid
- Keeping the whole title. A slug does not need every word from the title. Cut filler words and keep the words that carry the meaning.
- Using underscores. Search engines treat hyphens as word separators but underscores as joiners, so best_dog_foods reads as one word. Always use hyphens, never underscores.
- Leaving capital letters in. Web addresses are case sensitive on many servers, so My-Page and my-page can be two different pages. Lowercase avoids that problem entirely.
- Changing a slug after a page is live. If a page already has visitors or links, changing its slug breaks those links. Pick the slug before you publish, and leave it alone after that.
- Using dates in the slug. A slug like best-phones-2024 goes stale the next year. Leave the year out unless the page is truly tied to one date.
- Stuffing keywords. Repeating the same word three times does not help a page rank, and it looks bad in a shared link. Write the slug for a human reader first.
Frequently Asked Questions
What is a slug in a URL?
A slug is the last part of a web address that names one page, such as 10-best-dog-foods-for-puppies in yoursite.com/blog/10-best-dog-foods-for-puppies. It is made of lowercase letters, numbers and hyphens only.
How long should a slug be?
Three to six words is a good target, and under 60 characters is a good limit. Short slugs are easier to read, share and remember, and they fit in search results without being cut off.
Should I use hyphens or underscores in a slug?
Use hyphens. Search engines read hyphens as spaces between words, so best-dog-foods is read as three words. Underscores join words together, so best_dog_foods is read as one word.
Do accented letters work in a slug?
They can, but plain letters are safer. This tool changes café to cafe and résumé to resume, so the address works on every server and in every browser without encoding problems.
Can I change a slug after publishing?
You can, but you should not unless you set up a redirect from the old address to the new one. Without a redirect, every old link and bookmark breaks.
Does the tool save my titles?
No. Everything runs in your browser. Nothing you type is sent to a server or stored anywhere.