Slug Generator
Convert any text to a URL-friendly slug. Free online slug generator with options for separator and transliteration.
Output will appear here...
What is Slug Generator?
A URL slug is the part of a web address that identifies a specific page in a human-readable format. For example, 'My Blog Post Title!' becomes 'my-blog-post-title'. Slugs are lowercase, use hyphens instead of spaces, and strip special characters. Good slugs improve SEO, make URLs shareable, and help users understand the page content from the URL alone.
How to Use
- Type or paste your title or text in the input field
- The slug is generated in real-time as you type
- Choose a separator: hyphen (-) or underscore (_)
- Toggle transliteration to convert non-ASCII characters (e.g., accents to plain letters)
Examples
Blog title to slug
Product name to slug
Related Tools
Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and more. Free online case converter.
URL Encoder/Decoder
Encode or decode URL components instantly. Free online URL encoder and decoder for special characters.
Regex Tester
Test regular expressions online with real-time matching and group extraction. Free regex tester with flags support.
Word Counter
Count words, characters, sentences, paragraphs, and estimate reading time instantly. Free online word counter with real-time stats.
Frequently Asked Questions
What characters are removed from a slug?
Special characters (! @ # $ % ^ & * etc.) are stripped. Spaces are replaced with the chosen separator. Accented characters are transliterated to plain ASCII. Only lowercase letters, numbers, and the separator are kept.
Should I use hyphens or underscores?
Hyphens are the standard for URL slugs and are recommended by Google for SEO. Underscores are sometimes used in file names or technical contexts. Most CMS platforms (WordPress, Next.js) default to hyphens.
How long should a URL slug be?
Keep slugs concise — 3-5 words is ideal for SEO. Google truncates long URLs in search results. Remove stop words (a, the, is, of) and focus on key terms. For example, 'how-to-build-rest-api' is better than 'how-to-build-a-rest-api-with-nodejs'.