The last part of a URL does more SEO and usability work than its size suggests. Here's how to write one well.
A slug is the human-readable part of a URL that identifies a specific page — in `example.com/blog/how-to-make-coffee`, the slug is `how-to-make-coffee`. It's a small detail that's easy to overlook when publishing something, but it affects both how search engines understand your page and how comfortable a human is clicking (or sharing) the link.
Search engines use the words in a URL as one of many signals for understanding what a page is about — not the dominant signal by any means, but a real one. A slug like `/product-42891` tells a search engine (and a human) nothing about the page's content. A slug like `/wireless-noise-cancelling-headphones` tells both exactly what to expect. Beyond direct ranking effects, a descriptive slug also tends to get a better click-through rate in search results, since people can tell at a glance what they're clicking into.
Converting a title into a proper slug by hand means lowercasing everything, replacing spaces with hyphens, stripping punctuation, and handling special characters — several small steps that are easy to get slightly wrong or inconsistent about, especially across a large site with many pages. The Slug Generator does this conversion automatically and consistently, turning "10 Tips for Better Sleep!" into `10-tips-for-better-sleep` in one step.
Once a slug has been published and indexed, avoid changing it unless truly necessary — changing a URL breaks any existing links and requires a proper redirect to preserve SEO value and avoid a broken-link experience for anyone with the old link bookmarked or shared.
Not necessarily, and often shouldn't. A page titled "The Complete, Definitive Guide to Understanding How Compound Interest Actually Works in 2026" doesn't need a slug that long — something like `how-compound-interest-works` captures the essential meaning without the extra length. The title is for humans reading the page; the slug is a more compressed, functional identifier that still needs to be understandable on its own.
It helps to include the relevant keyword naturally, but exact-match obsession isn't necessary or even ideal — a clear, readable slug that reflects the page's actual content is more valuable than a forced exact match.
Digits are standard and generally preferred — '10-tips' rather than 'ten-tips' — since that's how people most often type or search for numbered content.
The old URL will break unless you set up a redirect to the new one; without a redirect, anyone using the old link (including search engines that have already indexed it) will hit a 404.
Regular expressions are powerful and famously unreadable. Here's how to build one up piece by piece instead of guessing blindly.
Spaces, symbols, and special characters can't travel safely in a URL as-is. Here's the actual rule for what gets encoded and why.
That 36-character string of hex digits and dashes shows up in database records, API responses, and file names everywhere. Here's why.
JWTs show up in almost every modern login system. Here's what the three parts actually mean, and what a JWT can't do for you.