How to Write SEO-Friendly URL Slugs

The "slug" is the human-readable part of a web address that identifies a specific page — the bit after your domain, like /how-to-write-slugs. It's a small detail that quietly affects both search rankings and how much people trust your links. This guide covers what a good slug looks like and the rules for writing one.

What a slug is and why it matters

Compare two links to the same article: /p?id=48213 versus /how-to-write-slugs. The second tells both the reader and the search engine exactly what the page is about before they even click. Clean slugs improve click-through rates because they look trustworthy in search results and when shared, and they give search engines another clear signal about the page's topic. They also make your links easier to say out loud and remember.

The rules of a good slug

A worked example

Suppose your article is titled "10 Amazing Tips for Café Owners in 2026!". A weak slug would keep everything: /10-amazing-tips-for-café-owners-in-2026! — it has an accent, an exclamation mark, and filler words. A strong slug distils it to the essentials: /tips-for-cafe-owners. It's lowercase, hyphenated, accent-free, punctuation-free and focused on the words that matter.

Don't change slugs casually

Once a page is published and links point to it, changing its slug breaks those links and can lose the search ranking it built up. If you must change a slug, set up a redirect from the old address to the new one so visitors and search engines are forwarded automatically. The best approach is to get the slug right the first time.

Generating slugs consistently

Doing all this by hand for every page is tedious and error-prone. Our slug generator applies these rules automatically: it lowercases the text, strips accents and punctuation, and joins words with hyphens, giving you a clean slug you can paste straight into your CMS. If you just need to fix capitalisation elsewhere, the case converter handles that too. Everything runs in your browser.

Key takeaways

Advertisement

Tools mentioned in this guide

Case Converter

Convert text to UPPERCASE, lowercase, Title Case and more.

Text Tools

Slug GeneratorNEW

Turn any title into a clean, SEO-friendly URL slug.

Text Tools