Text to Slug
Turn a title into a clean, lowercase, hyphenated URL slug.
Built and tested by Muhammad Irfan Liaqat · Updated
Text to Slug: key facts
- Turns a title into a lowercase URL slug with hyphens, underscores or dots as the separator
- Removes accents (café becomes cafe) and drops every character that is not a–z or 0–9
- Apostrophes are removed without a separator, so “don't” becomes “dont”
- Letters outside the Latin alphabet, such as Arabic or Chinese, are removed
What makes a good URL slug
A slug is the readable part of a web address that names a page, such as how-to-compress-images in example.com/blog/how-to-compress-images. This tool turns any title into a slug: it lower-cases the text, removes accents (café becomes cafe), drops punctuation and symbols, and joins the words with hyphens, underscores or dots.
Google's URL guidelines recommend readable words rather than ID numbers, and hyphens rather than underscores to separate words, so keep the hyphen separator for web pages. Short slugs are easier to read and share; removing filler words such as “a”, “the” and “of” usually leaves three to six words. Once a page is published, avoid changing its slug, or redirect the old address to the new one so existing links keep working.
How to turn a title into a URL slug
- 1Type or paste a title or phrase into the box
- 2Choose a separator: a hyphen for web pages, or an underscore or dot if your system needs one
- 3Remove filler words from the title if the slug is long
- 4Click Copy to copy the slug
Frequently Asked Questions
What is a URL slug?
Should I use hyphens or underscores in URLs?
How long should a slug be?
Do slugs affect search rankings?
Does it work with non-Latin scripts?
What characters are allowed in a URL slug?
Should I remove words like “the” and “and” from a slug?
Can I change a slug after a page is published?
How do I set a custom slug in WordPress?
Related Tools
Guides
- SEO-Friendly URLs: Why They MatterMessy URLs confuse search engines and visitors. Learn how to create clean, readable URL slugs that people and search engines understand at a glance.
- Regex Patterns for Email, Numbers and PhoneTested regex patterns for email validation, numbers only, decimals, phone numbers (E.164), IPv4, whitespace and more, with what each accepts and rejects.