Ulvixor

Search tools

Search all of Ulvixor's tools by name or keyword.

Slug Generator

Turn any title or text into a URL-friendly slug: lowercase, with accents and special characters stripped out, and words separated by a hyphen or underscore. Perfect for creating clean, SEO-friendly links — including from Spanish text with accented characters like á, é, or ñ.

How it works

  1. Type or paste the text you want to convert, for example an article or product title.
  2. Choose the separator you prefer: hyphen (-) or underscore (_).
  3. The tool converts the text to lowercase, strips accents and diacritics (á, é, í, ó, ú, ñ, ü), and replaces any run of non-alphanumeric characters with the chosen separator.
  4. Repeated separators are collapsed into one and trimmed from the start and end, leaving a clean slug.
  5. Copy the generated slug and use it directly in your URL.

Use cases

  • Generate a blog post's friendly URL from its title.
  • Create a product identifier for an online store.
  • Convert file names with spaces and accents into names compatible with file systems and URLs.
  • Normalize tags or categories before using them as URL parameters.

Use cases

  • Generate a blog post's friendly URL from its title.
  • Create a product identifier for an online store.
  • Convert file names with spaces and accents into names compatible with file systems and URLs.
  • Normalize tags or categories before using them as URL parameters.

Common mistakes

  • Generating the slug from a title that might still change, and having to regenerate it every time it's edited.
    Generate the slug once from a stable version of the title and store it separately, so the URL stays the same even if you later edit the visible title.
  • Using an underscore (_) as the separator expecting the same SEO benefit as a hyphen.
    The hyphen is the separator search engines interpret most consistently as a space between words. Use a hyphen for public URLs and save the underscore for variable or file names.
  • Expecting letters like ñ or accented vowels to be dropped entirely instead of converted to their base letter.
    The tool normalizes the text (NFD) and only strips the diacritical mark, so 'ñ' becomes 'n' and 'café' becomes 'cafe', rather than being removed outright.

Frequently asked questions

The text is normalized using the standard Unicode decomposition technique (NFD), which separates each accented letter into its base letter and diacritical mark, then removes that mark. So 'café' becomes 'cafe' and 'ñoño' becomes 'nono'.

The hyphen is the recommended separator for URLs and SEO, since search engines interpret it as a space between words. The underscore is useful for variable names, files, or systems that don't support hyphens.

Any sequence of non-alphanumeric characters (spaces, punctuation, symbols) is replaced with a single separator, avoiding slugs with repeated hyphens like 'my--title'.

No. Slug generation happens entirely in your browser using JavaScript, without sending the text to any external server.

Alternatives

In code, libraries like slugify (JavaScript) or python-slugify perform the same transformation inside an application, for example when saving an article to a database. This tool is handy for generating a one-off slug with no code to write, for example when manually building a page's URL.