Text Tools

Slug Generator

Turn a title into a clean, SEO-friendly URL slug.

Rate this tool

How to use the Slug Generator

  1. Type or paste your title.
  2. Copy the generated slug for your URL.

About the Slug Generator

A slug is the readable tail of a web address — the “text-to-slug” part of this page’s URL. Spaces and punctuation are the problem it solves. A space in a URL has to be percent-encoded as %20, and characters like ?, # and & already have specific meanings in an address, so a raw title dropped into a URL either breaks outright or turns into an unreadable smear of percent signs. A slug replaces all of that with lowercase letters, digits and hyphens: readable by a human, safe for every browser, and clean enough to share in an email or read aloud.

This tool lowercases your text, folds accented letters onto their base letter, replaces every run of characters that is not a–z or 0–9 with a single hyphen, and trims hyphens off both ends. “Café au lait” becomes cafe-au-lait, and “Straße” becomes strasse. Folding only works where there is a Latin letter underneath, though: a script such as Arabic, Chinese, Cyrillic or Hindi has nothing to fold onto, so rather than handing back an empty box the tool tells you it cannot make a slug and leaves the transliteration to you.

The most important thing about slugs is not generating them but not changing them. A published slug is a permanent address: edit it and every existing link, bookmark, and search result pointing at the old one breaks. If you genuinely must change one, set up a 301 redirect from the old URL to the new so that links and accumulated search ranking follow. Otherwise keep slugs short, descriptive, hyphen-separated rather than underscored, and free of filler words. Everything runs in your browser. See also the case converter for kebab-case output, and the URL encoder for encoding a complete address.

Frequently asked questions

What makes a good slug?

Short, lowercase, descriptive of the page, and separated by hyphens rather than underscores or spaces. Drop filler words like "a" and "the". Include the words someone would actually search for, but do not stuff keywords in.

What happens to accented characters?

They are folded onto their base letter, so "café" becomes "cafe" and "Åland" becomes "aland". Letters with no accented form to strip, such as the German ß or the Danish ø, are mapped by hand to "ss" and "o".

What about Chinese, Arabic or Cyrillic titles?

Those cannot be folded, because there is no Latin letter underneath to fold onto — real transliteration is a language-specific job this tool does not attempt. It says so instead of silently returning nothing, so type a Latin version of the words yourself.

Can I change a slug after publishing?

You can, but every existing link, bookmark and search result pointing at the old URL will break unless you add a 301 redirect from the old slug to the new one. Getting the slug right before publishing is much less work than fixing it afterwards.

Should I use hyphens or underscores?

Hyphens. They are the long-standing convention for word separation in URLs, and search engines have historically treated a hyphen as a word break and an underscore as a joiner. Hyphens are also easier to read in a long address.