What Is a URL Slug?

What Is a URL Slug?

In toolask.com/guides/what-is-a-url-slug/, the last part is the slug. It’s the human-readable name of a page in its URL — and it’s quietly one of the more important strings on your site.

Why slugs matter

  • Search engines read them. Keywords in the URL are a relevance signal. example.com/how-to-trim-video outranks example.com/p/12345 for the obvious query.
  • Humans read them. A link that says what it contains gets clicked more and shared more cleanly.
  • They’re permanent. Changing a slug later breaks links unless you set up redirects. Get it right the first time.

The rules of a good slug

  1. Lowercase, hyphens only — how-to-trim-video, never How_To_Trim Video.
  2. Short — aim for 3–6 words; strip filler (“the”, “a”, “and”).
  3. Keywords early — put the main term near the front.
  4. No dates — 2026-guide goes stale by design.
  5. ASCII only — accented characters and non-Latin scripts get percent-encoded into URL gibberish. Transliterate them.

Generating one

Take a title, apply the rules, and you get a slug:

“The Complete Guide: How to Convert MKV to MP4 in 2026!” → convert-mkv-to-mp4

The slug generator does exactly this automatically — paste any title or phrase and it produces a clean, URL-safe slug. It handles the fiddly parts: stripping punctuation, replacing spaces with hyphens, and removing non-ASCII characters.

One more thing

Slugs should be unique per site. If two articles would generate the same slug, one gets a suffix (-2). The generator won’t know that — check against your existing URLs when it matters.