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.
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
- Enter or paste the text you want to slugify
- Choose your separator: hyphen or underscore
- Toggle lowercase, stop word removal, and max length options
- 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
Text Compare
Compare two texts side by side and find differences with highlighted word-by-word diff
Word Counter
Count words, characters, sentences, paragraphs and estimate reading time instantly
Case Converter
Convert text to UPPER CASE, lower case, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case
Text Repeater
Repeat text multiple times with customizable separator options
Remove Duplicates
Remove duplicate lines from text with options for case sensitivity, trimming, and order preservation
Find & Replace
Find and replace text with support for case sensitivity, whole word matching, and regular expressions