URL Slug Generator

Turn any text into a clean, SEO-friendly URL slug.

Open tool

Overview

The URL Slug Generator turns any text into a clean, lowercase, hyphen-separated slug — stripping accents, transliterating non-ASCII characters, removing stop words optionally, and collapsing whitespace and punctuation to single hyphens. Perfect for article URLs, file names, and any identifier where readability and URL-safety both matter.

Useful for writers and developers learning how to generate a URL-safe slug from a title or how to convert a string to a slug for SEO. Reach for it when a CMS produces ugly slugs from titles, when building scripts that import legacy content, or when standardising slug rules across a multi-author team.

How it works

The generator normalises Unicode to NFD form, removes combining marks (turning é into e), maps remaining non-ASCII characters via a transliteration table (German ßss, Polish łl), lowercases, replaces any sequence of non-alphanumeric characters with a single hyphen, and trims hyphens from each end. Optional stop-word removal skips low-value words like the, and, of to keep slugs short and keyword-dense.

URL slugs should be readable by humans and stable over time. The generator does not enforce length limits but warns when output exceeds 60 characters — beyond that, Google may truncate in the SERP display.

Examples

  • Hello, World!hello-world.
  • Naïve Café — Édition Spécialenaive-cafe-edition-speciale.
  • Top 10 Tips for Better SEO in 2026 with stop-word removal → top-10-tips-better-seo-2026.
  • multiple spaces multiple-spaces (whitespace collapsed and trimmed).

FAQ

Should slugs include keywords?

Yes, when natural. Slug words carry small SEO weight and improve click-through by showing relevance in the URL. Keyword-stuffing slugs is a recognised spam pattern, though — keep them human-readable.

Lowercase or mixed case?

Lowercase. URLs are case-sensitive on most servers, so mixed-case slugs create duplicate-URL issues when users share them with different casing.

What about hyphens vs underscores?

Hyphens. Google treats hyphens as word separators and underscores as glue, so top-ten-tips is read as three words while top_ten_tips is read as one.

Do I need to keep slugs short?

Aim for under 60 characters. Beyond that, the URL is truncated in search results and shared links become ugly. Stop-word removal usually fixes overlong slugs.

Try URL Slug Generator

An unhandled error has occurred. Reload ×