Free tool · SEO and webmaster
Slug generator
A slug generator turns a page title into the short, lowercase, hyphen-separated part of a web address that names the page: "Crème Brûlée: A Beginner’s Guide" becomes creme-brulee-a-beginners-guide. This one also strips accents and punctuation, can drop filler words or cap the length, and makes one slug per line for a whole list.
- Free
- No sign-up
- Runs in your browser
- 51 characters
- 9 words
- Plain ASCII
- Removed filler words
- none
- Separator
- hyphen (-)
Example address: https://example.com/blog/creme-brulee-a-beginners-guide-to-the-perfect-crust/
How to use the Slug Generator
- Type or paste a title in Title or phrase. Put each title on its own line to make several slugs at once.
- Choose Hyphen or Underscore under Separate words with.
- Tick the options you want: Remove filler words, Spell out & and %, Keep non-Latin letters and Number repeated slugs.
- Optionally set a Maximum length, then press Copy slug (or Copy all slugs for a list).
What is a URL slug?
A slug is the readable part of a web address that names one page, usually the last part after the final slash. In https://example.com/blog/creme-brulee-a-beginners-guide-to-the-perfect-crust/ the slug is creme-brulee-a-beginners-guide-to-the-perfect-crust. It tells a reader, and a search engine, what the page is about before anyone clicks.
Content systems often make a slug from the page title, but the automatic version is not always tidy: some keep capital letters, some leave odd characters, and some fall back to a number. Making the slug yourself means you decide its words, its length and how it handles accents, then paste it into the slug or permalink field of your editor before you publish.
Google's own guide to URL structure asks for readable words rather than long ID numbers, and for one letter case throughout, because its URL handling is case sensitive: /Blog/Post and /blog/post count as two different addresses. That is why this tool lowercases everything.
How do I turn a title into a clean slug?
The tool runs the same steps every time, in this order. Letters such as ß, æ, ø and ł become ss, ae, o and l. An ampersand becomes "and" and a percent sign becomes "percent", unless you untick that option. Apostrophes inside a word are closed up, so "Don’t" gives "dont" rather than "don-t". Accents come off Latin letters, so é, ñ and ü become e, n and u. Everything is lowercased, and each run of letters and digits becomes one word. All other characters, from colons to emoji, are removed. The words are then joined with the separator you chose.
Here are some titles run through the tool with the default settings. The slugs in the right column come from the same code that runs in the box above.
| Title | Slug |
|---|---|
| 10 Tips for Better Sleep (2026 Edition) | 10-tips-for-better-sleep-2026-edition |
| Salt & Pepper Shrimp | salt-and-pepper-shrimp |
| What Is 50% of 80? | what-is-50-percent-of-80 |
| Straße in München | strasse-in-munchen |
| Don’t Stop Me Now | dont-stop-me-now |
| Wi-Fi vs. Ethernet: Which Is Faster? | wi-fi-vs-ethernet-which-is-faster |
When you paste a list, each line becomes a slug, and a repeat gets a number. The lines "Summer Sale", "summer sale!" and "SUMMER SALE" give summer-sale, summer-sale-2, summer-sale-3, so no two pages fight over one address. Untick Number repeated slugs if you only want to see which titles clash.
Should I remove stop words from a slug?
Stop words are short filler words such as a, the, of and to. Removing them gives a shorter slug: the example title becomes creme-brulee-beginners-guide-perfect-crust (42 characters) instead of creme-brulee-a-beginners-guide-to-the-perfect-crust (51 characters). The tool lists every word it took out, here a, to, the, so you can see the change.
Shorter is not always better. Taking words out can change the meaning or make a slug read oddly: "how to tie a tie" loses most of its sense without "how" and "to". For that reason the option is off by default, the list covers only short English joining words, and the tool never removes every word: if a title is made only of filler words, it is kept whole. Read the result and put a word back by hand if the slug stops making sense.
A length limit is the other way to keep slugs short. Set Maximum length and the tool stops at the last whole word that fits. With a 30-character limit, "How to Make Sourdough Bread at Home Without a Scale" becomes how-to-make-sourdough-bread-at. The guide quoted above sets no length limit for URLs, so treat any limit as a style choice for readability, not a rule.
Can a slug contain accents or non-English letters?
Yes, but the address then carries encoded bytes. Google's URL guide says characters outside the ASCII range should be percent-encoded, and RFC 3986, the standard for URIs, lists only letters, digits, hyphen, period, underscore and tilde as characters that never need encoding. A browser shows the readable form in its address bar, but when the link is copied or shared, it often turns into a long run of percent codes.
For Latin-script languages the usual choice is to remove the accents, which the tool does by default: "Straße in München" becomes strasse-in-munchen. Scripts with no Latin spelling, such as Cyrillic, Greek, Arabic or Hindi, cannot be cleaned that way, so by default their letters are dropped and the result card counts them. Tick Keep non-Latin letters to keep them instead: "Привет мир" then gives привет-мир, which travels in a link as %D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82-%D0%BC%D0%B8%D1%80. The card shows both forms, so you can decide which suits your audience.
Hyphens or underscores in a URL?
Use hyphens. Google recommends hyphens instead of underscores to separate the words in a URL, because hyphens help both people and search engines pick out the separate ideas. Underscores are still valid characters, and some systems, such as file names or certain frameworks, expect them, so the tool offers both, with the hyphen as the default.
Whichever you choose, use it everywhere on a site. Changing the slug of a page that is already published changes its address, so links to the old one break unless you set up a redirect. Pick the slug once, before the page goes live. To check a full address with its query string, the URL encoder shows how each character is sent, and the UTM builder adds campaign tags to the link once the slug is settled.
Use it with
- Robots.txt Generator: build a robots.txt file.
- Case Converter: UPPER, lower, Title, Sentence case.
- Meta Tag Generator: title, description, OG and Twitter tags.
Questions
What is a slug in a URL?
The slug is the readable part of the address that names one page, usually after the last slash. In example.com/blog/creme-brulee-a-beginners-guide-to-the-perfect-crust/ the slug is creme-brulee-a-beginners-guide-to-the-perfect-crust.
Should slugs be lowercase?
Yes. Google treats URLs as case sensitive, so /Blog-Post and /blog-post can count as two pages. Lowercase everywhere avoids that, and this tool always lowercases.
Should I use hyphens or underscores in a slug?
Hyphens. Google recommends hyphens over underscores to separate words in URLs. The tool uses hyphens by default and offers underscores for systems that need them.
How long should a URL slug be?
There is no official limit. Short slugs of a few key words are easier to read and share. Set Maximum length and the tool cuts at the last whole word, so a 30-character limit gives how-to-make-sourdough-bread-at.
Should I remove stop words like "a" and "the"?
Only when the slug still reads well without them. The tool can remove short English filler words, lists what it removed, and never empties a slug made only of such words.
Can I make slugs for many titles at once?
Yes. Put each title on its own line. Each line gets its own slug, repeats are numbered -2, -3 and so on, and Copy all slugs copies them one per line.
Sources
How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.