🔗Slug Generator
Generate URL-friendly slug strings
How to Use
The Slug Generator turns titles into URL-friendly strings: Chinese is transliterated to toneless pinyin (你好世界 → ni-hao-shi-jie), then special characters are stripped, spaces become hyphens, and the result is optionally lowercased. Ideal for blog URLs and page aliases. ü is written as u (绿 → lu), and multi-pronunciation characters use their most common reading.
FAQ
What is a slug?
A slug is a short text used in URLs to identify pages, such as the slug for "Hello World" being "hello-world".
Should slugs use uppercase or lowercase?
Slugs should always use lowercase letters since URLs are case-sensitive. Consistent lowercase avoids duplication and confusion.
Can I change the separator?
Yes — default is the hyphen, and you can switch to an underscore or other character. Consecutive separators merge and leading/trailing ones are trimmed, keeping the slug tidy.
Does it handle Chinese titles?
Yes. 你好世界 becomes ni-hao-shi-jie: each Chinese character is transliterated to toneless pinyin and joined with your separator. Multi-pronunciation characters use their most common reading (行 → xing, 重 → zhong), and the umlaut ü is written as u, so 绿 and 路 both give lu. Untick “Convert Chinese to pinyin” if you'd rather strip Chinese instead.