What is a URL slug? (and how to write a good one)
Slugs are the readable part of a URL after the domain. Keep them short, lowercase, hyphenated, and stable.
Readable links
A slug like /guides/what-is-a-url-slug tells humans and search engines what the page is about. Random IDs work technically but waste a clarity opportunity.
Conventions that help
Use lowercase letters, numbers, and hyphens. Avoid spaces, underscores in public URLs when you can, and stop words stuffing. Change slugs rarely—redirects are easy to forget.
Generate, then edit
Paste a title into a slug generator, then trim marketing fluff (“best ever amazing”) so the slug stays scannable.
Try related tools
- Slug generator — Turn titles into URL-friendly slugs (kebab-case).
- URL encoder — Encode or decode query strings and path segments safely.