◆ Online Dev Kit

Slug Generator

Turn any title into a clean URL slug, live.

About this tool

A URL slug is the human-readable part of a URL, like /my-blog-post. This generator lowercases your text, strips accents and punctuation, and joins words with hyphens to produce a clean, SEO-friendly slug. Everything happens locally in your browser.

Common use cases

How it works

A slug generator converts arbitrary text into a URL-safe string by: lowercasing all characters, replacing spaces and special characters with hyphens, removing diacritics (accents), stripping non-alphanumeric characters, and collapsing multiple hyphens into one. The result is a clean, readable string that works safely in URLs, file names, and identifiers. For example, "Hello, World! 你好" becomes "hello-world".

FAQ

Does it handle accented characters?

Yes — accents are stripped (é becomes e) so the slug stays URL-safe ASCII.

Why use hyphens not underscores?

Search engines treat hyphens as word separators in URLs, so hyphenated slugs are better for SEO.

What characters are allowed in URL slugs?

Safe characters for slugs are lowercase letters (a-z), digits (0-9), and hyphens (-). Avoid uppercase, spaces, underscores, and special characters, as they may cause encoding issues or inconsistency.

How long should a URL slug be?

Aim for 3-8 words (50-80 characters). Keep it descriptive but concise. Search engines give less weight to words after the first few, and very long slugs can be truncated in search results.