Slug Generator

Turn any text into a clean URL slug.

Free online slug generator

A URL slug is the readable, hyphenated part of a web address that describes a page — like how-to-write-clean-urls. This slug generator turns any headline, product name, or sentence into a clean, SEO-friendly slug instantly. It lowercases your text, strips accents, removes punctuation and symbols, and joins the remaining words with a hyphen or underscore. Everything runs live in your browser as you type, so there's nothing to install and nothing is uploaded.

How to create a slug

  1. Type or paste your title or text into the box above.
  2. Choose your separator — a hyphen (recommended for URLs) or an underscore.
  3. Toggle Lowercase and Strip accents to match your needs.
  4. Watch the slug update live, then click Copy to use it.

What makes a good URL slug

Good slugs are short, descriptive, and use hyphens so search engines read each word separately. Keep them lowercase to avoid case-sensitivity issues on some servers, and drop filler words where you can. Because accents and special characters can break links, converting them to plain ASCII keeps your URLs portable and safe to share.

Related text tools

Working with text formatting? Change capitalization with the Case Converter, or tidy up pasted content using the Remove Line Breaks tool before you generate a slug.

Frequently asked questions

What is a URL slug?

A slug is the human-readable part of a URL that identifies a specific page, usually derived from its title. For example, in example.com/blog/how-to-bake-bread the slug is how-to-bake-bread. Clean slugs are lowercase, use hyphens between words, and contain only letters and numbers, which makes them easy to read and good for SEO.

How does this slug generator work?

Type or paste any title or text and the slug is created instantly in your browser. The tool optionally strips accents, lowercases the text, replaces every run of non-alphanumeric characters with your chosen separator, collapses repeated separators, and trims separators from the ends. Nothing is uploaded to a server.

Should I use hyphens or underscores in slugs?

Hyphens are the recommended choice for URLs. Google treats hyphens as word separators, so my-blog-post is read as three words, while underscores can join words together. Use hyphens for public web pages and reserve underscores for cases like file names or code identifiers.

Does the tool remove accents and special characters?

Yes. With Strip accents enabled, letters like é, ñ, and ü are converted to their closest plain ASCII equivalents (e, n, u). All other punctuation and symbols are replaced by the separator, so you always get a clean, safe slug.

Can I keep uppercase letters in the slug?

Yes. Uncheck the Lowercase option to preserve the original capitalization. Most URLs are lowercase by convention because some servers treat uppercase and lowercase paths differently, but the choice is yours.

Is my text sent anywhere?

No. This slug generator runs entirely in your browser with JavaScript. Your text is never uploaded, stored, or shared, so it is safe to use for private drafts and confidential titles.