QCSunny Lab

URL Slug GeneratorURL Slug 生成器

Statistics统计数据
Output转换输出

Turn a title into a clean URL slug: lowercase, diacritics folded (café → cafe), punctuation and whitespace collapsed to a single hyphen or underscore. "10 Tips for Writing Better CSS!" becomes 10-tips-for-writing-better-css.

Chinese, Japanese and Korean titles keep their characters — browsers percent-encode them when the URL is copied, and stripping them would leave a purely Chinese title with nothing to say.

Frequently asked questions

How are non-English letters handled?

Diacritics are folded to their base letter (é → e, ü → u). Cyrillic, Greek and other scripts are stripped, since most CMS platforms still ASCII-normalize slugs — keep those titles manual.

Is a CJK slug good for SEO?

Modern search engines match CJK slugs fine. If your CMS or audience prefers ASCII, translate the title first and slug the translation.

中文说明

把标题转成干净的 URL Slug:转小写、折叠变音符号(café → cafe)、标点与空白合并为单个短横线或下划线。"10 Tips for Writing Better CSS!" → 10-tips-for-writing-better-css。

中日韩标题原样保留汉字/假名/谚文——复制链接时浏览器会自动百分号编码,而直接剥离会让纯中文标题变成空串。

常见问题

其他语言的字母怎么处理?

带变音符的字母折叠为基本字母(é → e、ü → u)。西里尔、希腊等文字会被剥离——多数 CMS 仍会把 slug 规范化为 ASCII,这类标题建议手工处理。

中文 Slug 对 SEO 好吗?

主流搜索引擎都能正常匹配中文 slug。若你的 CMS 或受众偏好 ASCII,先把标题翻译成英文再生成。