A slug is the readable part at the end of a web address, the best-chai-recipes in example.com/best-chai-recipes/. This text to slug generator turns any title into a clean URL slug: it lowercases the words, swaps spaces for hyphens, removes symbols and converts accents (Café becomes cafe). Paste one title for one slug, or paste a list with one title per line and get one slug per line. It's the quick way to make an SEO friendly URL without typing hyphens by hand.
A real title, run through the slug generator
Here's a typical blog post title with a number, brackets and an exclamation mark:
Input: 10 Best Places to Visit in Goa During Monsoon (2026 Edition)! Output: 10-best-places-to-visit-in-goa-during-monsoon-2026-edition
That's with the default settings: lowercase on, hyphen as separator. The brackets and the "!" are gone, and the spaces became single hyphens. Now the same title with the max length option set to 30:
10-best-places-to-visit-in-goa
Notice it didn't stop at "goa-dur" or leave a hanging hyphen. The cut happens at a word boundary, which I made the rule because a half word in a URL looks like a typo.
And here's batch mode, three titles in, three slugs out:
Input: Café Coffee Day Menu How I Cleared GATE in 6 Months UPI vs Net Banking: Which Is Safer? Output: cafe-coffee-day-menu how-i-cleared-gate-in-6-months upi-vs-net-banking-which-is-safer
The settings, and why each one exists
| Option | What it does | Use it when |
|---|---|---|
| Separator: hyphen or underscore | Joins words with - or _ | Hyphen for web pages. Underscore mostly for file names or code that expects it. |
| Lowercase (on by default) | Turns every letter small | Almost always. Some servers treat /Goa-Trip and /goa-trip as different pages. |
| Remove common stop words | Drops words like a, the, of, and | Long titles where those words add length but no meaning. |
| Keep non-English letters / ASCII only | Keeps Hindi and other scripts, or allows only plain English letters | See the Hindi section below. |
| Max length | Shortens the slug at a word boundary | Very long titles, or a CMS with a slug length limit. |
Google's own guidance says hyphens are better than underscores for separating words in URLs, which is why hyphen is the first choice. Underscore is there for developers who need it for file names, keys or database fields.
Good slug, bad slug
| Bad | Better | Why |
|---|---|---|
/?p=1432 | /goa-monsoon-travel-tips | A number tells readers and search engines nothing. |
/Best%20Goa%20Places!! | /best-goa-places | Spaces become %20 and symbols cause messy, fragile links. |
/the-complete-list-of-all-the-best-places-that-you-should-visit-in-goa | /best-places-visit-goa | Shorter is easier to read, share and remember. |
/goa-trip-2024-latest-new | /goa-trip-guide | Years and "latest" make the URL look old later, and you can't easily change it. |
The slug is a small ranking signal at most. Its bigger job is to look trustworthy when someone sees the link in search results, in WhatsApp or on X, and to tell them what the page is about before they tap.
Should you remove stop words? Sometimes
There's no single right answer, which is why it's a checkbox and not forced. Take this title:
Input: The Story of Chai and a Biscuit Stop words kept: the-story-of-chai-and-a-biscuit Stop words removed: story-chai-biscuit
Shorter, and still clear. But removing stop words can also change meaning. "Life after death" and "life death" are not the same idea, and a famous line like "To Be or Not to Be" is mostly small words, so trimming it is a bad idea. My rule of thumb: turn the option on for long, list-style titles, leave it off for short titles where every word matters, and always read the result once before you publish.
Using it with WordPress and Blogger
In WordPress, the slug lives in the post settings panel under the URL or permalink field. In Blogger, open the post settings, choose Permalink, then Custom Permalink. In both, paste the slug from here. If you're planning a batch of posts in a spreadsheet, paste all the titles at once and copy the column of slugs back.
Developers can use the same output for route names, file names or anchor IDs. Need to check how many characters a slug is before saving? The character counter tells you instantly.
Don't change an old slug without a 301 redirect
This is the mistake that hurts most. Once a post is published and indexed, its URL is its address. Change the slug and every old link, bookmark and search result now points to a "page not found" error, and the traffic that page earned can drop away.
If you really must change it, set up a 301 (permanent) redirect from the old URL to the new one. WordPress tries to redirect changed post slugs by itself, but a redirect plugin gives you more control. Blogger has Custom redirects under Settings, in the Errors and redirects section. For new posts, get the slug right the first time and leave it alone.
Hindi and other non-English slugs
With keep non-English letters selected, a Hindi title keeps its script:
होली-की-शुभकामनाएं
That works. Browsers show it nicely in the address bar and search engines handle it. The downside appears when someone copies the link to share it. Many apps turn each Hindi letter into percent codes, so it pastes looking like this:
%E0%A4%B9%E0%A5%8B%E0%A4%B2%E0%A5%80-%E0%A4%95%E0%A5%80-...
It still opens the right page, but it looks broken and is very long. If your readers search in Hindi and mostly click from Google, a Hindi slug is fine. If links get shared a lot on WhatsApp, choose ASCII only, or type a short Hinglish title yourself (for example "holi wishes in hindi") and slug that.
Limits worth knowing
- The tool doesn't check whether a slug is already used on your site. Your CMS will usually add "-2" if it is.
- It doesn't pick keywords for you. A slug made from a vague title will be vague too.
- It won't write redirects or edit your site. It only produces text you copy.
- Stop word removal follows a fixed common list, so read the result if the title is short or unusual.
Related clean-up jobs: if a title came from a PDF with odd spacing, run it through remove extra spaces first. For headlines on the page itself, the case converter gives you proper Title Case, and the hashtag generator handles the social posts that promote the article.