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
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.
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.
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.
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.
Related questions
All questions β- How Do I Clean Up Text Copied From a PDF?PDFs store visual lines, not paragraphs, so copying breaks text awkwardly. Two tool passes plus one manual habit fix it fast.
- Why Did My Text Turn Into Weird Characters?That garbage is called mojibake: text encoded one way being read another. It is cosmetic damage with a mechanical fix.
- Does Character Count Include Spaces?Usually yes, but it varies by platform. Spaces are characters to nearly every machine, yet some human editors disagree.
- How Many Words Fit on a Standard Page?Roughly 500 single-spaced, 250 double-spaced, assuming 12-point type and normal margins. The honest answer depends on four settings.
Related guides
All guides β- Choosing Letter Case DeliberatelyCase is a tone-of-voice dial most people turn unconsciously. Four conventions, four habitats, one converter for fixing the mismatches.
- Writing Meta Descriptions That FitThe snippet is your ad in search results. Write it to a measured budget instead of hoping truncation is kind.
- Planning Meetings Across Time Zones Without the GuessworkMost scheduling pain comes from three avoidable mistakes: trusting abbreviations, converting with the wrong date, and ignoring that the meeting lands on someone elseβs tomorrow.
- Daylight Saving and Time Conversion: The Mistakes That Break SchedulesOffsets are answers to "at what date?", not properties of a zone. Every classic DST bug β drift, gaps, duplicates, hemisphere flips β follows from forgetting that.
Related reading
All articles β- Plain Text Is UnderratedFormats from the 1970s still open perfectly. That immortality is not nostalgia; it is architecture.
- Duplicate Lines Are a Data SmellSometimes duplicates are errors; sometimes they are data. Telling them apart is the skill; removing the harmful ones is the easy part.
- Where Word Counts Quietly Shape WritingWord counts are the invisible currency of writing: budgets, prices, and limits all denominated in words. Knowing the exchange rates pays.
- Reading Regex Without FearRegex looks like line noise because it compresses a whole language into punctuation. Learn the eight moves and any pattern becomes parseable.