ToolsHabit

Slug Generator

Generate clean URL-friendly slugs from any text online for free. Convert titles and phrases into SEO-friendly URL paths instantly.

Preview URL: example.com/...

A URL slug is the human-readable part of a web address that identifies a specific page — for example, the slug for this page is "slug-generator". Well-formed slugs use only lowercase letters, numbers, and hyphens. They avoid spaces (which become ugly %20 encoding), special characters (which can break parsers), and uppercase letters (which create duplicate URL issues). Google has explicitly confirmed since 2016 that hyphens are the preferred word separator in URLs, while underscores cause words to be treated as a single token.

This tool handles the common edge cases that manual slug creation gets wrong: accented characters (é→e, ñ→n, ü→u) are transliterated to their ASCII equivalents rather than dropped or encoded; consecutive spaces and hyphens are collapsed to a single hyphen; leading and trailing hyphens are stripped. These rules matter for CMS platforms like WordPress, Ghost, and Webflow, as well as for custom route generation in frameworks like Next.js, Django, and Rails. Correct slugs from the start prevent redirect chains and broken links later.

How to Use Slug Generator

  1. Enter your title or text.
  2. The slug is generated automatically.
  3. Adjust separator if needed.
  4. Copy the slug.

Frequently Asked Questions

Related Tools