devtools.cihat.dev

Slug generator

Turn a post title or product name into a short, readable piece of URL. Paste many titles to get many slugs at once.

One title per line gives one slug per line.

Slugs

How to use it

  1. Type or paste titles, one per line.
  2. Choose the separator, whether to lowercase and whether to turn accented letters into plain ASCII. Set a maximum length if your system has one; slugs are cut at a word boundary.
  3. Copy the slugs.

What makes a good slug

A slug is the readable last part of a URL, as in /blog/faster-builds. Keep it short, lowercase and separated by hyphens; Google’s guidance recommends hyphens over underscores between words.

  • Accents are removed so the URL looks the same in every browser and is easy to type: café becomes cafe, Ölçü becomes olcu.
  • Letters with no accent to remove are replaced: ı becomes i, ß becomes ss, ø becomes o.
  • Apostrophes are dropped so don’t becomes dont, and & becomes and.
  • Letters from other scripts, such as Cyrillic, Greek or Arabic, are kept as they are; untick lowercase or ASCII to keep the original letters everywhere.

Should a slug change after publishing?

No, unless you add a permanent (301) redirect from the old URL. Changing a slug breaks every link and bookmark that points to it.

Questions people ask

Hyphens or underscores?

Hyphens for URLs. Underscores are common in file names and code identifiers, which is why the option exists.

How long should a slug be?

There is no fixed rule. Three to six meaningful words are usually enough; drop filler words by hand if the slug gets long.

Can a URL contain Turkish letters?

Yes, browsers show them, but they are sent percent-encoded (ş becomes %C5%9F), which looks long when the link is shared. Plain ASCII slugs avoid that.

Is my text sent anywhere?

No. Slugs are made in your browser.