Skip to main content
DevTools24

Slug 生成器

将任何文本转换为 URL 友好的 slug。处理重音字符、特殊符号等。

URL Slugs - 技术详情

A slug is the URL-friendly version of a title or string. Good slugs are lowercase, use hyphens to separate words, and contain only alphanumeric characters. They improve SEO and make URLs more readable.

命令行替代方案

# Create slug in bash\necho 'Hello World!' | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' | sed 's/-\\+/-/g' | sed 's/^-\\|-$//g'