تخطى إلى المحتوى الرئيسي

مولد 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.

الرابط المولَّد

Why Use Slugs?

روابط أنظف: Instead of "my%20blog%20post%20title", use "my-blog-post-title".

صديق لمحركات البحث: Slugs help search engines understand your content and improve rankings.

تجربة مستخدم أفضل: Users can read and remember URLs more easily.

متوافق مع المعايير: URLs should only contain alphanumeric characters, hyphens, and underscores.

شارك هذه الأداة
Developer Tools

حول 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.

كيفية الاستخدام

  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.

الصيغة والمنهجية

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.

حالات الاستخدام الشائعة

  • 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

الأسئلة الشائعة

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.

أدوات ذات صلة

كل الأدوات →

دمج هذه الأداة في موقعك

مجاني للاستخدام الشخصي والتجاري. فقط انسخ الكود أدناه.