A URL slug is the part of a web address that identifies a specific page in readable words.
A URL slug is the part of a web address that identifies a specific page in readable words. In an address like example.com/blog/how-to-prune-roses, the slug is "how-to-prune-roses," the final segment that names the individual page. It sits after the domain and any folder path and typically describes the content of the page in plain language, using lowercase letters and hyphens between words. The slug is the human-facing label within a URL, distinct from the domain that names the site and the path that organizes it.
The mechanics of a slug are simple but consequential. When a content management system publishes a page, it usually generates a slug automatically from the title, converting spaces to hyphens and stripping punctuation and capital letters. A good slug is short, descriptive, and stable: it contains the words that matter, omits filler like "and" or "the" where they add nothing, and ideally never changes once published. Changing a slug changes the URL, which breaks any existing links and can lose accumulated ranking value unless a redirect is put in place. Because of this, the slug is best chosen thoughtfully at publication and then left alone.
The word "slug" was borrowed from newspaper publishing. In a print newsroom, a slug was a short label attached to a story as it moved through production, a quick identifier like "rose-pruning" that let editors and typesetters refer to a piece before it had a final headline. Early web publishers adopted the term for the readable identifier at the end of a URL, and it stuck. The metaphor fits well: in both worlds, the slug is a compact, human-friendly handle for a larger piece of content.
Slugs matter for both usability and search. A clear slug tells a person what a page is about before they click, which builds confidence in a link shared in an email, a message, or a search result. Search engines read the words in a URL as a mild relevance signal, so a descriptive slug that includes the page's main topic reinforces what the page is about. Clean, readable URLs also look more trustworthy and are easier to remember, type, and share than strings of numbers and codes. Over a whole site, a consistent slug convention makes the address structure logical and predictable.
The common mistakes are avoidable with a little discipline. Long slugs crammed with every keyword look spammy and are hard to read, while slugs made of dates, database IDs, or random characters tell neither people nor search engines anything useful. Using underscores or spaces instead of hyphens can cause parsing problems, and inconsistent capitalization can create duplicate-looking URLs. The biggest hazard is changing slugs casually after a page has been live, which severs inbound links unless handled with a proper redirect. Slugs relate closely to other URL details such as the trailing slash at the end of an address and the overall structure of the path, and they contribute, alongside titles and headings, to how clearly a page communicates its purpose. Chosen well and left stable, a slug is a small element that quietly improves clarity, trust, and search performance.
A clear, keyword-rich slug helps search engines and users understand a page instantly. It is a small on-page detail that improves clicks and relevance.