Every page on your site has one, most people never think about it, and getting it wrong is one of the easiest ways to leave rankings on the table. The slug is the short, readable string at the end of a URL — the part that comes after your domain and any folders. It is a small piece of on-page SEO, but it is a piece that Google reads on every single crawl, that users see in search results, and that becomes very expensive to change once a page has earned links. Here is what a slug actually is, what makes a good one, and the handful of rules worth following.
What Is a Slug?
In the URL blogthememachine.com/blog/what-is-an-seo-slug, the slug is what-is-an-seo-slug. It is the human-readable identifier for that specific page.
The word comes from newspaper publishing, where a “slug” was the short internal name given to a story while it moved through production. Content management systems borrowed the term, and it stuck. In WordPress you will find it in the permalink field. In Astro, Next.js, and most static site generators, the slug is usually derived from the filename.
A full URL breaks down like this:
- Protocol —
https:// - Domain —
blogthememachine.com - Path or folder —
/blog/ - Slug —
what-is-an-seo-slug
Only the last part is under your direct editorial control on a per-page basis, and only the last part describes what the specific page is about.
Does the Slug Actually Affect Rankings?
Yes, but modestly and indirectly. It is worth being precise about this, because slugs get both overhyped and dismissed.
Google has said that words in the URL are a “very small ranking factor.” That is a real signal, just not a large one. The bigger effects are second-order:
- Search result clarity. The URL appears in the SERP snippet, often as a breadcrumb. A clear slug tells a searcher what they are about to click, which nudges click-through rate.
- Anchor text when people link to you. When someone pastes a bare URL as a link, the words in that URL become the anchor text.
/blog/how-to-do-keyword-researchis a far better accidental anchor than/p?id=8842. - Crawl comprehension. A descriptive slug reinforces the topic you have already signaled in the title, headings, and body copy. Consistency across those signals helps.
- Shareability. Clean URLs get copied into emails, Slack messages, and forum posts without looking broken or suspicious.
None of these will rescue thin content. All of them compound across hundreds of pages.
What Makes a Good SEO Slug
Keep It Short
Aim for three to five words. Long slugs get truncated in search results and are harder to read at a glance. If your title is “The Complete Beginner’s Guide to Understanding How Keyword Research Works in 2026,” your slug does not need to be the-complete-beginners-guide-to-understanding-how-keyword-research-works-in-2026. It needs to be keyword-research-guide.
Include the Target Keyword — Once
Put your primary keyword in the slug, naturally, and only once. seo-slug belongs in a page about SEO slugs. What does not belong is seo-slug-best-seo-slug-guide-seo-tips. Keyword stuffing in a URL is one of the more obvious spam signals you can send, and it reads as untrustworthy to humans too.
Use Hyphens, Not Underscores
Google treats hyphens as word separators and underscores as word joiners. That means seo_slug_guide may be read as one long token, while seo-slug-guide is read as three words. This is a documented, unambiguous difference. Always use hyphens.
Use Lowercase Only
Some servers treat /Blog/My-Post and /blog/my-post as two different URLs. That creates duplicate content and splits any link equity between them. Lowercase everything, always, and enforce it at the server or framework level rather than relying on discipline.
Drop the Stop Words
Words like a, the, of, and, for, and to add length without adding meaning to a machine. benefits-of-technical-seo works fine as technical-seo-benefits. That said, do not mangle readability to save two characters — if removing a stop word makes the slug ambiguous, leave it in.
Avoid Dates and Numbers You Will Regret
10-seo-tips-2026 looks great in January and terrible the following January. If you plan to update the article annually — and for most listicles you should — leave the year out of the slug and put it in the title instead. Titles are cheap to change. Slugs are not.
Match the Slug to the Search Intent, Not the Clever Title
Your headline can be playful. Your slug should be literal. If the article is titled “Stop Guessing: The Only Keyword Method You Need,” the slug should still be something like keyword-research-method. Nobody searches for your cleverness.
Common Slug Mistakes That Cost You
Auto-generated ID slugs. URLs like /post?p=1428 or /article/8f3c9a2b carry zero semantic information. Many CMS platforms default to these. Change the setting before you publish anything.
Publishing the draft title. A surprising number of live pages have slugs like untitled-2 or new-post-draft-final-v3 because the slug was generated from a working title and never updated. Check it before you hit publish.
Changing slugs without redirects. This is the expensive one. If a page has been live and has accumulated any backlinks or internal links, changing the slug without a 301 redirect throws away that equity and hands visitors a 404. If you must change it, redirect the old URL to the new one permanently — and make sure it is a 301 rather than a 302, because the difference decides whether the ranking signals transfer at all. See 301 vs 302 redirects.
Deep, unnecessary folder nesting. /blog/2026/07/seo/technical/on-page/slugs/what-is-a-slug is not more organized, it is just longer. Flat is better. Two levels is usually plenty.
Special characters and spaces. Spaces become %20, accented characters become percent-encoded gibberish, and both look broken when shared. Stick to lowercase letters, numbers, and hyphens.
Should You Ever Change an Existing Slug?
Usually, no. The default answer is leave it alone.
Change it only when the benefit clearly outweighs the risk:
- The slug is genuinely broken or meaningless (
/p=442) - The slug contradicts the page content after a major rewrite
- The slug contains a date on evergreen content you now update yearly
- You are consolidating duplicate pages anyway
When you do change one, implement a 301 redirect from the old URL to the new one, update every internal link that pointed at the old slug rather than relying on the redirect chain, and resubmit the page in Search Console. Redirects preserve most link equity, but they are a patch, not a free action.
If you are auditing a site and find dozens of poor slugs, prioritize ruthlessly. Fix the ones on pages that get traffic or have links. Leave the orphaned, zero-traffic pages alone — the redirect overhead is not worth it.
Slugs in Practice: A Quick Checklist
Before publishing any page, run through this:
- Three to five words, lowercase, hyphen-separated
- Primary keyword present, appearing exactly once
- No stop words unless they aid readability
- No dates on evergreen content
- No special characters, spaces, or uppercase letters
- Descriptive of the content, not of your headline pun
- Distinct from every other slug on the site
That last point matters more than it sounds. Near-identical slugs across similar pages are a strong hint that you have two pages competing for the same query, which is a problem worth resolving before it becomes a ranking issue.
Where Slugs Fit in the Bigger Picture
A slug is one line item on a much longer list. It sits alongside title tags, meta descriptions, heading structure, and internal linking as part of the on-page layer — and our on-page SEO checklist walks through how those pieces fit together.
The slug is downstream of a decision you should have made earlier: what keyword this page is actually targeting. If you have not settled that, the slug is guesswork. Our guide to how to do keyword research covers how to pick a primary term before you write, and if you are unsure how many terms one page should realistically chase, we cover that in how many keywords to target per page.
It is also worth understanding how URLs interact with crawling, canonicalization, and duplicate content — all of which we cover in technical SEO basics.
Small Detail, Permanent Consequence
Slugs are a five-second decision with a multi-year lifespan. They will not make a mediocre page rank, and a perfect slug on thin content is still thin content. But they are free to get right at publish time and genuinely costly to fix later, which makes them one of the better returns on attention in on-page SEO.
Write it short, write it literal, use hyphens, and then never touch it again.
If you want a full audit of your URL structure and the rest of your on-page foundations, take a look at our SEO services or get in touch with the team at blogthememachine.com. Subscribe to our newsletter below for more practical SEO guides delivered straight to your inbox.