Slug Generator

Text to a clean URL slug.

A slug is the URL-safe end of a web address. Paste a title and this tool lowercases it, strips accents and symbols, and joins the words with hyphens, so "My First Post!" becomes "my-first-post". You can switch the separator, keep the original case, or cap the length. Everything runs in your browser, with no signup and nothing uploaded.

How it works

  • Normalize accents - characters like é and ü are split into a base letter and its mark, then the mark is dropped, so é becomes e.
  • Remove non-alphanumerics - anything that is not a letter, number, space, hyphen, or underscore is stripped, so punctuation and symbols disappear.
  • Collapse to the separator - runs of spaces are squeezed into a single separator, and leading or trailing separators are trimmed off the ends.

Examples

Input Slug
My First Post! my-first-post
Café del Mar cafe-del-mar
50% Off Sale!!! 50-off-sale
Top 10 SEO Tips top-10-seo-tips

Questions people ask

What is a URL slug?

A slug is the human-readable part of a web address that identifies a single page, usually the last segment of the path. In example.com/blog/my-first-post, the slug is 'my-first-post'. Good slugs are short, lowercase, and use hyphens so both people and search engines can read them.

Should a slug use hyphens or underscores?

Hyphens. Google recommends separating words in a URL with hyphens rather than underscores, because it treats a hyphen as a word break and an underscore as a joiner. So 'my-first-post' reads as three words, while 'my_first_post' can read as one. Stick with hyphens unless a system forces otherwise.

How long should a slug be?

Short enough to read at a glance, long enough to stay clear. Aim for a few meaningful words, roughly three to five, and drop filler like 'the', 'a', and 'and' where you can. A concise slug is easier to share, remember, and understand than a long one padded with every word from the title.