How to use the slug generator
Everything runs in your browser, so results appear instantly and your titles stay on your device.
- Paste your title or headline into the box. A rough working title is fine.
- Set a max length. Many sites aim for 50 to 60 characters. The tool cuts at a whole word, never in the middle of one.
- Turn stop words on or off. When on, short words like the, a, to, of and for are dropped.
- Keep accent conversion on if your title has letters like é, ü or ñ. They become e, u and n.
- Press the button, read the slug, and copy it.
Three numbers appear under the result. Characters is the slug length next to your max. Words is how many words made it through. Removed is how many stop words were dropped. If characters equals your max, the slug was trimmed, so read it once to make sure it still says something.
What an SEO friendly URL looks like
The slug is the last part of a URL, the text after the final slash. In example.com/blog/cold-brew-guide the slug is cold-brew-guide. It should tell a person what the page covers before they click. Readers also see it in the address bar, and our guide to Search Google or type a URL explains how Chrome treats typed text as a search or as an address.
Google's URL structure guidance asks for simple, readable URLs. It prefers real words over long ID strings, and it recommends hyphens over underscores to separate words. It also says non-ASCII characters in a URL must be percent-encoded, which is why a slug with accents turns ugly fast.
So a good SEO friendly url is short, lowercase, hyphenated and plain ASCII. That is exactly what this url slug generator outputs.
Lowercase matters more than it looks. Paths on most servers are case sensitive, so /Cold-Brew and /cold-brew can load as two separate pages. Pick lowercase once and stop thinking about it.
Rules the slug generator applies
Developers call this operation slugify, and most languages have a library for it. The logic is the same everywhere. Here is what happens to your text, in order.
| Rule | Before | After |
|---|---|---|
| Lowercase everything | Best Pizza in NYC | best-pizza-in-nyc |
| Convert accents to plain letters | Crème Brûlée Guide | creme-brulee-guide |
| Remove punctuation and symbols | What's New? 5 Fixes! | whats-new-5-fixes |
| Collapse extra spaces into one hyphen | Cold Brew Guide | cold-brew-guide |
| Trim hyphens from both ends | -- Hello World -- | hello-world |
Apostrophes are removed rather than turned into hyphens, so beginner's becomes beginners. That matches what readers expect and avoids slugs like beginner-s-guide.
Worked examples
Four titles, run with different settings.
| Title | Settings | Slug |
|---|---|---|
| Best Pizza in NYC! | Defaults | best-pizza-in-nyc |
| Crème Brûlée: A Beginner's Guide | Accents on, stop words removed | creme-brulee-beginners-guide |
| The Best Way to Clean a Cast Iron Pan in 2025 | Stop words removed | best-way-clean-cast-iron-pan-2025 |
| Everything You Need to Know About Choosing a Standing Desk for Your Home Office | Max length 40, stop words kept | everything-you-need-to-know-about |
The third row shows the cost of stripping stop words. best-way-clean reads like a telegram, though it still works as a URL. The fourth row is worse. The slug is under 40 characters and says nothing about desks, because the trimming cut off the useful words.
A length cap is a safety net, not a writing tool. When the slug comes out like that, shorten the title first, or write standing-desk-home-office by hand. If the headline itself needs work, the SEO title generator can give you shorter options to slug.
Should you remove stop words from a slug?
Sometimes. On a long title, dropping the, a, of and for makes the URL shorter and easier to scan. On a short title, it can strip the meaning.
My rule is simple. Remove them when the slug is still over five or six words without a cap. Keep them when removal changes the sense, such as a phrase title or a band name made mostly of small words. A title like The Who can come out empty or odd.
Google's documentation does not require either choice. It cares that URLs are readable, so read yours aloud before you publish.
How long should a slug be?
Google gives no official character limit for slugs. Shorter is easier to read, paste and share, so three to six words is a good target. Long slugs repeat the title and add nothing.
Avoid stuffing the same keyword twice. slug-generator-free-slug-generator-online looks spammy to people, and people are the ones who decide whether to click or copy it.
Using it as a permalink generator in WordPress
WordPress builds a slug from your post title when you save a draft. It keeps stop words, so a 14-word title becomes a 14-word URL. That is fine for a quick note and bad for a page you want to share.
Two settings matter. Under Settings, then Permalinks, choose the Post name structure so only the slug follows your domain. WordPress describes the options on its permalink settings page. Date-based structures add the year and month to every URL, which makes evergreen posts look old.
Then open the post sidebar, find the URL field, and paste the slug you got here. This works as a permalink generator for any CMS with an editable slug field, including Shopify, Ghost and Webflow.
Changing a slug after publishing
Editing the slug of a live, indexed page changes its URL. Anyone with the old link, and any site linking to it, hits an error unless you redirect.
Set a 301 redirect from the old URL to the new one. Google explains how in its redirects documentation. WordPress usually redirects an edited post slug on its own, but test the old URL anyway. Don't trust it.
If you add structured data, the url fields should carry the final slug, so lock the slug first and draft the markup afterward with the schema markup generator.
Common slug mistakes
- Using underscores. Google reads hyphens as word separators and recommends them.
- Leaving capital letters in. They create duplicate-URL risk on case-sensitive servers.
- Putting dates in the slug.
best-laptops-2023looks stale in 2025 and forces a new URL to update it. - Keeping filler words like
complete-ultimate-guide-to. They add length and no information. - Pasting a raw title with an ampersand, quotes or an emoji. They get percent-encoded or break links in some tools.
- Editing the slug of a ranking page for style reasons alone.
Keep the visible headline and the slug separate in your head. The headline can use title case and punctuation, which the title capitalization tool handles. The slug stays lowercase and plain.
Where the slug fits in a full SEO workflow
The slug is one small piece. It follows the topic, the keyword and the headline, in that order. If you want a draft built around a target phrase, the AI SEO writer can start one, and you can run its headline through this slug generator when you are done.
You can find more free writing tools on Write.info for rewriting, summarizing and checking text. The slug generator itself needs no setup. Paste, set a length, copy.
Slug and URL questions, answered
What is a URL slug?
A URL slug is the final part of a web address, the text after the last slash that identifies one page. In example.com/blog/cold-brew-guide, the slug is cold-brew-guide. It is usually made from the page title, written in lowercase with hyphens between words, and it should describe the page in plain language.
How long should a URL slug be?
Google sets no official slug length limit. In practice, three to six words, or roughly 50 to 60 characters, keeps a URL readable and easy to share. Cut filler words, keep the main topic, and avoid repeating your keyword. If the slug looks as long as the title, shorten it by hand.
Should I remove stop words from a slug?
Remove them when the slug is long and still makes sense without them, for example turning the best way to clean a pan into best-way-clean-pan. Keep them when removal changes the meaning or leaves an awkward fragment. Google does not require either approach, so choose whichever reads more clearly to a person.
Are hyphens or underscores better in URLs?
Hyphens are better. Google's URL structure documentation recommends hyphens to separate words and advises against underscores, because hyphens are treated as word separators. A slug like cold-brew-guide is read as three words, while cold_brew_guide is more likely to be read as one long string.
Can I change a slug after the page is published?
You can, but the URL changes, so old links break unless you redirect them. Set a 301 redirect from the old URL to the new one and update internal links. WordPress often adds a redirect for edited post slugs, but check the old address in a browser to confirm it works.
Does this slug generator handle accents and non-English letters?
It converts common accented Latin letters to plain ones, so é becomes e, ü becomes u and ñ becomes n. That keeps URLs ASCII-only and avoids percent-encoding. Scripts such as Chinese, Arabic or Cyrillic are not converted to Latin letters, so check those slugs manually before you publish.
Do slugs affect Google rankings?
Google's URL structure documentation focuses on readability and clean crawling rather than ranking boosts. A clear slug helps people understand a link and helps you avoid duplicate URLs. Treat it as good housekeeping, not a ranking lever, and put your effort into the page content and title.