URL Slug Generator

Turn titles into clean lowercase URL slugs — a whole batch at once, with separator, length and common-word options.

Runs in your browser. Your image is never uploaded.

How to use URL Slug Generator — Clean SEO-Friendly URLs

  1. 1Type or paste the title you want turned into a URL.
  2. 2Watch the live counters — they warn you before search engines truncate anything.
  3. 3Copy the result straight into your page or your CMS.

About URL Slug Generator

A slug is a small thing that gets seen a lot. It shows up in search results under the title, in the address bar, in every link somebody pastes into a chat, and in your own analytics reports at two in the morning. A slug like /p?id=4471 works perfectly well for a computer and tells a person nothing; /url-slug-generator tells them what they are about to open before the page has loaded.

The transformation is more fiddly than it looks, which is why it is worth automating. Text is Unicode-normalised so an accented letter splits into a plain letter plus its accent and the accent is discarded; apostrophes are removed rather than replaced, so "don't" becomes dont instead of don-t; every run of spaces, punctuation and symbols collapses to a single separator, and separators at the start and end are trimmed. A length limit is applied last and steps back to the previous whole word, but only when the cut would actually land mid-word — so a slug that already ends cleanly does not lose a word for nothing. Paste a whole column of titles and each line is handled independently.

Two options are there because sometimes you need them, with caveats attached. Dropping common words shortens a long editorial headline usefully, and if that would leave nothing at all the original title is kept instead. Keeping capitalisation is available, but the path part of a URL is case-sensitive on most web servers, which means mixed-case slugs invite duplicate pages and broken inbound links. And whichever you choose, remember that a slug on a page which is already live is effectively part of its identity: change it and you need a 301 redirect from the old address, or you lose the links and rankings the old URL had earned.

Frequently asked questions

Should a slug use hyphens or underscores?
Hyphens. Google's own URL guidance recommends hyphens and specifically advises against underscores, because a hyphen is read as a word break while an underscore joins words together — keyword_density can be read as one token, keyword-density as two. Both are offered here, along with a full stop, but hyphen is the default for that reason.
How long should a slug be?
There is no limit that search engines enforce, so the honest answer is: short enough to read in a shared link and long enough to say what the page is. The max-length option accepts 0 to 200 characters, where 0 means no limit, and it always trims back to the last complete word so you never end up with a half-word like keyword-densi.
What happens to accented letters and other alphabets?
Accents are folded to their closest ASCII form, so Café Münster becomes cafe-munster. Characters with no ASCII equivalent — Chinese, Cyrillic, Arabic, Devanagari, emoji — have nothing to fold to and are dropped, which is a genuine limitation: transliterate that text first, or keep a non-ASCII URL and let your server percent-encode it.
Should I remove words like "the" and "of"?
It is optional and often worth it for a long title: dropping them from "10 Ways to Improve Your Website's Speed" gives 10-ways-improve-websites-speed. The list has 153 common English words. If every word in a line happens to be a common word, the original is used instead, so you never get an empty slug.
Can I keep capital letters?
Yes, there is a toggle, and the original capitalisation is copied back onto the finished slug. Lowercase is still the safer default: the path part of a URL is case-sensitive on most servers, so /About-Us and /about-us can be served as two different pages, and links arriving with the wrong case then 404.
Can I convert a whole list at once?
Yes. Put one title per line and the output lines up line for line with the input, blank lines included, so you can paste a column out of a spreadsheet or a CMS export. Copy the result or download it as a .txt file; nothing is uploaded at any point.