Slug Generator
Turn any title into a clean, URL-safe slug — lowercase, hyphen-separated, with punctuation and accents stripped, ready for SEO-friendly links.
How it works
strip accents (NFKD normalise) · lowercase · replace each run of non-alphanumeric characters with a separator · trim leading/trailing separators
A slug is the human-readable part of a URL — the "my-great-blog-post" in a blog address. Building one means reducing a title to only lowercase letters, digits and a separator: accents are folded to their base letters (é → e), every run of spaces or punctuation collapses to a single hyphen, and stray separators at the ends are trimmed. Lowercase matters because URLs are case-sensitive on many servers, and hyphens are preferred over underscores because search engines treat a hyphen as a word boundary. The result is a stable, tidy link that reads well and does not need percent-encoding.
Worked example
"My Great Blog Post!" is normalised and lowercased to "my great blog post!", then every non-alphanumeric run — the spaces and the trailing "!" — becomes a hyphen, giving "my-great-blog-post-". Trimming the trailing hyphen leaves the final slug "my-great-blog-post": four words, 18 characters, ready to drop into a URL.
Frequently asked questions
Why use hyphens instead of underscores in URLs?
Search engines treat a hyphen as a space between words but an underscore as a joiner, so "blue-widget" is read as two words while "blue_widget" can be read as one. Google recommends hyphens for that reason, which is why they are the default here — though the tool offers underscores too.
What happens to accents and non-English letters?
Accented Latin letters are folded to their base form, so "São Paulo" becomes "sao-paulo". Characters with no ASCII equivalent are dropped along with the surrounding punctuation, keeping the slug to plain a–z and 0–9 for maximum compatibility.
Should slugs be short?
Generally yes. A concise slug with the key words is easier to read, share and remember, and avoids clutter in search results. Drop filler words ("a", "the", "of") when you can, but keep the terms that describe the page and match what people search for.
Related calculators
This calculator is for educational purposes. Double-check important results before acting on them.