Slug Generator

Convert any text to URL-friendly slugs. Handles Unicode, accents, custom separators, and max-length truncation.

Free Always No Account Needed 100% Client-Side
Slug 41 chars
hello-world-this-is-an-example-title-2024

About this tool

A URL slug is the part of a URL that identifies a specific page in a human-readable way. For example, the slug of this page is /tools/slug-generator.

Good slugs are lowercase, use hyphens as word separators, contain no special characters, and are concise. They improve SEO by including relevant keywords in the URL.

This generator converts any text — including titles with accents, special characters, and Unicode — into a clean slug. It:

- Converts to lowercase - Replaces spaces and separators with hyphens (or your custom separator) - Removes or transliterates accented characters (ü → u, é → e) - Strips all non-alphanumeric characters - Collapses multiple consecutive hyphens - Trims leading/trailing hyphens - Optionally truncates to a maximum length

Supports custom separators (hyphen, underscore, dot) and preserves numbers.

Frequently Asked Questions

What makes a good URL slug?
Short, descriptive, lowercase, hyphen-separated, containing primary keywords, and without stop words like 'the', 'a', 'an'.
Should I use hyphens or underscores in slugs?
Hyphens. Google treats hyphens as word separators (better SEO) but treats underscores as word connectors.
How are accented characters handled?
Accented characters are transliterated to their closest ASCII equivalent (é→e, ü→u, ñ→n) before slugification.
What's the ideal slug length?
Keep slugs under 75 characters. Shorter is usually better for readability and sharing. Most CMSes truncate at 200 chars.

Related Tools