utilities.dev

Slug Generator

Convert titles and text into clean, URL-friendly slugs for permalinks and routes.

Slug generation runs in your browser; output is suitable for URLs but does not guarantee uniqueness or SEO ranking.

Input
Enter the text to convert into a URL-friendly slug
Output
URL-friendly slug

How to use this tool

  1. Paste or type the text you want to convert (e.g. a blog title or heading).
  2. Choose options like lowercase and diacritic removal if needed.
  3. Copy the generated slug and use it in URLs, routes, or filenames.

About Slug Generator

This tool helps you create readable, URL-safe slugs from arbitrary text by lowercasing, replacing spaces with hyphens, and optionally normalizing accented characters. It is useful for blog permalinks, route segments, and SEO-friendly identifiers.

Common use cases

  • Generating permalinks from blog post or page titles
  • Creating URL segments for dynamic routes in web apps
  • Normalizing filenames or identifiers for static sites

FAQ

What is a URL slug?
A slug is the human-readable part of a URL path, usually derived from a title. For example, 'my-blog-post' is the slug in /articles/my-blog-post.
Does this tool send my text to a server?
No, slug generation runs entirely in your browser. Your input never leaves your device.
How does diacritic removal work?
When enabled, accented characters (e.g. é, ñ, ü) are converted to their ASCII equivalents (e, n, u). This keeps slugs readable while avoiding encoding issues in URLs.
Why does my slug have multiple hyphens?
Consecutive spaces and punctuation are collapsed into single hyphens automatically. If separators still look unexpected, check for unsupported symbols that are removed during normalization.

Related tools