How to Write URL Slugs That Search Engines Like

By the ToolPocket team · Updated 2026-12-05 · Editorial standards

The slug is the readable tail of a URL. It is a small detail that affects both how a link looks and how people remember it.

A good slug is short, descriptive and stable. Something like /guides/compress-images tells the reader exactly what is on the page before they click.

Rules that matter

Accents and non-English titles

Accented characters get percent-encoded, producing long unreadable URLs. Fold them to ASCII where possible: "café" becomes "cafe". This tool does that automatically by normalising the text and removing diacritics.

Changing a slug later

If you must change a slug, set up a 301 redirect from the old URL to the new one. Links and rankings are attached to the old address, and a redirect passes most of that value on. Skipping the redirect produces a soft 404 and loses the page's history.

Slugs and keywords

Including the main keyword in the slug helps readers understand the link, but the slug is a weak ranking signal compared with the title and content. Write for people first: a clear slug is also the one other sites will link to.

Trailing slashes and canonical URLs

To a browser, /guides/url-slugs and /guides/url-slugs/ are different URLs. Most servers treat them the same, but search engines see two addresses for one page unless you pick one and redirect the other. Choose a convention — with or without the trailing slash — and apply it everywhere, including internal links and the sitemap.

The same logic applies to query parameters used for tracking. A canonical tag or a redirect tells search engines which version counts; without it, ranking signals are split between duplicates.

Make one in a second

Paste a title into the slug generator and copy the result. If the title is long, trim it first so the slug stays readable.

← All guides