URL Slug Generator
Turn a title or heading into a clean URL slug in your browser: accents transliterated, spaces to hyphens, a custom separator and a length cap.
What the URL slug generator does
A slug is the readable part of a URL, so it is written for a person first and a crawler second. Every accented letter is transliterated to its base letter before anything is removed, which is why "Café" becomes cafe rather than caf; characters without a single base letter are spelled out instead (ß becomes ss, æ becomes ae). Everything that is not an ASCII letter or a digit becomes the separator, runs of punctuation collapse into one, and the separator is trimmed from both ends so a slug never starts or ends with a hyphen. The length cap cuts at a word boundary rather than mid-word, because a URL that reads as a different word is worse than a shorter one. Stop words are kept on purpose: dropping them changes what the slug says, and a crawler reads the whole path anyway, so "the-10-best-coffee-brewers" stays intact. A slug is not unique by construction either — two titles can collapse to the same string, so check your CMS before publishing.
How to use it
URL Slug Generator: paste the title or heading into the box above, set Separator (default "-"), Maximum length (default 80), Lowercase (default "yes") and Transliterate accents (default "yes"), and press Run to get the URL slug below.
Worked example
Input:
Café déjà vu: 10 ways to brew better coffee!
Output:
cafe-deja-vu-10-ways-to-brew-better-coffee
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads title or heading and returns URL slug; reloading the page discards both.
A slug is the readable part of a URL, so it is written for a person first and a crawler second. Every accented letter is transliterated to its base letter before anything is removed, which is why "Café" becomes cafe rather than caf; characters without a single base letter are spelled out instead (ß becomes ss, æ becomes ae). Everything that is not an ASCII letter or a digit becomes the separator, runs of punctuation collapse into one, and the separator is trimmed from both ends so a slug never starts or ends with a hyphen. The length cap cuts at a word boundary rather than mid-word, because a URL that reads as a different word is worse than a shorter one. Stop words are kept on purpose: dropping them changes what the slug says, and a crawler reads the whole path anyway, so "the-10-best-coffee-brewers" stays intact. A slug is not unique by construction either — two titles can collapse to the same string, so check your CMS before publishing.
Turn a title or heading into a clean URL slug in your browser: accents transliterated, spaces to hyphens, a custom separator and a length cap.
How to use it
URL Slug Generator: paste the title or heading into the box above, set Separator (default "-"), Maximum length (default 80), Lowercase (default "yes") and Transliterate accents (default "yes"), and press Run to get the URL slug below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads title or heading and returns URL slug; reloading the page discards both.
What to Expect
Best for
- Converting title or heading to URL slug when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
Café déjà vu: 10 ways to brew better coffee!
Sample output
cafe-deja-vu-10-ways-to-brew-better-coffee
Frequently asked questions
How do I use the url slug generator?
URL Slug Generator: paste the title or heading into the box above, set Separator (default "-"), Maximum length (default 80), Lowercase (default "yes") and Transliterate accents (default "yes"), and press Run to get the URL slug below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.