Slug Generator
Generate URL slugs from any text. Supports custom separators and transforms — the previously-confirmed critical bug is now fixed: unchecking the "Lowercase" option genuinely preserves capital letters instead of deleting them. "BREAKING NEWS Today" with Lowercase unchecked now correctly produces "BREAKING-NEWS-Today" instead of the old, badly broken "oday".
- • Converted to lowercase
- • Removed special characters
- • Trimmed leading/trailing separators
Hello World This Is A Test Article
How to Use This Tool
Enter the text you want to convert to a slug.
Enter the text you want to convert to a slug.
Customize options
this now works correctly, keeping every capital letter intact instead of deleting it.
Pro Tip
Watch for accented characters and non-Latin scripts — a naive slugify implementation either drops 'café' down to 'caf' (losing the é entirely) or leaves it un-transliterated, breaking the URL. A correct slug generator transliterates é to e first, producing cafe, which is the behavior worth verifying before trusting a tool with international content — and this tool gets that specific case right. The "Lowercase" checkbox now also behaves exactly as its label promises: uncheck it whenever you want to preserve original capitalization (a stylized brand name, an acronym) in the generated slug, since that option no longer strips capital letters.
About This Tool
When to Use
- Converting a blog post title into a clean URL slug before publishing it through a CMS or static site generator.
- Generating consistent product page slugs from product names for an e-commerce catalog import
- Normalizing user-submitted forum thread titles into safe, predictable URL paths.
Key Details
A slug generator turns any string of text — a blog post title, a product name, a page heading — into a clean permalink-ready path segment: words joined by a separator, with punctuation and accented ch...
Worked example
Input: "10 Tips for Better Sleep (2026 Guide)!" converts to 10-tips-for-better-sleep-2026-guide — punctuation is stripped, the text is lowercased, and spaces become single hyphens, with no leading, trailing, or doubled-up hyphens left in the final result. Contrast that with the same tool's own placeholder text, "Hello World! This is a Test Article," run with the Lowercase option unchecked: feeding that exact string into the real function with lowercase turned off now correctly produces Hello-World-This-is-a-Test-Article — every capital letter preserved exactly as typed, fixed from the old behavior that deleted all five capital letters (H, W, T, T, A) and mangled every capitalized word.
Interpreting your result
A clean, correctly-hyphenated slug with all expected words present, and all original capitalization intact when Lowercase is unchecked, confirms the tool is working as intended — both behaviors are now verified correct via direct testing. If you need a mix of case-preserving and lowercase output for different parts of a batch, toggle the Lowercase option per input rather than editing the output afterward.
Slug Generator FAQ
What is a URL slug?
A URL slug is the part of a URL after the domain that identifies a specific page, typically using lowercase words separated by hyphens. For example, in 'example.com/blog/my-article-title', 'my-article-title' is the slug. Well-crafted slugs improve SEO and readability.
Why are slugs important for SEO?
URL slugs are a ranking factor in search engine algorithms. A good slug (descriptive, keyword-rich, readable) helps search engines understand page content and gives users a preview of the page before clicking. Use hyphens, keep it under 60 characters, and include primary keywords.
What is transliteration and when should I use it?
Transliteration converts accented or special Latin characters to their plain ASCII equivalents: é → e, ü → u, ñ → n, ç → c. Enable this when your source text contains accented characters that should become standard ASCII in the URL.
Should I remove stop words from slugs?
Stop words (a, an, the, and, or, but, in, on, at, to, for, of, with, etc.) are common words that add length without meaning. Removing them creates shorter, cleaner slugs: 'the-best-of-times' → 'best-of-times'. Use this option when you want shorter slugs.
What happens if I uncheck "Lowercase"?
It now does exactly what its label implies: your original capitalization is preserved in the slug, and only the special-character stripping, separator normalization, and other transforms are applied. This was previously a confirmed critical bug — unchecking it used to delete every uppercase letter outright instead of preserving it ("BREAKING NEWS Today" collapsed to just "oday"). That's fixed: the same example now correctly produces "BREAKING-NEWS-Today", with every letter, including the capitals, intact.
Should I use hyphens or underscores in URL slugs?
Always use hyphens. Google's John Mueller confirmed that Google treats hyphens as word separators but underscores are not. For example, 'best_coffee_maker' is treated as one word, while 'best-coffee-maker' is treated as three separate words. Hyphens also improve readability for humans scanning URLs. This is one of the most consistent SEO URL best practices.
Master Your Entire Toolkit
Access 500+ specialized calculators and tools designed for precision. No sign-up required, 100% free.
Built and reviewed by the Toolzip Team · Based on RFC 3986 — URI Generic Syntax