Slug Generator: Turn a Title Into a Clean URL Slug
By TheToolsBank Editorial TeamLast updated:
What is a URL slug?
A slug is the part of a URL that names one page. In example.com/blog/how-to-bake-bread, the slug is how-to-bake-bread. Most blog platforms and CMSs build it from the page title, but you can usually edit it.
A good slug is short, readable, and describes the page. People see it in links, in search results, and when the link is pasted into a chat or email.
How to use the slug generator
- Type or paste your title into the Title or text box. The slug updates as you type.
- Pick a Word separator: Hyphen (-) is the default, or choose Underscore (_).
- Leave Force lowercase ticked (the default) unless your system needs capital letters.
- Select Copy slug and paste it where you need it.
What the tool does to your text
The tool keeps letters, digits, hyphens and underscores. Spaces and most punctuation, such as &, dots and dashes, count as word breaks. Apostrophes are simply removed, so Bar's becomes bars. Runs of breaks become one separator, and separators at the start or end are removed. It does not remove stop words like "a" or "the", and it does not shorten long titles.
| You type | Slug (hyphen, lowercase) |
|---|---|
| 10 Best Tips for Better SEO in 2026! | 10-best-tips-for-better-seo-in-2026 |
| Café & Bar's Menu! | cafe-bars-menu |
| Crème Brûlée Recipe | creme-brulee-recipe |
| Q&A Session | q-a-session |
| Version 2.0 Release Notes | version-2-0-release-notes |
| C++ vs C# — Which? | c-vs-c-which |
Notice the last rows. The & sign becomes a plain break, so Q&A gives q-a, not "and". Plus and hash signs are dropped, so C++ and C# both become c. Write "and" or "plus" in the title if those details matter.
Accents and non-Latin text
Letters with accent marks keep their base letter: é becomes e, ü becomes u, and ñ becomes n. Other special letters are spelled out, so "Straße" becomes strasse, æ becomes ae, ø becomes o, and Ł becomes l.
Cyrillic and Greek are converted to Latin letters, so "Привет мир" becomes privet-mir. Scripts that cannot be converted, such as Chinese, Arabic and Hindi, are kept as Unicode letters: "東京 Tokyo" gives 東京-tokyo. A note explains that browsers show these as typed but percent-encode them in raw URLs. You can check the encoded form with the URL Encoder.
Slug tips that match Google's advice
- Use simple, descriptive words that tell people what the page is about.
- Separate words with hyphens. Google recommends hyphens rather than underscores in URLs.
- Use the language your readers use.
- Keep it short enough to read at a glance. Drop filler words if the slug still makes sense without them.
Words in a URL have a very small effect on ranking, if any. The real benefit is a link people can read and trust. Do not stuff keywords into a slug. Once a page is live, avoid changing its slug. If you must, set up a 301 redirect from the old URL.
Common Mistakes to Avoid
Choosing underscores for web page URLs.
Solution:
Trusting the slug to keep symbols.
Solution:
Pasting a whole sentence as the title.
Solution:
Changing the slug of a page that is already indexed.
Solution:

