Slug Generator — Clean, URL-Safe Slugs

Turn any title into a tidy, URL-safe slug. Choose the separator, case, accent handling and a length cap — the result updates live, entirely in your browser. Nothing you type is sent anywhere.

Slug

0 chars ·

What is a URL slug?

A slug is the human-readable part of a URL that identifies a page — the my-first-post in example.com/blog/my-first-post. A good slug is lowercase, uses hyphens between words, contains only ASCII letters, numbers and hyphens, and stays short. It makes links readable, shareable, and a little friendlier to search engines than an opaque ?id=4815.

What this generator does

Gotchas worth knowing

Frequently asked questions

Should a slug be lowercase?

Yes. URLs are case-sensitive after the domain, so /My-Post and /my-post are two different pages to a server. Lowercasing avoids accidental duplicates and is the near-universal convention.

How long should a slug be?

Short enough to read at a glance — roughly 3–6 words. There's no hard limit, but very long slugs get truncated in search results and are awkward to share. A 50–60 character cap is a sensible default.

Hyphen or underscore in a slug?

Hyphen, for anything that lives in a URL. Search engines split words on hyphens but not on underscores, so hyphens make each word individually findable.

Need other text utilities? Browse all tools on the home page.