Tech
Slug Generator
Convert any title or sentence into a clean, URL-safe slug. Transliterates accents, drops punctuation, and respects max length.
Your text
Your URL-safe slug will appear here.Options
Map cafe-with-accent to cafe, sharp s to ss, ligatures to ae and oe.
Removes a, an, the, and, or, of, to, in, for, on, at, by, with.
Stats
Slug length0
Original length0
Characters transliterated0
Characters stripped0
Stripped covers emoji, CJK characters, and any punctuation that has no ASCII fallback. They are dropped silently so the slug stays URL-safe.
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?
Emoji and CJK characters have no reliable ASCII equivalent, so the generator drops them rather than produce a broken or percent-encoded slug like %F0%9F%9A%80. The Stats panel reports how many characters were stripped. If you need non-Latin scripts in your URL, encode the slug manually with encodeURIComponent after generating it here.
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.