🔗 Slug / URL Generator

Convert any title or phrase into a clean URL slug. Handles special characters, accents, and spaces. Free online slug generator for SEO-friendly URLs — instant results.

How to Use

1

Enter your text

Type or paste any title or text. The slug is generated and updated in real-time as you type.

2

Customize the output

Choose your separator (hyphen or underscore) and toggle lowercase.

3

Copy the slug

Click Copy to copy the generated slug to your clipboard.

Frequently Asked Questions

What is a URL slug? +
A URL slug is the part of a URL that identifies a specific page in a human-readable way. For example, in "https://example.com/my-blog-post", the slug is "my-blog-post". Good slugs are short, lowercase, and use hyphens instead of spaces.
Why are URL slugs important for SEO? +
Search engines read URL slugs to understand the content of a page. A keyword-rich, readable slug like "/best-coffee-shops-in-istanbul" ranks better than "/page?id=1234". Slugs are one of the most impactful on-page SEO elements.
What characters are removed from slugs? +
Special characters (!, @, #, etc.), accents, and punctuation are removed. Spaces and underscores are replaced with hyphens by default. Multiple consecutive separators are collapsed into one.
Can I use underscores instead of hyphens in slugs? +
You can, but Google recommends hyphens (-) as word separators in URLs. Underscores (_) are treated as word joiners, meaning "my_page" is seen as one word. Use hyphens for best SEO results.
Does the tool handle non-English characters? +
Yes. Accented characters (é, ñ, ü, ç, etc.) are converted to their ASCII equivalents (e, n, u, c) before generating the slug. This ensures maximum URL compatibility across all browsers and servers.


Tam Rehber: Slug Oluşturucu

Bir slug, bir web adresinin URL dostu bölümüdür ve belirli bir sayfayı ya da kaynağı tanımlar. Örneğin https://ornek.com/blog/ilk-yazim adresinde slug, ilk-yazim kısmıdır. Slug'lar küçük harflidir; yalnızca harf, rakam ve tire içerir; boşluk ya da özel karakter barındırmaz.

Geçerli Bir Slug Nasıl Olmalıdır?

Türkçe Karakter Dönüşümleri

Türkçe, özel işlem gerektiren karakterler barındırır. Doğru eşleme şöyledir:

Bu karakterleri dönüştürmezseniz URL'de ham Unicode yüzde kodlaması ortaya çıkar; bu hem uzun hem de okunaksız görünür.

Slug Oluşturma Algoritması

  1. Metni küçük harfe çevirin
  2. Dil özgü karakterleri ASCII karşılıklarıyla değiştirin
  3. Alfanümerik olmayan karakterleri tire ile değiştirin
  4. Ardışık tireleri tek tireye indirin
  5. Başta ve sondaki tireleri kırpın
function slugify(metin) {
  return metin
    .toString()
    .toLowerCase()
    .replace(/ş/g, 's').replace(/ğ/g, 'g')
    .replace(/ı/g, 'i').replace(/İ/g, 'i')
    .replace(/ç/g, 'c').replace(/ö/g, 'o').replace(/ü/g, 'u')
    .replace(/[^a-z0-9\s-]/g, '')
    .trim()
    .replace(/\s+/g, '-')
    .replace(/-+/g, '-');
}

Popüler Frameworklerde Slug Kullanımı

WordPress, slug'ları sanitize_title() fonksiyonu ile otomatik oluşturur. Django'da SlugField ve django.utils.text.slugify() kullanılır. Ruby on Rails'de ise string üzerinde parameterize metodu çağrılır.

SEO İçin Slug Önerileri

Metni slug'a dönüştürmeden önce büyük/küçük harf dönüşümü için Case Converter aracını kullanabilirsiniz. Tam URL kodlaması için ise URL Encoder aracına bakabilirsiniz.

🧰 50+ Tools