SEO · 4 min read · 2026-08-16

URL Slug Best Practices for SEO (2026)

How to write URL slugs that rank, that survive redesigns, and that don't embarrass you five years later.

Header Ad (Adsterra placeholder)

What makes a slug 'good'

A good URL slug is short, lowercase, hyphen-separated, keyword-focused and free of stop words. It reads like a summary of the page in a phrase.

Compare '/best-writing-tools-2026' with '/blog/post?id=8291&cat=writing'. The first tells you what the page is and hints at what's inside. The second tells you nothing.

Rules that survive redesigns

1. Keep slugs short

Aim for 3–5 words. Long slugs are truncated in search results, shared awkwardly on social, and hard to remember.

2. Skip the year unless it matters

Year-in-slug ('best-tools-2026') dates fast. Leave the year in the title where you can update it, not in the URL where you can't.

3. Never include category or date paths for evergreen content

'/writing/2026/08/best-tools' is fragile. Move a post to a different category and you break every backlink.

4. Use hyphens, not underscores

Google treats hyphens as word separators and underscores as joiners.

Automating slug generation

Every CMS ships with a slug field. Most default to a live derivation of the post title. That's a fine start, but you should always review the auto-generated slug before publishing — CMS defaults leave in stop words, keep uppercase letters, and include the full title even when it's 15 words long.

For bulk work — importing 500 posts, migrating a site, generating URLs for a spreadsheet of titles — a batch Text to Slug converter is much faster than editing them one by one.

In-Content Ad (Adsterra placeholder)

Key takeaways

Short, lowercase, hyphen-separated slugs win.

Skip years, categories and dates from URLs unless you enjoy fixing 404s.

Always review the auto-generated slug before publishing.

Frequently asked questions

Should slugs contain the target keyword?
Yes — it's a mild ranking factor and a strong click-through factor.
How long should a slug be?
3–5 words, usually under 60 characters.
Should I remove stop words?
Yes — 'the', 'a', 'of', 'to' add length without meaning.
Can I change a slug after publishing?
You can, but always add a 301 redirect from the old URL.
Do numbers hurt SEO in slugs?
No — numbers are fine when meaningful ('top-10-tools'), problematic when arbitrary ('post-8291').
Are non-Latin characters OK?
Yes for international sites — Google handles them well — but ASCII slugs travel better across platforms.
Text Tools Hub Editorial Team

We build and document free, privacy-first browser tools used by writers, students, marketers and developers. Every article is written and reviewed by the same team that ships the tools.

Expertise: Writing workflows, SEO content, text processing, front-end performance

Last updated:
Reading time:
4 min

Related articles

Footer Ad (Adsterra placeholder)