Slug Generator
Turn any title or phrase into a clean, lowercase, URL-friendly slug — updated live as you type.
How to Turn Text Into a URL Slug
- Type or paste your title or phrase into the text field — a sample title is pre-filled so you can see it working right away.
- Choose your separator: hyphen (-) or underscore (_).
- Toggle "Force lowercase" depending on whether you want an all-lowercase slug or one that preserves your original letter casing.
- The Slug field updates instantly as you type; click Copy Slug when you're happy with the result.
Frequently Asked Questions
What makes a good URL slug?
A good slug is short, lowercase, made of the key words from the title, separated consistently (usually with hyphens), and free of special characters, spaces, or filler words that don't help a reader or search engine understand the page.
How does the generator handle accented characters like é or ñ?
It runs the text through Unicode NFKD normalization and strips out the diacritical marks, so "café" becomes "cafe" instead of being deleted or left as an escaped character in the slug.
What happens to punctuation and symbols in my text?
Anything that isn't a letter, number, space, hyphen, or underscore is removed outright before the separator is applied, so "Faster Laptop!" simply drops the exclamation point rather than converting it to a word.
Should I use a hyphen or an underscore as the separator?
Hyphen is selected by default because most search engines, including Google, treat a hyphen as a word boundary but read an underscore-joined phrase as one solid string. Underscores are still offered here for cases like filenames or code identifiers where they're the convention.
Can the resulting slug end up empty?
Yes — if your input is made up entirely of symbols or characters that get stripped out (with no letters or numbers left), the slug field can come back blank. Leading and trailing separators are also automatically trimmed from the result.