Skip to main content

Guides Β· Text Tools Β· 3 min read

Writing URL Slugs That Help Instead of Hurt

A slug is the human-readable tail of a URL: the /questions/pdf part people see, say, paste, and trust. Search engines read them for relevance hints; humans read them for expectations. Both punish chaos.

Unlike most content decisions, slugs are effectively immutable once published: changing them costs redirects and lost equity. Getting them right at birth is the entire game, and Filorra’s text-to-slug tool applies the rules mechanically, locally in your browser.

Quick answer

Three to five meaningful words, lowercase, hyphen-separated, describing the page’s enduring essence, generated once and never changed. Drop filler words; keep the noun phrase a searcher would recognise.

Step by step: Writing URL Slugs That Help Instead of Hurt

  1. Distil the page to its core noun phrase

    "How to Compress a PDF Without Losing Quality" distils to compress-pdf-without-quality-loss or simply compress-pdf. The slug names the destination, not the headline.

  2. Cut stop words and filler

    Articles, prepositions, and helper verbs add length without meaning: "a-guide-to-the-best-way-to" becomes dead weight. Keep words a searcher might actually type.

  3. Normalise mechanically

    Run the phrase through text-to-slug: lowercase, hyphens between words, accents transliterated, punctuation stripped, no leading/trailing hyphens. Mechanical normalisation prevents the one-off typos that become permanent.

  4. Freeze it

    Publish with the slug and treat it as permanent. Future rewrites change titles and content, not URLs. If a slug must die, redirect it properly and document why.

Why slugs still matter in 2026

Search engines long since stopped weighting slugs heavily, but humans never stopped reading them: URLs appear in shared links, browser suggestions, print materials, and hover-bar previews. A trustworthy slug sets expectations before the page loads; a mangled one ("p=1182&cat=7") spends credibility.

Exact-match keywords help marginally and cost nothing when the honest name contains them anyway. The sin is stuffing: compress-pdf-free-online-fast-tool-2026 signals spam to readers and algorithms alike.

Structural choices that compound

Keep hierarchies shallow and semantic: /guides/pdf/how-to-compress-a-pdf tells a story; /content/2026/03/final-v2 does not. Category-included slugs aid orientation but bind the URL to taxonomy; choose knowingly, since moving an article between categories then changes its URL.

Uniqueness must be absolute: two pages sharing a slug in different sections create ambiguity for links, analytics, and indexing. Registry-driven sites enforce this at build time; hand-built sites need the discipline manually.

Common mistakes

Letting the CMS auto-generate from full headlines
Auto-slugs arrive long and dated ("how-to-compress-a-pdf-without-losing-quality-in-2026"). Trim to essence before publishing; after publishing is too late.
Changing slugs during redesigns without redirects
Every slug change requires a 301 redirect map. Without it, accumulated links 404 and rankings reset. Usually the right call is: do not change the slug.
Using underscores or spaces
Underscores visually vanish in underlined links and historically were not treated as word separators. Spaces break URLs into %20 ugliness. Hyphens only.

Privacy and security

Slug generation runs locally; unpublished article titles and drafts never leave your browser.

Frequently asked questions

Do hyphens or underscores rank better?
Hyphens. Search engines treat them as word separators; underscores have historically been treated as word joiners. This is settled enough to stop debating.
How long is too long for a slug?
Beyond roughly five meaningful words, extra terms dilute rather than add. If truncation would cut your slug mid-thought in shared links, it is too long.
All questions β†’
All guides β†’
All articles β†’