Services
AI Search (AEO · GEO)
AI Search OptimizationAnswer Engine Optimization (AEO)Generative Engine Optimization (GEO)ChatGPT SEOGoogle AI Overviews & AI Mode OptimizationAI Visibility Audit
Technical SEO
Technical SEO ServicesSEO AuditCore Web Vitals & Site Speed OptimizationSEO Migration & ReplatformingSchema Markup & Structured DataInternational & Multilingual SEO
Content & On-page SEO
Keyword Research & Search Intent MappingSEO Content StrategySEO Content WritingContent Refresh & OptimisationProgrammatic SEOOn-page SEO Services
Link Building & PR
Link Building ServicesDigital PR ServicesGuest Posting ServicesBacklink Audit & DisavowBrand Mentions & Digital Citations
Specialist SEO
Local SEO ServicesEcommerce SEO ServicesEnterprise SEO ServicesSaaS SEO ServicesYouTube SEOApp Store Optimization (ASO)
Strategy & Management
SEO ConsultingMonthly SEO ManagementSEO Reporting & Analytics
AI Search (AEO · GEO)
Industries SaaS SEOB2B SEOEcommerce SEOSEO for Law FirmsHealthcare SEOReal Estate SEOFintech & Finance SEOHome Services SEODental SEOEducation & EdTech SEO
Free Tools (33)
Learn GlossaryOur method
BlogPricingAboutContactFree AI visibility audit
Blog · SEO Guides

What Is an SEO Slug? A Complete Guide for 2026

An SEO slug is the readable part of a URL after the domain. Learn what makes a good slug, how long it should be, and how to write and change one safely.

SA
Saima AktherSEO and AEO Enthusiast
Updated 8 min read
Abstract illustration for What Is an SEO Slug
On this pageKey takeawaysWhat is an SEO slug?What does a good slug look like?How long should a slug be?Should a slug include keywords?How to write a slugStep 1: Start with the page titleStep 2: Keep the main keywordStep 3: Remove stop wordsStep 4: Lowercase everything and use hyphensStep 5: Check the lengthStep 6: Check for duplicates and datesHow do I change a slug in WordPress?Should I change an existing slug?Common slug mistakesFAQSources
Short answerAn SEO slug is the short, readable part of a URL that names a page, such as best-seo-tools in example.com/blog/best-seo-tools. A good slug uses 3 to 5 lowercase words, separated by hyphens, with the page's main keyword near the front. It helps people and search engines understand the page before they open it.

Key takeaways

  • A slug is the last part of a URL. In example.com/blog/best-seo-tools, the slug is best-seo-tools.
  • Keep slugs short. Aim for 3 to 5 words and under 60 characters, all lowercase, separated by hyphens.
  • Put the main keyword first. Use the phrase the page targets, near the start of the slug.
  • Use hyphens, never underscores. Google reads seo-guide as two words and seo_guide as one token.
  • Treat a published slug as permanent. Changing one needs a 301 redirect, or the page loses its links and ranking history.

Facts in this guide were checked in November 2026 against Google Search Central documentation.

What is an SEO slug?

An SEO slug is the human-readable, page-specific part of a web address. It sits after the domain and any folders, and before any query strings. In the URL https://example.com/blog/what-is-an-seo-slug, the slug is what-is-an-seo-slug.

The word "slug" comes from publishing, where editors used short names to identify stories. Content systems adopted the term for the URL-friendly version of a title. WordPress, for example, builds a slug from the post title automatically and lets you edit it in the post settings.

URL part Example What it does
Domain example.com Identifies the website
Folder /blog/ Groups related pages
Slug what-is-an-seo-slug Names this specific page
Query string ?utm_source=newsletter Tracks the visit, not the page

A slug is not the whole URL. The domain, folders and parameters are separate parts, and only the slug is the piece a writer usually controls page by page.

What does a good slug look like?

A good slug is short, lowercase, hyphen-separated and descriptive. A reader should be able to guess the page's topic from the slug alone, without seeing the title. If the slug reads like a sentence fragment that names the topic, it is doing its job.

Use only letters, numbers and hyphens. Strip accents to plain ASCII, remove punctuation and symbols, and never use spaces, underscores or capital letters. A slug with mixed case can create two different URLs on some servers, which splits links between them.

Good slug Bad slug Why
best-seo-tools Best_SEO_Tools_2026!! Capitals, underscores and symbols
improve-seo index.php?topic=42&area=3a5 Long ID numbers say nothing
bake-bread bake_bread Underscores join words into one token
keyword-research-checklist the-complete-ultimate-guide-to-keyword-research Too long and full of filler

Google's own guidance says the same thing: use readable words instead of long ID numbers, and separate words with hyphens. Its URL structure guide, updated in October 2026, repeats that advice for every new page.

How long should a slug be?

Aim for 3 to 5 words, roughly 30 to 60 characters. That length fits in search results without being cut off, reads well when shared, and still names the topic clearly. Below three words a slug often feels too generic, and beyond five the words that matter start slipping toward the end.

There is no hard character limit from Google. Google's John Mueller has said that URL length does not matter, because Google uses URLs as identifiers. Length still matters for people, though: short URLs are easier to read aloud, paste into messages and remember.

Do not pad a short slug with filler, and do not cut a clear slug just to hit a number. A 6-word slug that names the topic beats a 3-word slug that says nothing. Clarity comes first, brevity second.

Should a slug include keywords?

Yes. Put the page's primary keyword in the slug, near the front. The slug is one of the first things a search engine reads, and it is also what people see in search results, so it should match the phrase the page is built around. A page about keyword research should have a slug like keyword-research-checklist, not post-482.

Do not treat the slug as a ranking trick. Google's Gary Illyes has called URL keywords an incredibly small ranking signal, and stuffing extra keywords into a slug will not lift a weak page. The slug's real job is clarity: it tells readers and search engines what the page covers.

Use one keyword phrase, not three. A slug like best-seo-tools-free-cheap-top reads as spam and tells nobody what the page actually does. Pick the two or three terms that genuinely describe the page and stop there.

How to write a slug

Follow these six steps for every new page, and your slugs will stay clean without extra thought.

Step 1: Start with the page title

Write the title first, then shorten it. The title already names the topic, so the slug should be a compressed version of it. A title like "Best SEO Tools in 2026: 10 Tools Compared" becomes best-seo-tools.

Step 2: Keep the main keyword

Check that the slug still contains the page's primary keyword. If shortening the title removed it, add it back near the front. The keyword is the one phrase a searcher would type to find this page.

Step 3: Remove stop words

Drop small filler words such as a, an, the, of, and, to and for when the slug still reads well without them. best-seo-tools is better than the-best-seo-tools. Keep a stop word only when removing it changes the meaning, as in history-of-art.

Step 4: Lowercase everything and use hyphens

Convert every letter to lowercase and join words with single hyphens. Never use spaces, underscores, double hyphens or capital letters. Check for stray characters from the title, such as colons, apostrophes and parentheses, and remove them.

Step 5: Check the length

Count the words and characters. If the slug runs past 5 words or 60 characters, trim a word from the end rather than the front, so the keyword stays first. If it is under 3 words and vague, add one descriptive word.

Step 6: Check for duplicates and dates

Make sure no other page on the site already uses the same slug, and leave dates out of evergreen pages. A slug with 2026 in it looks stale next year and tempts you into a risky rename. Only include a year when the content is genuinely tied to it.

How do I change a slug in WordPress?

WordPress builds a slug from the post title and lets you change it from the post editor. Open the post, click on the URL in the settings sidebar, and type the new slug. WordPress saves the page at the new address.

For a site-wide change, go to Settings » Permalinks and pick a structure. The "Post name" structure is the usual recommendation, because it makes every post URL end with the post name. Changing this setting rewrites every post URL on the site, so do it early, before the site has many pages.

Changing a slug on a published page is a different job from writing one on a new page. The old URL still exists in search results, bookmarks and other sites' links, so you need a redirect. See the next section before you change anything live.

Should I change an existing slug?

Usually no. Once a page is indexed, treat its slug as effectively permanent. Changing it creates a new URL, and the old one stops working unless you add a 301 redirect to the new address. Without that redirect, the page loses its backlinks and ranking history.

Change a slug only when the current one is clearly wrong, for example if it contains a typo, a year that is now out of date, or a product name you no longer sell.

When you do change one, add a 301 redirect from the old URL to the new one on the same day. Update any internal links that point to the old address too.

Do not change a slug just because a new keyword looks better. The ranking gain from a slightly better slug is tiny, and the risk of a broken redirect or a lost link is real. Improve the page content instead, and leave the URL alone.

Common slug mistakes

These are the mistakes that cause the most trouble, and each one is easy to avoid.

Mistake What happens Fix
Underscores instead of hyphens Words join into one token Use hyphens only
Capital letters Two URLs for one page on some servers Lowercase everything
Dates in evergreen slugs The URL looks stale next year Leave dates out
Keyword stuffing The slug reads as spam One keyword phrase only
Changing a live slug Links and rankings break Add a 301 redirect first
Long ID numbers Nobody can read or share the URL Use descriptive words
Stop words everywhere The slug is long for no reason Drop filler words that add nothing

Check your site's top pages against this table once a year. Fixing a slug on a page with no traffic is cheap, but fixing one on a page that ranks is a job that needs a redirect plan.

Frequently asked questions

What is a slug in SEO?

A slug is the readable, page-specific part of a URL, such as best-seo-tools in example.com/blog/best-seo-tools. It names the page in lowercase words separated by hyphens, and it helps readers and search engines understand the page before opening it.

How long should an SEO slug be?

Aim for 3 to 5 words and under 60 characters. That length fits in search results, is easy to share, and still names the topic clearly. There is no hard limit from Google, so clarity matters more than hitting an exact character count.

Should I use hyphens or underscores in a slug?

Use hyphens. Google reads seo-guide as two words, but seo_guide as a single joined token. Underscores also look worse to readers and break the convention every major site follows.

Does the slug affect SEO rankings?

Only slightly. Google treats URL keywords as a very small ranking signal, so a good slug alone will not rank a page. Its main value is clarity: it helps people recognise the page in search results and makes links easier to share and trust.

Can I change a slug after publishing?

Yes, but add a 301 redirect from the old URL to the new one on the same day. Without a redirect, the old URL breaks and the page loses its backlinks and ranking history. Only change a live slug when the current one is clearly wrong.

Sources

SA
About the authorSaima Akther · SEO and AEO Enthusiast

Saima Akther is an SEO and AEO enthusiast who writes Serplark’s best-of lists and guides on SEO tools, answer engine optimization and AI search. Published . Spot an error or a missing tool? Tell us and we will check it.