Look at the address bar of this page. The last part of the address β€” something like how-to-turn-a-title-into-a-clean-url-slug β€” is called a URL slug. It is the readable version of the page title, and it is one of the small details that makes a website easier to use and easier to find on Google.

This guide explains what a slug is, the rules for writing a good one, and how to generate one in seconds with a free online tool.

What is a URL slug?

A slug is the part of a web address that identifies a specific page, written in lowercase with words separated by hyphens. Take this address:

https://www.hausamusics.com/blog/how-to-turn-a-title-into-a-clean-url-slug.html

The slug is how-to-turn-a-title-into-a-clean-url-slug. Everything before it tells you where the page lives; the slug tells you what it is about, in plain words.

Slugs matter for three reasons. First, people read them: a visitor deciding whether to click a link can see from the slug what the page is about, while a string of numbers tells them nothing. Second, search engines read them: Google uses the words in a URL as a small ranking signal. Third, they are shareable: a clean slug survives being pasted into a chat or an email, where a long messy address gets broken or cut off.

The rules of a good slug

Most content systems generate a slug from the title automatically, but the automatic version is not always good. These are the rules the best slugs follow:

Lowercase only. Web addresses are case-sensitive after the domain name, so My-Page and my-page can be two different pages. Lowercase avoids confusion and broken links.

Hyphens between words, never underscores or spaces. Google treats a hyphen as a word separator β€” how-to-count-words reads as four words β€” but treats an underscore as part of a word. Spaces are worse: browsers turn them into %20, which makes the address ugly and hard to share.

Letters and numbers only. Remove punctuation and symbols: apostrophes, commas, brackets, ampersands and question marks have no place in a slug. "The Writer's Guide: 10 Tips & Tricks!" becomes the-writers-guide-10-tips-tricks.

Short and descriptive. Aim for three to six words that capture the topic β€” long enough to be clear, short enough to remember. Cut filler words like "a", "the", "and" and "of" unless they are needed for sense.

Match the title, not the keyword list. A slug stuffed with keywords β€” best-free-online-word-counter-tool-2026 β€” looks like spam. The slug should say what the page is, in the words a person would use.

Accents become plain letters. cafΓ© becomes cafe, ΓΌber becomes uber. Most systems strip accents automatically, but check the result.

Never change a slug on a live page without a redirect. Changing it breaks every link pointing at it. If you must change it, redirect the old address to the new one.

How to turn a title into a slug

There are three ways, from slowest to fastest.

Method 1: Do it by hand

Take the title, write it in lowercase, replace every space with a hyphen, and delete every character that is not a letter, a number or a hyphen. Then tidy up: collapse double hyphens into one and trim hyphens from the ends.

For example, "How to Turn a Title into a Clean URL Slug (Free Slug Generator)" becomes, step by step: lowercase, then spaces to hyphens, then the brackets removed β€” giving how-to-turn-a-title-into-a-clean-url-slug.

It works, but it is slow and easy to get wrong β€” one missed character leaves a %20 or a stray symbol in the address.

Method 2: Let your platform do it

WordPress, Blogger, Shopify and most other platforms generate a slug automatically when you save a post. It is usually good enough, but check it before publishing: the automatic version keeps stop words and can be too long.

Method 3: Use a free online slug generator

The fastest option is a dedicated tool. Paste any title into the free Slug Generator and it returns a clean slug instantly β€” lowercase, hyphenated, punctuation and accents removed.

It is free, needs no sign-up, and works on your phone as well as your computer. Nothing is uploaded; the conversion happens in your browser. Paste the title, copy the slug, done.

Slug examples: before and after

A few real transformations show the rules in action. Numbers stay, because they carry meaning; apostrophes, colons, ampersands and brackets go; accented letters become their plain equivalents.

| Title | Slug | |---|---| | How to Count Words in Google Docs | how-to-count-words-in-google-docs | | The Writer's Guide: 10 Tips & Tricks! | the-writers-guide-10-tips-tricks | | CafΓ© Culture β€” Best Coffee in Multan | cafe-culture-best-coffee-in-multan | | What Is SEO? A Beginner's Guide (2026) | what-is-seo-a-beginners-guide-2026 | | Top 5 Free Tools | top-5-free-tools |

If your titles often need case changes as well, our guide on how to change text case online covers that, with a free case converter for uppercase, lowercase, title case and sentence case.

Slugs and SEO: what actually helps

A good slug helps search rankings a little, and a bad one hurts a little. The effect is small compared with the page's content and backlinks, but it is free to get right.

Google reads the words in a URL and uses them as one of many signals about what the page covers. A slug containing the words someone searched for β€” how-to-count-words for the search "how to count words" β€” is a small plus. A slug that is a string of numbers, like post-28471, says nothing and earns nothing.

More important than rankings is the click. In search results, the address shows under the title, and a readable slug tells the searcher the page is what they want. People click clear addresses more than cryptic ones.

Keep the slug stable once it is live. Every link to a page points at that address, and changing it without a redirect throws that value away.

Common mistakes to avoid

1. Using underscores instead of hyphens. how_to_count_words reads as one word to Google. Always use hyphens.

2. Leaving spaces in the address. A space becomes %20, which is ugly and sometimes breaks when pasted. Hyphens fix it.

3. Keeping every word from a long title. A 12-word slug is hard to read and hard to share. Cut the filler.

4. Stuffing keywords into the slug. best-free-word-counter-tool-online-2026 reads like spam. One clear phrase beats a pile of keywords.

5. Changing a live slug without a redirect. A changed slug breaks every link pointing at the page. Redirect the old address to the new one, or leave it alone.

6. Using dates in evergreen slugs. best-tools-2024 looks out of date within a year. Leave the year out unless the content is tied to it.

FAQ

What is a URL slug? The readable part of a web address that identifies a page, written in lowercase with hyphens between words β€” for example, how-to-count-words.

How do I turn a title into a slug? Write the title in lowercase, replace spaces with hyphens, and remove everything that is not a letter, a number or a hyphen. The free Slug Generator does it in one click.

Should I use hyphens or underscores in a URL? Hyphens. Google treats a hyphen as a word separator and an underscore as part of a word, so how-to-count-words is read as four words and how_to_count_words as one.

How long should a slug be? Three to six words is a good target β€” long enough to describe the page, short enough to read and share. Cut filler words unless they are needed for sense.

Can I change a slug after publishing? Yes, but set up a redirect from the old address to the new one first. Without it, every link pointing at the old address breaks.

The bottom line

A slug is a small thing, but it is the part of your page people see before they click, and the part search engines read first. Lowercase, hyphens, no punctuation, three to six words that say what the page is. Get that right, and leave it alone once it is live.

Try it now: paste any title into the free Slug Generator and copy the clean slug it returns β€” then use it for your next post, product page or video title.


Related: "How to Change Text Case Online" (blog), for the Slug Generator tool.