Text & String

Slug Generator

Convert any title or text into a clean, URL-friendly slug. Handles accented characters, special symbols, and custom separators.

Free Client-Side No Sign-Up Nothing Stored
Enter title or text (updates live)
Separator:
Generated Slug

What This Tool Does

The Slug Generator converts any text into a clean URL slug — lowercase, with accented characters transliterated to ASCII, special characters removed, and spaces replaced with hyphens or underscores. Updates live as you type.

Frequently Asked Questions

What is a URL slug?
A slug is the part of a URL that identifies a specific page in a human-readable form. For example in "devtoolshack.com/tools/slug-generator", the slug is "slug-generator". Slugs use lowercase letters, numbers, and hyphens — no spaces or special characters.
How are accented characters handled?
Accented characters (é, ü, ñ, ç, etc.) are converted to their closest ASCII equivalent (e, u, n, c) using Unicode normalisation. This ensures slugs remain readable without percent-encoding.
Should I use hyphens or underscores?
Google recommends hyphens (-) as word separators in URLs. Hyphens are treated as word separators by search engines, while underscores are treated as connectors (meaning "slug_generator" is seen as one word). Use hyphens for SEO.