Turn any title, heading, or phrase into a clean URL slug instantly. The slug is lowercased, stripped of special characters, and formatted with your chosen separator — ready to paste into WordPress, Shopify, or any CMS.
Slug updates live as you type. Only letters and numbers are kept.
Frequently Asked Questions
What is a URL slug?
A URL slug is the readable part of a web address that identifies a page — for example, how-to-remove-extra-spaces in a blog post URL. Good slugs are short, lowercase, and descriptive for both users and search engines.
How does the Slug Generator work?
Enter any title or phrase and the tool converts it to a slug by lowercasing the text, removing special characters and punctuation, and replacing spaces with hyphens or underscores. The result updates instantly as you type.
Should I use hyphens or underscores?
Hyphens are the standard for URLs and SEO. Google treats hyphens as word separators. Underscores are less common in URLs but useful for file names, database keys, or certain CMS conventions.
Are accented characters supported?
Accented letters are transliterated to their ASCII equivalents where possible — for example, é becomes e and ü becomes u. Characters that cannot be transliterated are removed.
Can I clean my text before generating a slug?
Yes. If your source text has double spaces or messy formatting, run it through Remove Extra Spaces first for a cleaner result.
Is this tool free and does it work on mobile?
Yes on both counts. The Slug Generator on draft21 is completely free with no sign-up required and works on all devices.