Dollar TechTECHNOLOGIES
SEOOn-Page·August 25, 2026·2 min read

How to Write SEO-Friendly URL Slugs (With Examples)

A simple guide to SEO-friendly URL slugs: what a slug is, the rules that make one effective, common mistakes to avoid, and clear before-and-after examples.


The slug is the human-readable part of a URL that names a specific page. It is the best-air-fryer-recipes in example.com/best-air-fryer-recipes. It is a small detail that quietly influences both click-through rate and rankings, and it takes seconds to get right.

Why slugs matter for SEO

A good slug helps in three ways. It gives searchers clarity, since a clean slug appears in search results and tells people what the page is about before they click. It sends a keyword signal, because including your target keyword in the slug reinforces the page's topic to search engines. And it improves shareability, as short, readable URLs look trustworthy when pasted into messages, forums and social posts.

The rules for a good slug

  1. Use lowercase. Mixed-case URLs can create duplicate-content issues on case-sensitive servers, so keep everything lowercase.
  2. Separate words with hyphens, not underscores. Google treats hyphens as word separators, while underscores can glue words together.
  3. Keep it short and focused. Include the main keyword and drop filler words like "the," "a" and "of" wherever the meaning survives.
  4. Strip special characters and accents. Punctuation, symbols and accented letters can break or clutter a URL.
  5. Avoid dates and stop-word soup. A slug like /2026/03/the-ultimate-guide-to-the-best ages badly and adds nothing.

Before and after

| Weak slug | Better slug | |---|---| | /Post?id=482 | /air-fryer-recipes | | /The_Ultimate_Guide_To_SEO! | /seo-guide | | /how-to-make-crème-brûlée | /how-to-make-creme-brulee |

Do it automatically

You do not have to clean slugs by hand. Our free Slug Generator turns any title into a clean, lowercase, hyphenated slug and strips accents and symbols for you, so your URLs stay consistent every time. Paste your headline, copy the result into your CMS, and you are done.

One caution: do not change slugs on live pages

Editing the slug of a page that already gets traffic changes its URL, which can break links and lose rankings unless you set up a 301 redirect from the old URL to the new one. Get the slug right at publish time and you will rarely need to touch it again.

It is a small habit with a real payoff. A tidy slug is one of the easiest on-page SEO wins there is.

Keep reading