A URL slug is the readable part of a web address that names a single page, like clean-url-slugs in toolcreek.com/clean-url-slugs/. A good slug helps search engines and people understand what a page is about before they click. Here is how to write slugs that are clean, consistent, and safe to ship.
What makes a good slug
- Lowercase only. Mixed case causes duplicate-URL issues on case-sensitive servers, so keep everything lowercase.
- Hyphens, not underscores. Search engines treat hyphens as word separators. Underscores join words together, so
url_slugsreads as one token. - Short and keyword-focused. Aim for three to five meaningful words. Drop filler so the main keyword stays near the front.
- Skip stop words where you can. Words like “a”, “the”, and “of” rarely add meaning to a slug.
- Avoid dates and IDs. A slug like
post-48291or2026-08-articleages badly and tells readers nothing. - Transliterate accents to ASCII. Convert
cafétocafeandMünchentomunchenso the URL stays portable and predictable.
Turn a title into a slug
The fastest way is to start from your page title and let a tool do the cleanup. The Slug Generator lowercases, swaps spaces for hyphens, strips punctuation, and transliterates accented characters in one pass.
- Open the Slug Generator in your browser.
- Paste or type your page title, for example “How to Create Clean URL Slugs”.
- Review the generated slug, such as
how-to-create-clean-url-slugs. - Trim any extra words to keep it short, then copy the result.
Everything runs locally in your browser, so your titles are never uploaded anywhere.
Why you should not change live slugs
Once a page is published and indexed, its slug is part of its identity. Changing it breaks every existing link, bookmark, and search result pointing at the old address, and visitors hit a 404.
If you must change a live slug, set up a 301 redirect from the old URL to the new one. A 301 tells search engines the move is permanent and passes most of the page’s ranking value across. Plan your slug carefully the first time so you rarely need to.
A quick checklist
- Lowercase, hyphen-separated, no spaces.
- Keyword early, stop words removed.
- No accents, no random IDs, no dates unless they matter.
- Short enough to read at a glance.
- Live URL changing? Add a 301 redirect.
Related tools
- Need to normalize casing before you slugify? Use the Case Converter.
- Filling a layout with placeholder copy? Try the Lorem Ipsum Generator.
- Encoding query strings or special characters in a URL? Reach for URL Encode / Decode.
Get the slug right once and the link works forever.