How to Write Clean, SEO-Friendly URL Slugs
A good slug is short, readable and stable. Here is how to turn any title into a URL that helps both readers and search engines.
By The Lumetra Team
The slug is the human-readable part of a URL that identifies a page, such as "seo-friendly-url-slugs" in this article's address. It is a small piece of a page, but it influences click-through rates, shareability and how easily people remember a link.
What makes a good slug
- Short: aim for three to five meaningful words; trim anything that does not add clarity.
- Lowercase: mixed-case URLs can create duplicate-content issues on some servers.
- Hyphen-separated: use hyphens, not underscores or spaces, so search engines read words distinctly.
- Descriptive: the slug should hint at the page content without needing the title.
- Stable: once published and indexed, avoid changing it — or set up a redirect if you must.
Should you remove stop words?
Words like "the", "a" and "of" rarely add search value, so many teams strip them for brevity. "the-best-way-to-write-a-slug" becomes "best-way-write-slug". This is a judgement call: remove them when the slug stays readable, but keep them when dropping them makes the phrase awkward or ambiguous.
Handling accents and special characters
Accented and non-Latin characters should be transliterated to their closest ASCII equivalent — "café" becomes "cafe" — and symbols like &, %, and ? should be removed or spelled out. This keeps URLs clean across browsers and avoids the ugly percent-encoding you sometimes see in copied links.
The Slug Generator handles all of this in one step: it lowercases text, replaces spaces with hyphens, transliterates accents and strips unsafe characters. Paste a title and copy a ready-to-use slug.
A repeatable process
Start from your page title, generate a slug, then read it aloud. If it is easy to say and clearly signals the topic, it is ready. If it is a jumble of words, shorten it until only the essentials remain. Consistent, tidy slugs make your whole site feel more trustworthy — to visitors and to search engines alike.
Try the Slug Generator
Turn titles into clean, URL-friendly slugs.