Slug Generator

Free online slug generator. Convert text to URL-friendly slugs with hyphen or underscore separators, lowercase option, stop word removal, and max length.

Everything runs in your browser — your data is never sent to any server.

Why Use Our Slug Generator?

Our slug generator converts any text into clean, URL-friendly slugs perfect for blog posts, product pages, and SEO-optimized URLs. With options for separator type, lowercase enforcement, stop word removal, and maximum length control, you can create consistent, readable slugs that improve your site's SEO and user experience.

Key Features

  • Hyphen or underscore separator options
  • Automatic lowercase conversion for URL consistency
  • Stop word removal for cleaner, shorter slugs
  • Maximum length control with smart truncation
  • Accent and special character normalization

How to Use This Tool

  1. Enter or paste the text you want to slugify
  2. Choose your separator: hyphen or underscore
  3. Toggle lowercase, stop word removal, and max length options
  4. Copy the generated slug for your URL

Technical Details

The slug generator normalizes Unicode characters using NFD decomposition to remove accents (e.g., café → cafe). Non-alphanumeric characters are replaced with spaces, which become the chosen separator. Smart truncation avoids cutting words in half by preferring to truncate at the last separator within the max length. Stop words are filtered from a common English list.

Frequently Asked Questions

What are stop words?

Stop words are common words like 'a', 'the', 'and', 'is' that add no meaning to URLs. Removing them creates shorter, cleaner slugs.

How does smart truncation work?

When a max length is set, the slug is truncated at that length. If a separator falls within the last 50% of the string, truncation happens there instead, avoiding cut-off words.

Does it handle non-English characters?

Yes, accented characters are normalized (é → e, ñ → n). Characters that can't be transliterated are removed, ensuring the output is always ASCII-safe.

Related tools