Skip to main content
miji.be

Slug

A URL-friendly string identifier derived from a title or name, used to create readable and SEO-friendly web addresses.

May 1, 2026 / About 1 min read

SEO

A slug is a URL-friendly string that serves as a unique identifier for a web resource, typically derived from the resource's title or name. Slugs are created by converting text to lowercase, replacing spaces with hyphens, removing special characters, and truncating to a reasonable length. For example, the title "What Is URL Shortening?" becomes the slug "what-is-url-shortening."

The term "slug" originates from newspaper publishing, where it referred to a short name given to an article during production. In web development, slugs serve the same purpose: they provide a human-readable identifier that can be used in URLs.

In URL shortening, the concept of a slug applies to custom aliases. When a user creates a short URL with a custom code like "summer-sale," that code is essentially a slug for the shortened link. The same principles of good slug design apply: keep it concise, use meaningful words, and avoid characters that require encoding.

Slug generation must handle edge cases including duplicate slugs (requiring uniqueness enforcement), Unicode characters (requiring transliteration or encoding decisions), reserved words (that might conflict with application routes), and excessively long titles (requiring intelligent truncation).

Was this article helpful?

Related Terms

URL Slug

The human-readable portion of a URL that identifies a specific page, typically derived from the page title.

Permalink

A permanent URL that remains unchanged over time, providing a stable reference to a specific piece of content.

SEO-Friendly URL

A URL structure designed to be easily understood by both search engines and human users.

UTM Parameter

Tags added to URLs that track the source, medium, and campaign name of traffic in analytics tools.

Custom Alias

A custom alias is a user-defined short code that replaces the auto-generated random string in a short URL. It improves brand recognition, memorability, and click-through rates.

Title Tag

An HTML element that defines the title of a web page, displayed in browser tabs and search engine results.

Related Articles

Vanity URL Guide: Build Brand Value with Custom Links

Learn how to design and manage vanity URLs that strengthen your brand. Covers domain selection, naming conventions, and team-wide URL governance.

URL Shorteners and SEO - How Short Links Affect Search Rankings and Link Equity

Analyze the impact of short URLs on search engine optimization. Covers 301 redirect link equity, crawl budget effects, and SEO best practices.

How Custom Short URLs Boost Brand Recognition

Discover how branded short URLs strengthen brand identity. Learn strategies for creating memorable custom URLs that increase trust and CTR.

FAQ

What are the naming conventions for slugs?
Use lowercase alphanumeric characters and hyphens, keeping them short and meaningful. Use hyphens instead of spaces and omit stop words (the, a, is, etc.).
Is it okay to change a slug later?
You can, but always set up a 301 redirect from the old URL to the new one. External backlinks and search engine indexes may still reference the old URL.

Put the terms to work

Shorten a URL for Free