Passer au contenu principal

Générateur de slugs

A URL slug is the human-readable, SEO-friendly portion of a URL (e.g., "how-to-bake-bread" in example.com/blog/how-to-bake-bread). Generating proper slugs involves lowercasing, removing special characters, replacing spaces with hyphens, handling accented characters (transliteration), and removing stop words for cleaner URLs. Our generator handles all of this correctly.

Slug généré

Why Use Slugs?

URL plus propres : Instead of "my%20blog%20post%20title", use "my-blog-post-title".

Compatible SEO : Slugs help search engines understand your content and improve rankings.

Meilleure UX : Users can read and remember URLs more easily.

Conforme aux normes : URLs should only contain alphanumeric characters, hyphens, and underscores.

Partager cet outil
Developer Tools

À propos de URL Slug Generator

A URL slug is the human-readable, SEO-friendly portion of a URL (e.g., "how-to-bake-bread" in example.com/blog/how-to-bake-bread). Generating proper slugs involves lowercasing, removing special characters, replacing spaces with hyphens, handling accented characters (transliteration), and removing stop words for cleaner URLs. Our generator handles all of this correctly.

Comment l'utiliser

  1. Paste any text, title, or string.
  2. The slug is generated instantly: lowercase, hyphen-separated, special chars removed.
  3. Toggle options: remove stop words, max length, custom separator (- vs _).
  4. See the full transformation pipeline: original → lowercase → transliterate → remove special → trim hyphens.

Formule et méthodologie

Algorithm: 1) Convert to lowercase. 2) Transliterate accented chars (é→e, ñ→n, ü→u). 3) Replace spaces and separators with hyphens. 4) Remove all non-alphanumeric characters except hyphens. 5) Collapse multiple consecutive hyphens. 6) Strip leading/trailing hyphens. 7) Optional: truncate to max length at word boundary.

Cas d'usage courants

  • CMS: auto-generating post slugs from article titles
  • E-commerce: product URL slugs from product names
  • Laravel/Django/Rails: route slug generation
  • Bulk import: cleaning user-generated content into URL-safe identifiers
  • File naming: converting document titles to filesystem-safe filenames

Questions fréquentes

For short titles, keep them for readability. For long titles, removing stop words shortens the slug and front-loads the keywords. SEO impact is minimal either way — Google ignores common words in URLs. Best practice: let the slug reflect the natural title but cap at ~60–75 characters. "the-best-chocolate-chip-cookies" is fine; you don't need to strip "the".
Stick to lowercase a–z, digits 0–9, and hyphens. Technically RFC 3986 allows letters, digits, hyphens, underscores, periods, and tildes as "unreserved characters" in URL paths. In practice: hyphens are preferred over underscores (Google treats hyphens as word separators, underscores as word connectors). Avoid spaces, special characters, and uppercase — they require percent-encoding which makes URLs ugly and fragile.

Outils connexes

Tous les outils →

Intégrer cet outil sur votre site

Gratuit pour usage personnel et commercial. Copiez simplement le code ci-dessous.