URL Slug Generator

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

About the URL Slug Generator

The Slug Generator turns any title into a clean, URL-safe slug. It lowercases the text, converts accented letters to plain ASCII, replaces spaces and punctuation with a single separator and trims stray separators from the ends. Paste a whole list of headlines and every line is converted at once.

Well-formed slugs improve readability in the address bar, are easier to share, and give search engines a clear signal about the page topic. The same transformation is useful for file names, image alt identifiers, CSS class names and database keys.

How to use the URL Slug Generator

  1. Type or paste a title, headline or phrase. Put several on separate lines to convert them all at once.
  2. Choose the separator (hyphen or underscore) and optionally a maximum length.
  3. The slug updates live. Click Copy to use it as a URL path, file name or identifier.

Frequently asked questions

What is a URL slug?

A slug is the human-readable part of a web address that identifies a page, such as "how-to-bake-bread" in example.com/blog/how-to-bake-bread. Good slugs are short, lowercase, use hyphens between words and contain only letters and numbers.

Why hyphens instead of underscores?

Search engines treat hyphens as word separators but generally treat underscores as joining characters. Hyphens are therefore the recommended choice for URLs; underscores are still useful for file names and variable identifiers.

What happens to accented characters?

Accents are stripped and letters are reduced to their basic Latin form, so "Crème brûlée" becomes "creme-brulee". Characters that have no Latin equivalent are removed.

Is there an ideal slug length?

There is no hard limit, but slugs of three to six meaningful words are easiest to read and share. Use the max length option to trim very long titles at a word boundary.