Slug Generator

How do I make a URL slug?

How it is calculated

The tool builds a URL slug in four steps. First it replaces the Turkish letters ç, ğ, ı, İ, ö, ş and ü (upper and lower case) with their plain ASCII forms. Then it lowercases everything. Then every run of characters that is not a to z or 0 to 9 is replaced by a single hyphen, so spaces and punctuation collapse into one separator. Finally hyphens at the start and end are removed. Letters from other languages, such as é, ñ or Cyrillic, are not transliterated; they are treated as separators and dropped.

Worked example

Input: Çocuklar İçin 10 Kolay Tarif!. After folding Turkish letters: Cocuklar Icin 10 Kolay Tarif!. After lowercasing: cocuklar icin 10 kolay tarif!. Spaces and the exclamation mark become hyphens: cocuklar-icin-10-kolay-tarif-. The trailing hyphen is trimmed. Result: cocuklar-icin-10-kolay-tarif

Try this example →

Common mistakes

  • Feeding it text with accents outside Turkish, such as "Café". The é is not converted, so it turns into "caf" and the letter is lost.
  • Expecting a title longer than needed to be shortened. The tool keeps every word, so cut filler words yourself for shorter URLs.
  • Changing a slug after the page is published. The old address stops working unless you add a redirect.
  • Using an underscore or keeping a symbol like & in a slug. Only letters, digits and hyphens survive here.

About this calculator

This tool converts any piece of text — typically a page title — into a slug: an all-lowercase, hyphen-separated string containing only URL-safe characters, with the Turkish letters ç, ğ, ı, ö, ş and ü folded to their plain-ASCII equivalents, and spaces, punctuation and any other non-ASCII character replaced by a hyphen. A clean slug is what turns "My New Blog Post!" into "my-new-blog-post" instead of a URL full of percent-encoded characters and spaces.

Bloggers, developers and content managers use it every time they publish a page, since most content management systems and static site generators expect a slug for the URL, and search engines treat short, readable, keyword-containing URLs as a modest ranking and click-through signal. It's also used for generating consistent filenames, anchor IDs, or identifiers from arbitrary user-entered text.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    Watch for titles where symbols carry the meaning. Everything outside letters and digits becomes a hyphen, so C++ and C# both come out as plain c, and .NET becomes net. Two articles with such titles would then ask for the same URL. Check this before publishing and add a distinguishing word, such as cpp or csharp, by hand. Which non-Latin alphabets or symbols would you like a slug to handle better?

Popular calculators

All Calculators