What is a URL slug?
A slug is the last part of a web address that names a single page. In example.com/emergency-plumber-austin/, the slug is emergency-plumber-austin. It is usually made from the page title, but it has to follow stricter rules, because a web address cannot safely contain spaces, most punctuation or accented letters.
This slug generator turns titles into clean slugs. It lowercases the text, swaps spaces and symbols for a separator, converts accented letters to plain ones, and can shorten the result. Paste a whole list, one title per line, and you get a list of slugs back.
How to use the slug generator
- Type or paste your titles, one per line.
- Choose a separator. A hyphen is the standard choice and is the one Google recommends.
- Set a maximum length if you want shorter slugs. Slugs are cut at a whole word, never in the middle of one.
- Remove common words if you want tighter slugs. "The Best Way to Fix a Leak in the Kitchen" becomes
best-way-fix-leak-kitchen. - Check the notes under the table for empty, duplicate or shortened slugs, then click "Copy all slugs".
What makes a good slug?
- Short and descriptive. A few words that say what the page is about. Someone reading the address should have a fair idea of what they will find.
- Lowercase. Many servers treat uppercase and lowercase as different addresses, so lowercase avoids duplicate-page problems.
- Hyphens between words. Google's guidance recommends hyphens over underscores because hyphens are read as word separators.
- Plain letters and numbers. Spaces become
%20in addresses, and symbols can break links when shared. - No filler. Dates, numbers that will go out of date, and words like "the" and "and" usually add length without adding meaning.
- Unique. Every page needs its own slug. The tool warns you if two titles produce the same one.
Do slugs affect SEO?
A little, and mostly indirectly. Google has described the words in a URL as a very light signal. The real benefit is for people: a clear address is easier to read, trust, remember and share, and it looks more convincing as a link in search results and messages. A readable slug that matches the page topic is a sensible habit, not a ranking trick.
Do not stuff keywords into a slug. /emergency-plumber-austin/ is clear. /best-cheap-emergency-plumber-austin-tx-near-me/ looks spammy and is harder to read.
Slugs for local service pages
If you build pages for a service in several cities, a consistent pattern keeps the site tidy: service, then city, for example /water-heater-repair-round-rock/. Paste a list of titles into the tool and the whole set comes out in the same style. Use the "no limit" setting for short titles, or a maximum such as 50 characters if your titles are long. If two cities share a name in different states, add the state to tell them apart.
Slugs in other languages
By default the tool converts accented letters to their plain equivalents, so "Café Münchner Straße" becomes cafe-munchner-strasse. Letters from scripts such as Urdu, Arabic, Chinese or Cyrillic cannot be converted this way, so they are dropped, which can leave a slug empty. If your site is written in one of those languages, tick "Keep non-Latin letters". The slug will keep the original letters. Browsers show them normally, but when the address is copied into some apps it turns into a long string of percent-encoded characters, so many sites choose a short English slug instead.
Changing a slug after publishing
The best time to choose a slug is before the page goes live. If you change the slug of a published page, the old address stops working, and any links to it, from other sites, search results or your own pages, will lead to an error. If you must change it, set up a permanent (301) redirect from the old address to the new one. In WordPress, the slug is the Permalink field in the editor, and the overall pattern is set under Settings, then Permalinks.
Quick tips
- Aim for around three to five meaningful words.
- Keep slugs the same style across the whole site.
- Use the same words as your page title and main heading so the page tells one story.
- Write your title and description next with the Meta Tag Generator and Checker.
Frequently asked questions
Should I use hyphens or underscores in a slug?
Use hyphens. Google recommends them because they are treated as word separators, while underscores can join words together.
How long should a slug be?
There is no fixed limit, but shorter is easier to read and share. Around three to five meaningful words is a common guide.
Should I remove words like the and a from slugs?
It is optional. Removing them makes slugs shorter and tidier, as long as the slug still makes sense to a reader.
Can a slug contain capital letters?
It can, but lowercase is safer. Many servers treat uppercase and lowercase addresses as different pages, which can cause duplicate content and broken links.
Is it safe to change the slug of a page that is already published?
Only with a 301 redirect from the old address to the new one. Without it, links to the old address will break and the page may lose visitors from search.
Is my text saved or uploaded?
No. The slugs are created in your browser, and the titles you enter are not sent to or stored by this website.