Slug Generator

Convert a title into a URL-safe slug. Separator, case, max-length, and Unicode transliteration options.

Separator
Case
Max length60
1 slug
  • 10-things-i-wish-i-knew-about-oklch

01 — Overview

How the Slug Generator works

Turn a title or arbitrary string into a clean URL slug. Configure separator (- or _), case, max length, and Unicode handling. Accented characters are transliterated to ASCII; emoji and unsafe characters are stripped. Runs locally.

02 — Use cases

When to use the Slug Generator

  1. 01

    Convert a blog post title into a SEO-friendly URL slug

  2. 02

    Bulk-slugify a list of product names

  3. 03

    Sanitize a user-supplied filename for use as a URL

  4. 04

    Strip emoji and diacritics from a title for filesystem use

03 — Examples

Slug Generator examples

10 Things I Wish I Knew About OKLCH

ex 01

10-things-i-wish-i-knew-about-oklch

Lowercased, spaces become hyphens.

Café Olé — naïve résumé

ex 02

cafe-ole-naive-resume

Accented characters transliterated, punctuation stripped.

Ürün Açıklaması Sayfası

ex 03

urun-aciklamasi-sayfasi

Turkish diacritics transliterated to their closest ASCII equivalents.

Multiple spaces & symbols!!

ex 04

multiple-spaces-symbols

Runs of whitespace collapse to one separator; punctuation is dropped, not encoded.

04 — FAQ

Slug — frequently asked questions

Are emojis stripped or transliterated?

Stripped. Emoji don't translate cleanly to ASCII. If you need them encoded, use a URL encoder instead.

What's the difference between - and _ separators?

Google has long treated hyphens as word breaks and underscores as joiners. For SEO-facing URLs, hyphens are the safer default.

How long should a slug be?

Aim for under 60 characters where you can. The tool truncates at word boundaries when you set a max-length so you don't end up with a chopped final word.

What happens if I change a slug after publishing?

Every existing link breaks, including the ones search engines have indexed and the ones other people have shared. If you have to change it, serve a 301 redirect from the old slug to the new one and keep that redirect indefinitely — it passes ranking signals across and stops the old URL 404ing.

Should slugs be lowercase?

Yes. Path segments are case-sensitive under RFC 3986, so /My-Post and /my-post are two different URLs as far as the spec is concerned. Some servers normalise and some don't, which is how you end up with the same page indexed twice.

How long should a slug be?

Three to five meaningful words is the sweet spot. Longer slugs get truncated in search results and are awkward to share verbally; shorter ones stop describing the page. Drop stop words — how-to-generate-a-slug beats how-to-generate-a-slug-in-your-application.

05 — Reference

Specs and further reading

The primary sources this tool follows. Where behaviour is defined by a specification, we link the specification rather than a summary of it.

07 — More

Tools that pair with Slug

Last updated .