Slug Generator
Convert any title or sentence into a clean, URL-safe slug. Transliterates accents, drops punctuation, and respects max length.
URL Slug Format Reference
| Source text | Slug form | Why |
|---|---|---|
| Summer Sale 2026 | summer-sale-2026 | Lowercase words |
| Café Menu | cafe-menu | Accents transliterated |
| Tips & Tricks | tips-tricks | Ampersand removed |
| Hello, World! | hello-world | Punctuation removed |
| Multiple spaces | multiple-spaces | Spaces collapsed |
Frequently Asked Questions about the Slug Generator
What is a URL slug?
A slug is the human-readable segment at the end of a URL path, such as "hello-world" in /blog/hello-world/. Good slugs use only lowercase letters, digits, and a single separator character so they survive copy-paste, email clients, and search-engine indexing without percent-encoding.
Why does it strip emoji and Chinese characters?
This generator intentionally produces ASCII-only slugs, so it drops characters without a configured transliteration. Unicode path segments are valid and browsers can percent-encode them; they are not broken. Use a Unicode-aware slug system when preserving CJK or other scripts is a requirement.
How does the transliteration option work?
The generator runs two passes. First, a manual swap table handles characters Unicode cannot decompose: sharp-s becomes "ss", the ae and oe ligatures expand to "ae" and "oe", and Nordic letters like thorn and eth map to "th" and "d". Then NFKD normalization strips combining accents, so "cafe" with an acute accent on the e becomes plain "cafe". German umlauts (a, o, u with umlaut) are handled by NFKD alone, reducing to the bare vowel (matching the common English convention for borrowed words like "uber").
What does the max length cutoff do?
After all cleaning steps, the slug is trimmed to the cap you set (default 100 characters). The generator backs off to the last separator within the slice to avoid cutting a word in half. For example, a 13-character cap on "the-quick-brown-fox" gives "the-quick" instead of the mid-word "the-quick-bro". If no separator falls within the slice at all, it falls back to a hard cut at the limit.
Which words does the stop-word option remove?
The generator removes 13 common English function words: a, an, the, and, or, of, to, in, for, on, at, by, with. This option is off by default. Turn it on to shorten blog post slugs ("the-best-guide-to-seo" becomes "best-guide-seo"), but leave it off if your slug must match an existing URL exactly.
Related Calculators
More calculators in "Tech"
Morse Code TranslatorResistor Color Code CalculatorParallel Resistor CalculatorBattery Life CalculatorWire Gauge (AWG) CalculatorDownload Time Calculator
See all 98 calculators in "Tech"