All generators

Web

Slug Generator

Turn any title, heading, or phrase into a URL-safe slug. Removes special characters, normalises accents, and replaces spaces with your chosen separator — ready to paste into your CMS or code.

Enter text to slugify

Generated output

Enter some text above and click Generate to create a slug.

How it works

The generator lowercases your input, applies Unicode normalisation (NFD) to decompose accented characters, strips the diacritical marks, removes any remaining non-alphanumeric characters (replacing them with spaces), trims leading and trailing spaces, then collapses all whitespace runs into your chosen separator. The result is a clean string containing only lowercase letters, digits, and the separator.

Practical example

You are publishing a blog post titled "5 Tips for Better Sleep — Starting Tonight". The generator converts it to "5-tips-for-better-sleep-starting-tonight" — a readable, lowercase, hyphenated slug suitable for a URL like /blog/5-tips-for-better-sleep-starting-tonight.

Frequently asked questions

Answers to common questions about this generator and how it works.

What is a URL slug?

A URL slug is the human-readable part at the end of a web address that identifies a specific page. For example, in "example.com/blog/my-post-title", the slug is "my-post-title". Good slugs are lowercase, use only letters, digits, and hyphens, and describe the page content.

Should I use hyphens or underscores?

Google recommends hyphens over underscores for word separation in URLs. Hyphens are treated as word separators, so "my-blog-post" is indexed as three separate words. Underscores are treated as joining characters, so "my_blog_post" may be indexed as one word. Use hyphens for SEO-friendly URLs.

What happens to special characters and accents?

Accented and international characters (like "e", "o", "n") are automatically normalised to their ASCII equivalents. All other special characters (punctuation, symbols, emoji) are removed. This ensures the slug is safe to use in any URL without percent-encoding.

Does changing the slug of an existing page affect SEO?

Yes. If a page already has inbound links and search engine rankings, changing its URL slug without a 301 redirect will break those links and reset its rankings. Always set up redirects when changing existing slugs.

Can I use this for file names?

Yes. The generated slug is also safe as a file name — it contains only lowercase letters, digits, and hyphens or underscores, which are universally supported across operating systems and file systems.

Related generators

Explore other generators that pair well with this one.

Lorem Ipsum Generator

Generate lorem ipsum placeholder text for designs and prototypes.