{}DevStringToolsAll tools

URL Slug Generator

Generate SEO-friendly URL slugs from titles. Strips punctuation, normalizes unicode (NFD), and offers custom separators.

39 chars

How URL Slug Generator works

URL Slug Generator converts an arbitrary title into a URL-safe slug. It lowercases the input, applies Unicode NFD normalisation and strips combining diacritics (so "café" → "cafe"), removes characters that are not alphanumeric or in your separator, collapses duplicate separators, and trims separators at the start and end. The output is deterministic and safe to drop into a path or filename.

How to use

Paste a blog title or product name; set a separator (default "-") and an optional max length. The slug updates live. Click Copy to grab it.

Frequently asked questions

Why does "café" become "cafe" instead of "cafe-with-accents"?

The slug uses NFD decomposition plus diacritic stripping because most search engines and crawlers do not percent-encode accented letters in URLs. If you prefer to keep accents, switch your CMS to allow them — but the safest cross-platform choice is ASCII.

Can I use a custom separator like an underscore or a dot?

Yes. The separator field accepts any single character. Use "-" for SEO-friendly slugs, "_" if your framework expects it, or "." for filenames like "my-post.md".

What if two slugs collide?

The tool does not detect collisions; it only normalises one input at a time. If two titles reduce to the same slug ("Hello World" and "hello-world"), your CMS or filesystem should resolve it by appending -2, a timestamp, or similar.

Does it preserve numbers?

Yes. Numbers stay in place; only non-alphanumeric characters are removed. So "10 tips for 2024" → "10-tips-for-2024".

Should slugs be lowercased?

Always. Lowercasing avoids case-sensitive filesystem ambiguity and matches every major CMS convention.