Slug Generator

Separator

Paste a title like Las 10 Mejores Recetas de Paella, Edición 2026 and the generator returns las-10-mejores-recetas-de-paella-edicion-2026. It folds accented characters to ASCII, lowercases everything, replaces whitespace and punctuation with hyphens, collapses runs of hyphens to one, and strips leading/trailing hyphens. Optional stop-word filtering drops the, a, of, etc. for shorter slugs.

How a slug is built

  1. 1

    Paste your title

    Any language, any length. The source text is never truncated mid-word.

  2. 2

    Unicode is normalized

    NFKD decomposition splits accents from letters; combining marks are stripped. `ñ` becomes `n`, `ö` becomes `o`.

  3. 3

    Whitespace and punctuation collapse

    Anything not in [a-z0-9] becomes a hyphen; consecutive hyphens collapse into one.

  4. 4

    Optional max length

    Truncate at 60/80 characters without breaking mid-word.

Examples

Input Slug
Hello, World! hello-world
Café & Croissants: a Parisian Guide cafe-croissants-a-parisian-guide
2024 vs 2025: Which Year Wins? 2024-vs-2025-which-year-wins
¿Qué hora es? que-hora-es
Apple M3, Real-world benchmarks apple-m3-real-world-benchmarks
Leading/trailing spaces leading-trailing-spaces

SEO considerations

  • Keep slugs readable. /recipes/paella beats /recipes/post?id=17.
  • Include the target keyword early. Search engines give slight weight to URL terms, especially in the first 3-4 words.
  • Avoid date tokens unless the content is date-dependent, otherwise you invite immediate canonical drift (/2024/best-headphones stings in 2026).
  • Do not stuff. /best-cheap-running-shoes-for-men-women-kids-under-50-dollars-on-sale is both a slug and a cry for help. Pick two or three concepts.
  • Match the h1 loosely. Slug and title should be recognizably the same content; they do not need to be identical.

Language-specific issues

  • German umlauts. Konvention in publishing is ü → ue, not u. Ask if your CMS supports that.
  • Polish special letters. ł is not decomposable via NFKD; it stays as l only if you have a custom map.
  • Non-Latin scripts. Arabic, Chinese and Cyrillic slugs are valid in URLs (IRIs), but tooling breaks in some CDNs. Most sites transliterate (e.g., pinyin for Chinese).
  • Emoji. Stripped entirely by default. Even the ones that survive are hostile to URL sharing.

Collision handling

If two pieces of content produce the same slug, the second usually gets a suffix: -2, -3, or a short hash. Avoid relying on timestamps in the slug, they are ugly and rarely useful.

Frequently Asked Questions

They are technically valid but case-insensitive only in some parts of the URL. Most CMSes and search engines treat /About and /about as different URLs, so lowercase is safer and standard.

3-5 words or roughly 50-60 characters. Longer slugs are crawlable but look cluttered in search results and get truncated in shares.

Yes, but hyphens are the convention and Google’s John Mueller has repeatedly said Google treats hyphens as word separators and underscores as joiners. Stick with hyphens.

You can keep them via URL encoding, but most platforms transliterate to ASCII for compatibility. The generator defaults to ASCII-safe slugs.

Related Tools

Tool available in other languages